| 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 _FX_LOCALEMGR_IMP_H_ | 7 #ifndef _FX_LOCALEMGR_IMP_H_ |
| 8 #define _FX_LOCALEMGR_IMP_H_ | 8 #define _FX_LOCALEMGR_IMP_H_ |
| 9 class CFX_LocaleMgr : public IFX_LocaleMgr, public CFX_Object | 9 class CFX_LocaleMgr : public IFX_LocaleMgr |
| 10 { | 10 { |
| 11 public: | 11 public: |
| 12 CFX_LocaleMgr(FX_WORD wDefLCID); | 12 CFX_LocaleMgr(FX_WORD wDefLCID); |
| 13 virtual void Release() | 13 virtual void Release() |
| 14 { | 14 { |
| 15 delete this; | 15 delete this; |
| 16 } | 16 } |
| 17 virtual FX_WORD GetDefLocaleID(); | 17 virtual FX_WORD GetDefLocaleID(); |
| 18 virtual IFX_Locale* GetDefLocale(); | 18 virtual IFX_Locale* GetDefLocale(); |
| 19 virtual IFX_Locale* GetLocale(FX_WORD lcid); | 19 virtual IFX_Locale* GetLocale(FX_WORD lcid); |
| 20 virtual IFX_Locale* GetLocaleByName(FX_WSTR wsLocaleName); | 20 virtual IFX_Locale* GetLocaleByName(FX_WSTR wsLocaleName); |
| 21 CFX_MapPtrToPtr m_lcid2xml; | 21 CFX_MapPtrToPtr m_lcid2xml; |
| 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 #endif | 27 #endif |
| OLD | NEW |