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