ccbf011f9b7348ef2c2d46c2ee725557deaac2f9
[reactos.git] / reactos / 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
61 /* languages.c */
62 INT_PTR CALLBACK
63 LanguagesPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
64
65 /* advanced.c */
66 INT_PTR CALLBACK
67 AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
68 VOID
69 SetNonUnicodeLang(HWND hwnd, LCID lcid);
70
71 /* currency.c */
72 INT_PTR CALLBACK
73 CurrencyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
74
75 /* date.c */
76 INT_PTR CALLBACK
77 DatePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
78
79 /* general.c */
80 INT_PTR CALLBACK
81 GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
82
83 /* locale.c */
84 INT_PTR CALLBACK
85 InpLocalePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
86
87 /* numbers.h */
88 INT_PTR CALLBACK
89 NumbersPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
90
91 /* time.c */
92 INT_PTR CALLBACK
93 TimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
94
95 /* sort.c */
96 BOOL
97 IsSortPageNeeded(LCID lcid);
98
99 INT_PTR CALLBACK
100 SortPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
101
102 /* misc.c */
103 LPTSTR
104 InsSpacesFmt(LPCTSTR szSourceStr, LPCTSTR szFmtStr);
105
106 LPTSTR
107 ReplaceSubStr(LPCTSTR szSourceStr, LPCTSTR szStrToReplace, LPCTSTR szTempl);
108
109 LONG
110 APIENTRY
111 SetupApplet(HWND hwndDlg, LCID lcid);
112
113 /* kblayouts.c */
114 VOID AddNewKbLayoutsByLcid(LCID Lcid);
115
116 /* EOF */