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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 protected: | 46 protected: |
47 CFX_PtrArray m_LocaleArray; | 47 CFX_PtrArray m_LocaleArray; |
48 CFX_PtrArray m_XMLLocaleArray; | 48 CFX_PtrArray m_XMLLocaleArray; |
49 IFX_Locale* m_pDefLocale; | 49 IFX_Locale* m_pDefLocale; |
50 CFX_WideString m_wsConfigLocale; | 50 CFX_WideString m_wsConfigLocale; |
51 uint16_t m_dwDeflcid; | 51 uint16_t m_dwDeflcid; |
52 uint16_t m_dwLocaleFlags; | 52 uint16_t m_dwLocaleFlags; |
53 }; | 53 }; |
54 | 54 |
55 class IXFA_TimeZoneProvider { | 55 class CXFA_TimeZoneProvider { |
56 public: | 56 public: |
57 static IXFA_TimeZoneProvider* Create(); | 57 CXFA_TimeZoneProvider(); |
58 static IXFA_TimeZoneProvider* Get(); | 58 ~CXFA_TimeZoneProvider(); |
| 59 |
| 60 static CXFA_TimeZoneProvider* Create(); |
| 61 static CXFA_TimeZoneProvider* Get(); |
59 static void Destroy(); | 62 static void Destroy(); |
60 | 63 |
61 virtual ~IXFA_TimeZoneProvider() {} | 64 void SetTimeZone(FX_TIMEZONE& tz); |
62 | 65 void GetTimeZone(FX_TIMEZONE& tz); |
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 | 66 |
74 private: | 67 private: |
75 FX_TIMEZONE m_tz; | 68 FX_TIMEZONE m_tz; |
76 }; | 69 }; |
77 | 70 |
78 #endif // XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ | 71 #endif // XFA_FXFA_PARSER_XFA_LOCALEMGR_H_ |
OLD | NEW |