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

Side by Side Diff: xfa/src/fxfa/src/common/fxfa_localevalue.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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
« no previous file with comments | « xfa/src/fxfa/src/app/xfa_textlayout.cpp ('k') | xfa/src/fxfa/src/common/xfa_doclayout.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 _FXFA_WIDGETVALUE_H 7 #ifndef _FXFA_WIDGETVALUE_H
8 #define _FXFA_WIDGETVALUE_H 8 #define _FXFA_WIDGETVALUE_H
9 class IFX_Locale; 9 class IFX_Locale;
10 class CFX_Unitime; 10 class CFX_Unitime;
(...skipping 19 matching lines...) Expand all
30 ~CXFA_LocaleValue(); 30 ~CXFA_LocaleValue();
31 CXFA_LocaleValue& operator = (const CXFA_LocaleValue& value); 31 CXFA_LocaleValue& operator = (const CXFA_LocaleValue& value);
32 32
33 FX_BOOL ValidateValue(const CFX_WideString& wsValue, const CFX_WideStrin g& wsPattern, IFX_Locale* pLocale, CFX_WideString* pMatchFormat = NULL); 33 FX_BOOL ValidateValue(const CFX_WideString& wsValue, const CFX_WideStrin g& wsPattern, IFX_Locale* pLocale, CFX_WideString* pMatchFormat = NULL);
34 FX_BOOL FormatPatterns(CFX_WideString& wsResult, const CFX_WideString& w sFormat, IFX_Locale* pLocale, XFA_VALUEPICTURE eValueType) const; 34 FX_BOOL FormatPatterns(CFX_WideString& wsResult, const CFX_WideString& w sFormat, IFX_Locale* pLocale, XFA_VALUEPICTURE eValueType) const;
35 FX_BOOL FormatSinglePattern(CFX_WideString& wsResult, const CFX_WideStri ng& wsFormat, IFX_Locale* pLocale, XFA_VALUEPICTURE eValueType) const; 35 FX_BOOL FormatSinglePattern(CFX_WideString& wsResult, const CFX_WideStri ng& wsFormat, IFX_Locale* pLocale, XFA_VALUEPICTURE eValueType) const;
36 FX_BOOL ValidateCanonicalValue(const CFX_WideString& wsValue, FX_DWORD d wVType); 36 FX_BOOL ValidateCanonicalValue(const CFX_WideString& wsValue, FX_DWORD d wVType);
37 FX_BOOL ValidateCanonicalDate(const CFX_WideString& wsDate, CFX_Unitime& unDate); 37 FX_BOOL ValidateCanonicalDate(const CFX_WideString& wsDate, CFX_Unitime& unDate);
38 FX_BOOL ValidateCanonicalTime(const CFX_WideString& wsTime); 38 FX_BOOL ValidateCanonicalTime(const CFX_WideString& wsTime);
39 FX_BOOL ValidateCanonicalDateTime(const CFX_WideString& wsDateTime); 39 FX_BOOL ValidateCanonicalDateTime(const CFX_WideString& wsDateTime);
40 void» GetNumbericFormat(CFX_WideString &wsFormat, FX_INT32 nIntLen, FX _INT32 nDecLen, FX_BOOL bSign = TRUE); 40 void» GetNumbericFormat(CFX_WideString &wsFormat, int32_t nIntLen, int 32_t nDecLen, FX_BOOL bSign = TRUE);
41 FX_BOOL» ValidateNumericTemp(CFX_WideString& wsNumeric, CFX_WideString& w sFormat, IFX_Locale* pLocale = NULL, FX_INT32* pos = NULL); 41 FX_BOOL» ValidateNumericTemp(CFX_WideString& wsNumeric, CFX_WideString& w sFormat, IFX_Locale* pLocale = NULL, int32_t* pos = NULL);
42 42
43 CFX_WideString GetValue() const; 43 CFX_WideString GetValue() const;
44 FX_DWORD GetType() const; 44 FX_DWORD GetType() const;
45 void SetValue(const CFX_WideString& wsValue, FX_DWORD dwType); 45 void SetValue(const CFX_WideString& wsValue, FX_DWORD dwType);
46 CFX_WideString GetText() const; 46 CFX_WideString GetText() const;
47 FX_FLOAT GetNum() const; 47 FX_FLOAT GetNum() const;
48 FX_DOUBLE GetDoubleNum() const; 48 FX_DOUBLE GetDoubleNum() const;
49 CFX_Unitime GetDate() const; 49 CFX_Unitime GetDate() const;
50 CFX_Unitime GetTime() const; 50 CFX_Unitime GetTime() const;
51 CFX_Unitime GetDateTime() const; 51 CFX_Unitime GetDateTime() const;
(...skipping 20 matching lines...) Expand all
72 return m_bValid; 72 return m_bValid;
73 } 73 }
74 protected: 74 protected:
75 FX_BOOL ParsePatternValue(const CFX_WideString& wsValue, const CFX_WideString& wsPattern, IFX_Locale* pLocale); 75 FX_BOOL ParsePatternValue(const CFX_WideString& wsValue, const CFX_WideString& wsPattern, IFX_Locale* pLocale);
76 CXFA_LocaleMgr* m_pLocaleMgr; 76 CXFA_LocaleMgr* m_pLocaleMgr;
77 CFX_WideString m_wsValue; 77 CFX_WideString m_wsValue;
78 FX_DWORD m_dwType; 78 FX_DWORD m_dwType;
79 FX_BOOL m_bValid; 79 FX_BOOL m_bValid;
80 }; 80 };
81 #endif 81 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxfa/src/app/xfa_textlayout.cpp ('k') | xfa/src/fxfa/src/common/xfa_doclayout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698