OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ |
8 #define XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ | 8 #define XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ |
9 | 9 |
10 #include "xfa/fgas/localization/fgas_datetime.h" | 10 #include "xfa/fgas/localization/fgas_datetime.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #define XFA_LANGID_de_DE 0x0407 | 26 #define XFA_LANGID_de_DE 0x0407 |
27 #define XFA_LANGID_fr_FR 0x040c | 27 #define XFA_LANGID_fr_FR 0x040c |
28 #define XFA_LANGID_it_IT 0x0410 | 28 #define XFA_LANGID_it_IT 0x0410 |
29 #define XFA_LANGID_pt_BR 0x0416 | 29 #define XFA_LANGID_pt_BR 0x0416 |
30 #define XFA_LANGID_nl_NL 0x0413 | 30 #define XFA_LANGID_nl_NL 0x0413 |
31 #define XFA_LANGID_ru_RU 0x0419 | 31 #define XFA_LANGID_ru_RU 0x0419 |
32 | 32 |
33 class CXFA_LocaleMgr : public IFX_LocaleMgr { | 33 class CXFA_LocaleMgr : public IFX_LocaleMgr { |
34 public: | 34 public: |
35 CXFA_LocaleMgr(CXFA_Node* pLocaleSet, CFX_WideString wsDeflcid); | 35 CXFA_LocaleMgr(CXFA_Node* pLocaleSet, CFX_WideString wsDeflcid); |
36 virtual void Release(); | 36 |
37 virtual uint16_t GetDefLocaleID(); | 37 void Release() override; |
38 virtual IFX_Locale* GetDefLocale(); | 38 uint16_t GetDefLocaleID() override; |
39 virtual IFX_Locale* GetLocale(uint16_t lcid); | 39 IFX_Locale* GetDefLocale() override; |
40 virtual IFX_Locale* GetLocaleByName(const CFX_WideStringC& wsLocaleName); | 40 IFX_Locale* GetLocale(uint16_t lcid) override; |
| 41 IFX_Locale* GetLocaleByName(const CFX_WideString& wsLocaleName) override; |
| 42 |
41 ~CXFA_LocaleMgr(); | 43 ~CXFA_LocaleMgr(); |
42 void SetDefLocale(IFX_Locale* pLocale); | 44 void SetDefLocale(IFX_Locale* pLocale); |
43 CFX_WideStringC GetConfigLocaleName(CXFA_Node* pConfig); | 45 CFX_WideStringC GetConfigLocaleName(CXFA_Node* pConfig); |
44 | 46 |
45 protected: | 47 protected: |
46 CFX_ArrayTemplate<IFX_Locale*> m_LocaleArray; | 48 CFX_ArrayTemplate<IFX_Locale*> m_LocaleArray; |
47 CFX_ArrayTemplate<IFX_Locale*> m_XMLLocaleArray; | 49 CFX_ArrayTemplate<IFX_Locale*> m_XMLLocaleArray; |
48 IFX_Locale* m_pDefLocale; | 50 IFX_Locale* m_pDefLocale; |
49 CFX_WideString m_wsConfigLocale; | 51 CFX_WideString m_wsConfigLocale; |
50 uint16_t m_dwDeflcid; | 52 uint16_t m_dwDeflcid; |
(...skipping 10 matching lines...) Expand all Loading... |
61 static void Destroy(); | 63 static void Destroy(); |
62 | 64 |
63 void SetTimeZone(FX_TIMEZONE& tz); | 65 void SetTimeZone(FX_TIMEZONE& tz); |
64 void GetTimeZone(FX_TIMEZONE& tz); | 66 void GetTimeZone(FX_TIMEZONE& tz); |
65 | 67 |
66 private: | 68 private: |
67 FX_TIMEZONE m_tz; | 69 FX_TIMEZONE m_tz; |
68 }; | 70 }; |
69 | 71 |
70 #endif // XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ | 72 #endif // XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ |
OLD | NEW |