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