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