| 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_SRC_FGAS_LOCALIZATION_FGAS_LOCALEMGR_H_ | 7 #ifndef XFA_FGAS_LOCALIZATION_FGAS_LOCALEMGR_H_ |
| 8 #define XFA_SRC_FGAS_LOCALIZATION_FGAS_LOCALEMGR_H_ | 8 #define XFA_FGAS_LOCALIZATION_FGAS_LOCALEMGR_H_ |
| 9 | 9 |
| 10 #include "xfa/src/fgas/localization/fgas_locale.h" | 10 #include "xfa/fgas/localization/fgas_locale.h" |
| 11 | 11 |
| 12 class CFX_LocaleMgr : public IFX_LocaleMgr { | 12 class CFX_LocaleMgr : public IFX_LocaleMgr { |
| 13 public: | 13 public: |
| 14 CFX_LocaleMgr(FX_WORD wDefLCID); | 14 CFX_LocaleMgr(FX_WORD wDefLCID); |
| 15 virtual void Release() { delete this; } | 15 virtual void Release() { delete this; } |
| 16 virtual FX_WORD GetDefLocaleID(); | 16 virtual FX_WORD GetDefLocaleID(); |
| 17 virtual IFX_Locale* GetDefLocale(); | 17 virtual IFX_Locale* GetDefLocale(); |
| 18 virtual IFX_Locale* GetLocale(FX_WORD lcid); | 18 virtual IFX_Locale* GetLocale(FX_WORD lcid); |
| 19 virtual IFX_Locale* GetLocaleByName(const CFX_WideStringC& wsLocaleName); | 19 virtual IFX_Locale* GetLocaleByName(const CFX_WideStringC& wsLocaleName); |
| 20 CFX_MapPtrToPtr m_lcid2xml; | 20 CFX_MapPtrToPtr m_lcid2xml; |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 ~CFX_LocaleMgr(); | 23 ~CFX_LocaleMgr(); |
| 24 CFX_MapPtrToPtr m_lcid2locale; | 24 CFX_MapPtrToPtr m_lcid2locale; |
| 25 FX_WORD m_wDefLCID; | 25 FX_WORD m_wDefLCID; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #endif // XFA_SRC_FGAS_LOCALIZATION_FGAS_LOCALEMGR_H_ | 28 #endif // XFA_FGAS_LOCALIZATION_FGAS_LOCALEMGR_H_ |
| OLD | NEW |