[rshell]
[reactos.git] / dll / cpl / intl / intl.h
1 #include <stdarg.h>
2
3 #define WIN32_NO_STATUS
4 #include <windef.h>
5 #include <winbase.h>
6 #include <winnls.h>
7 #include <winreg.h>
8 #include <winuser.h>
9 #include <cpl.h>
10 #include <setupapi.h>
11 #include <tchar.h>
12 #include <malloc.h>
13
14 #include "resource.h"
15
16 #define DECIMAL_RADIX 10
17
18 /* Limits */
19 #define MAX_FMT_SIZE 30
20 #define MAX_STR_SIZE 128
21 #define MAX_SAMPLES_STR_SIZE 70
22
23 #define MAX_NUMBERDSYMBOL 3
24 #define MAX_NUMBERSDIGITGRSYM 3
25 #define MAX_NUMBERSNSIGNSYM 4
26 #define MAX_NUMBERSLSEP 3
27
28 #define MAX_CURRENCYSYMBOL 5
29 #define MAX_CURRENCYDECSEP 3
30 #define MAX_CURRENCYGRPSEP 3
31
32 #define MAX_TIMEFORMAT 80
33 #define MAX_TIMESEPARATOR 3
34 #define MAX_TIMEAMSYMBOL 12
35 #define MAX_TIMEPMSYMBOL 12
36
37 #define MAX_SHRTDATEFMT 80
38 #define MAX_SHRTDATESEP 3
39 #define MAX_LONGDATEFMT 80
40 #define MAX_YEAR_EDIT 4
41
42 typedef struct _APPLET
43 {
44 UINT idIcon;
45 UINT idName;
46 UINT idDescription;
47 APPLET_PROC AppletProc;
48 } APPLET, *PAPPLET;
49
50 typedef struct _GLOBALDATA
51 {
52 LCID lcid;
53 } GLOBALDATA, *PGLOBALDATA;
54
55 extern HINSTANCE hApplet;
56 extern DWORD IsUnattendedSetupEnabled;
57 extern DWORD UnattendLCID;
58
59 /* intl.c */
60 VOID PrintErrorMsgBox(UINT msg);
61
62 /* languages.c */
63 INT_PTR CALLBACK
64 LanguagesPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
65
66 /* advanced.c */
67 INT_PTR CALLBACK
68 AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
69 VOID
70 SetNonUnicodeLang(HWND hwnd, LCID lcid);
71
72 /* currency.c */
73 INT_PTR CALLBACK
74 CurrencyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
75
76 /* date.c */
77 INT_PTR CALLBACK
78 DatePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
79
80 /* general.c */
81 INT_PTR CALLBACK
82 GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
83
84 /* locale.c */
85 INT_PTR CALLBACK
86 InpLocalePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
87
88 /* numbers.h */
89 INT_PTR CALLBACK
90 NumbersPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
91
92 /* time.c */
93 INT_PTR CALLBACK
94 TimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
95
96 /* sort.c */
97 BOOL
98 IsSortPageNeeded(LCID lcid);
99
100 INT_PTR CALLBACK
101 SortPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
102
103 /* misc.c */
104 LPTSTR
105 InsSpacesFmt(LPCTSTR szSourceStr, LPCTSTR szFmtStr);
106
107 LPTSTR
108 ReplaceSubStr(LPCTSTR szSourceStr, LPCTSTR szStrToReplace, LPCTSTR szTempl);
109
110 LONG
111 APIENTRY
112 SetupApplet(HWND hwndDlg, LCID lcid);
113
114 /* kblayouts.c */
115 VOID AddNewKbLayoutsByLcid(LCID Lcid);
116
117 /* EOF */