Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: xfa/src/fxfa/parser/xfa_localemgr.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/src/fxfa/parser/xfa_locale.cpp ('k') | xfa/src/fxfa/parser/xfa_localemgr.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_SRC_FXFA_PARSER_XFA_LOCALEMGR_H_
8 #define XFA_SRC_FXFA_PARSER_XFA_LOCALEMGR_H_
9
10 #include "xfa/include/fxfa/fxfa_objectacc.h"
11 #include "xfa/src/fgas/localization/fgas_datetime.h"
12 #include "xfa/src/fgas/localization/fgas_locale.h"
13 #include "xfa/src/fxfa/parser/xfa_localemgr.h"
14
15 class CXFA_Node;
16 class IFX_Locale;
17
18 #define XFA_LANGID_zh_CN 0x0804
19 #define XFA_LANGID_zh_TW 0x0404
20 #define XFA_LANGID_zh_HK 0x0c04
21 #define XFA_LANGID_ja_JP 0x0411
22 #define XFA_LANGID_ko_KR 0x0412
23 #define XFA_LANGID_en_US 0x0409
24 #define XFA_LANGID_en_GB 0x0809
25 #define XFA_LANGID_es_ES 0x0c0a
26 #define XFA_LANGID_es_LA 0x080a
27 #define XFA_LANGID_de_DE 0x0407
28 #define XFA_LANGID_fr_FR 0x040c
29 #define XFA_LANGID_it_IT 0x0410
30 #define XFA_LANGID_pt_BR 0x0416
31 #define XFA_LANGID_nl_NL 0x0413
32 #define XFA_LANGID_ru_RU 0x0419
33
34 class CXFA_LocaleMgr : public IFX_LocaleMgr {
35 public:
36 CXFA_LocaleMgr(CXFA_Node* pLocaleSet, CFX_WideString wsDeflcid);
37 virtual void Release();
38 virtual FX_WORD GetDefLocaleID();
39 virtual IFX_Locale* GetDefLocale();
40 virtual IFX_Locale* GetLocale(FX_WORD lcid);
41 virtual IFX_Locale* GetLocaleByName(const CFX_WideStringC& wsLocaleName);
42 ~CXFA_LocaleMgr();
43 void SetDefLocale(IFX_Locale* pLocale);
44 CFX_WideStringC GetConfigLocaleName(CXFA_Node* pConfig);
45
46 protected:
47 CFX_PtrArray m_LocaleArray;
48 CFX_PtrArray m_XMLLocaleArray;
49 IFX_Locale* m_pDefLocale;
50 CFX_WideString m_wsConfigLocale;
51 FX_WORD m_dwDeflcid;
52 FX_WORD m_dwLocaleFlags;
53 };
54
55 class IXFA_TimeZoneProvider {
56 public:
57 static IXFA_TimeZoneProvider* Create();
58 static IXFA_TimeZoneProvider* Get();
59 static void Destroy();
60
61 virtual ~IXFA_TimeZoneProvider() {}
62
63 virtual void SetTimeZone(FX_TIMEZONE& tz) = 0;
64
65 virtual void GetTimeZone(FX_TIMEZONE& tz) = 0;
66 };
67 class CXFA_TimeZoneProvider : public IXFA_TimeZoneProvider {
68 public:
69 CXFA_TimeZoneProvider();
70 virtual ~CXFA_TimeZoneProvider();
71 virtual void SetTimeZone(FX_TIMEZONE& tz);
72 virtual void GetTimeZone(FX_TIMEZONE& tz);
73
74 private:
75 FX_TIMEZONE m_tz;
76 };
77
78 #endif // XFA_SRC_FXFA_PARSER_XFA_LOCALEMGR_H_
OLDNEW
« no previous file with comments | « xfa/src/fxfa/parser/xfa_locale.cpp ('k') | xfa/src/fxfa/parser/xfa_localemgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698