Synchronize with trunk r58528.
[reactos.git] / dll / cpl / intl / intl.h
1 #define WIN32_NO_STATUS
2 #include <stdarg.h>
3 #include <windef.h>
4 #include <winbase.h>
5 #include <winnls.h>
6 #include <winreg.h>
7 #include <winuser.h>
8 #include <shellapi.h>
9 #include <cpl.h>
10 #include <setupapi.h>
11 #include <tchar.h>
12 #include <malloc.h>
13 #include <debug.h>
14
15 #include "resource.h"
16
17 #define DECIMAL_RADIX 10
18
19 /* Limits */
20 #define MAX_FMT_SIZE 30
21 #define MAX_STR_SIZE 128
22 #define MAX_SAMPLES_STR_SIZE 70
23
24 #define MAX_NUMBERDSYMBOL 3
25 #define MAX_NUMBERSDIGITGRSYM 3
26 #define MAX_NUMBERSNSIGNSYM 4
27 #define MAX_NUMBERSLSEP 3
28
29 #define MAX_CURRENCYSYMBOL 5
30 #define MAX_CURRENCYDECSEP 3
31 #define MAX_CURRENCYGRPSEP 3
32
33 #define MAX_TIMEFORMAT 80
34 #define MAX_TIMESEPARATOR 3
35 #define MAX_TIMEAMSYMBOL 12
36 #define MAX_TIMEPMSYMBOL 12
37
38 #define MAX_SHRTDATEFMT 80
39 #define MAX_SHRTDATESEP 3
40 #define MAX_LONGDATEFMT 80
41 #define MAX_YEAR_EDIT 4
42
43 typedef struct _APPLET
44 {
45 UINT idIcon;
46 UINT idName;
47 UINT idDescription;
48 APPLET_PROC AppletProc;
49 } APPLET, *PAPPLET;
50
51 typedef struct _GLOBALDATA
52 {
53 LCID lcid;
54 } GLOBALDATA, *PGLOBALDATA;
55
56 extern HINSTANCE hApplet;
57 extern DWORD IsUnattendedSetupEnabled;
58 extern DWORD UnattendLCID;
59
60 /* intl.c */
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 */