| 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 _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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |