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

Side by Side Diff: xfa/src/fgas/src/localization/fx_localeimp.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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
OLDNEW
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_LOCALE_IMP_H_ 7 #ifndef _FX_LOCALE_IMP_H_
8 #define _FX_LOCALE_IMP_H_ 8 #define _FX_LOCALE_IMP_H_
9 class CFX_LCNumeric; 9 class CFX_LCNumeric;
10 class CFX_Locale : public IFX_Locale, public CFX_Object 10 class CFX_Locale : public IFX_Locale
11 { 11 {
12 public: 12 public:
13 CFX_Locale(CXML_Element* pLocaleData); 13 CFX_Locale(CXML_Element* pLocaleData);
14 virtual void Release() 14 virtual void Release()
15 { 15 {
16 delete this; 16 delete this;
17 } 17 }
18 18
19 virtual CFX_WideString GetName(); 19 virtual CFX_WideString GetName();
20 virtual void GetNumbericSymbol(FX_LOCALENUMSYMBOL eType, CFX_WideString& wsN umSymbol) const; 20 virtual void GetNumbericSymbol(FX_LOCALENUMSYMBOL eType, CFX_WideString& wsN umSymbol) const;
21 21
22 virtual void GetDateTimeSymbols(CFX_WideString& wsDtSymbol) const; 22 virtual void GetDateTimeSymbols(CFX_WideString& wsDtSymbol) const;
23 virtual void GetMonthName(FX_INT32 nMonth, CFX_WideString& wsMonthName, FX_B OOL bAbbr = TRUE) const; 23 virtual void GetMonthName(FX_INT32 nMonth, CFX_WideString& wsMonthName, FX_B OOL bAbbr = TRUE) const;
24 virtual void GetDayName(FX_INT32 nWeek, CFX_WideString& wsDayName, FX_BOOL b Abbr = TRUE) const; 24 virtual void GetDayName(FX_INT32 nWeek, CFX_WideString& wsDayName, FX_BOOL b Abbr = TRUE) const;
25 virtual void GetMeridiemName(CFX_WideString& wsMeridiemName, FX_BOOL bAM = T RUE) const; 25 virtual void GetMeridiemName(CFX_WideString& wsMeridiemName, FX_BOOL bAM = T RUE) const;
26 virtual void GetTimeZone(FX_TIMEZONE& tz) const; 26 virtual void GetTimeZone(FX_TIMEZONE& tz) const;
27 virtual void GetEraName(CFX_WideString& wsEraName, FX_BOOL bAD = TRUE) const ; 27 virtual void GetEraName(CFX_WideString& wsEraName, FX_BOOL bAD = TRUE) const ;
28 28
29 virtual void GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY eType, CFX_WideStri ng& wsPattern) const; 29 virtual void GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY eType, CFX_WideStri ng& wsPattern) const;
30 virtual void GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY eType, CFX_WideStri ng& wsPattern) const; 30 virtual void GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY eType, CFX_WideStri ng& wsPattern) const;
31 virtual void GetNumPattern(FX_LOCALENUMSUBCATEGORY eType, CFX_WideString& ws Pattern) const; 31 virtual void GetNumPattern(FX_LOCALENUMSUBCATEGORY eType, CFX_WideString& ws Pattern) const;
32 protected: 32 protected:
33 virtual ~CFX_Locale(); 33 virtual ~CFX_Locale();
34 CXML_Element* m_pElement; 34 CXML_Element* m_pElement;
35 }; 35 };
36 class CFX_FormatString : public IFX_FormatString, public CFX_Object 36 class CFX_FormatString : public IFX_FormatString
37 { 37 {
38 public: 38 public:
39 CFX_FormatString(IFX_LocaleMgr* pLocaleMgr, FX_BOOL bUseLCID); 39 CFX_FormatString(IFX_LocaleMgr* pLocaleMgr, FX_BOOL bUseLCID);
40 virtual void Release() 40 virtual void Release()
41 { 41 {
42 delete this; 42 delete this;
43 } 43 }
44 44
45 virtual void SplitFormatString(const CFX_WideString& wsFormatString, CFX_Wid eStringArray& wsPatterns); 45 virtual void SplitFormatString(const CFX_WideString& wsFormatString, CFX_Wid eStringArray& wsPatterns);
46 virtual FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern); 46 virtual FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern);
(...skipping 18 matching lines...) Expand all
65 IFX_Locale* GetTextFormat(const CFX_WideString &wsPattern, FX_WSTR wsCategor y, CFX_WideString& wsPurgePattern); 65 IFX_Locale* GetTextFormat(const CFX_WideString &wsPattern, FX_WSTR wsCategor y, CFX_WideString& wsPurgePattern);
66 IFX_Locale* GetNumericFormat(const CFX_WideString& wsPattern, FX_INT32& iDot Index, FX_DWORD& dwStyle, CFX_WideString& wsPurgePattern); 66 IFX_Locale* GetNumericFormat(const CFX_WideString& wsPattern, FX_INT32& iDot Index, FX_DWORD& dwStyle, CFX_WideString& wsPurgePattern);
67 FX_BOOL FormatStrNum(FX_WSTR wsInputNum, const CFX_WideString& wsPattern , CFX_WideString& wsOutput); 67 FX_BOOL FormatStrNum(FX_WSTR wsInputNum, const CFX_WideString& wsPattern , CFX_WideString& wsOutput);
68 FX_BOOL FormatLCNumeric(CFX_LCNumeric& lcNum, const CFX_WideStri ng& wsPattern, CFX_WideString& wsOutput); 68 FX_BOOL FormatLCNumeric(CFX_LCNumeric& lcNum, const CFX_WideStri ng& wsPattern, CFX_WideString& wsOutput);
69 FX_DATETIMETYPE GetDateTimeFormat(const CFX_WideString& wsPattern, IFX_Local e*& pLocale, CFX_WideString &wsDatePattern, CFX_WideString &wsTimePattern); 69 FX_DATETIMETYPE GetDateTimeFormat(const CFX_WideString& wsPattern, IFX_Local e*& pLocale, CFX_WideString &wsDatePattern, CFX_WideString &wsTimePattern);
70 IFX_Locale* GetPatternLocale(FX_WSTR wsLocale); 70 IFX_Locale* GetPatternLocale(FX_WSTR wsLocale);
71 IFX_LocaleMgr* m_pLocaleMgr; 71 IFX_LocaleMgr* m_pLocaleMgr;
72 FX_BOOL m_bUseLCID; 72 FX_BOOL m_bUseLCID;
73 }; 73 };
74 #endif 74 #endif
OLDNEW
« no previous file with comments | « xfa/src/fgas/src/localization/fx_locale.cpp ('k') | xfa/src/fgas/src/localization/fx_localemgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698