Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CXFA_LocaleValue Class Reference

#include <cxfa_localevalue.h>

+ Collaboration diagram for CXFA_LocaleValue:

Public Types

enum class  ValueType : uint8_t {
  kNull = 0 , kBoolean , kInteger , kDecimal ,
  kFloat , kText , kDate , kTime ,
  kDateTime
}
 

Public Member Functions

 CXFA_LocaleValue ()
 
 CXFA_LocaleValue (ValueType eType, CXFA_LocaleMgr *pLocaleMgr)
 
 CXFA_LocaleValue (ValueType eType, const WideString &wsValue, CXFA_LocaleMgr *pLocaleMgr)
 
 CXFA_LocaleValue (ValueType dwType, const WideString &wsValue, const WideString &wsFormat, GCedLocaleIface *pLocale, CXFA_LocaleMgr *pLocaleMgr)
 
 CXFA_LocaleValue (const CXFA_LocaleValue &that)
 
 ~CXFA_LocaleValue ()
 
CXFA_LocaleValueoperator= (const CXFA_LocaleValue &that)
 
bool ValidateValue (const WideString &wsValue, const WideString &wsPattern, GCedLocaleIface *pLocale, WideString *pMatchFormat)
 
bool FormatPatterns (WideString &wsResult, const WideString &wsFormat, GCedLocaleIface *pLocale, XFA_ValuePicture eValueType) const
 
void GetNumericFormat (WideString &wsFormat, int32_t nIntLen, int32_t nDecLen)
 
bool ValidateNumericTemp (const WideString &wsNumeric, const WideString &wsFormat, GCedLocaleIface *pLocale)
 
bool IsValid () const
 
const WideStringGetValue () const
 
ValueType GetType () const
 
double GetDoubleNum () const
 
bool SetDate (const CFX_DateTime &d)
 
CFX_DateTime GetDate () const
 
CFX_DateTime GetTime () const
 

Detailed Description

Definition at line 21 of file cxfa_localevalue.h.

Member Enumeration Documentation

◆ ValueType

enum class CXFA_LocaleValue::ValueType : uint8_t
strong
Enumerator
kNull 
kBoolean 
kInteger 
kDecimal 
kFloat 
kText 
kDate 
kTime 
kDateTime 

Definition at line 25 of file cxfa_localevalue.h.

Constructor & Destructor Documentation

◆ CXFA_LocaleValue() [1/5]

CXFA_LocaleValue::CXFA_LocaleValue ( )
default

Referenced by XFA_GetLocaleValue().

+ Here is the caller graph for this function:

◆ CXFA_LocaleValue() [2/5]

CXFA_LocaleValue::CXFA_LocaleValue ( ValueType eType,
CXFA_LocaleMgr * pLocaleMgr )

Definition at line 100 of file cxfa_localevalue.cpp.

References CXFA_LocaleValue(), and kNull.

Referenced by CXFA_LocaleValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CXFA_LocaleValue() [3/5]

CXFA_LocaleValue::CXFA_LocaleValue ( ValueType eType,
const WideString & wsValue,
CXFA_LocaleMgr * pLocaleMgr )

Definition at line 105 of file cxfa_localevalue.cpp.

References CXFA_LocaleValue().

Referenced by CXFA_LocaleValue(), CXFA_Node::GetFormatDataValue(), and CXFA_Node::GetValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CXFA_LocaleValue() [4/5]

CXFA_LocaleValue::CXFA_LocaleValue ( ValueType dwType,
const WideString & wsValue,
const WideString & wsFormat,
GCedLocaleIface * pLocale,
CXFA_LocaleMgr * pLocaleMgr )

Definition at line 113 of file cxfa_localevalue.cpp.

References CXFA_LocaleValue().

Referenced by CXFA_LocaleValue(), CFXJSE_FormCalcContext::Format(), CXFA_Node::GetNormalizeDataValue(), CFXJSE_FormCalcContext::Parse(), and CXFA_Node::SetValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CXFA_LocaleValue() [5/5]

CXFA_LocaleValue::CXFA_LocaleValue ( const CXFA_LocaleValue & that)
default

◆ ~CXFA_LocaleValue()

CXFA_LocaleValue::~CXFA_LocaleValue ( )
default

Member Function Documentation

◆ FormatPatterns()

bool CXFA_LocaleValue::FormatPatterns ( WideString & wsResult,
const WideString & wsFormat,
GCedLocaleIface * pLocale,
XFA_ValuePicture eValueType ) const

Definition at line 274 of file cxfa_localevalue.cpp.

References fxcrt::WideString::clear().

Referenced by CFXJSE_FormCalcContext::Format(), CXFA_Node::GetFormatDataValue(), CXFA_Node::GetValue(), CFXJSE_FormCalcContext::IsoDate2Local(), and CFXJSE_FormCalcContext::IsoTime2Local().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDate()

CFX_DateTime CXFA_LocaleValue::GetDate ( ) const

Definition at line 230 of file cxfa_localevalue.cpp.

References CFX_DateTime::CFX_DateTime(), and kDate.

Referenced by CXFA_FFDateTimeEdit::LoadWidget(), CFXJSE_FormCalcContext::Local2IsoDate(), and CXFA_FFDateTimeEdit::UpdateFWLData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDoubleNum()

double CXFA_LocaleValue::GetDoubleNum ( ) const

Definition at line 219 of file cxfa_localevalue.cpp.

References kBoolean, kDecimal, kFloat, and kInteger.

Referenced by CFXJSE_FormCalcContext::Parse().

+ Here is the caller graph for this function:

◆ GetNumericFormat()

void CXFA_LocaleValue::GetNumericFormat ( WideString & wsFormat,
int32_t nIntLen,
int32_t nDecLen )

Definition at line 642 of file cxfa_localevalue.cpp.

◆ GetTime()

CFX_DateTime CXFA_LocaleValue::GetTime ( ) const

Definition at line 239 of file cxfa_localevalue.cpp.

References CFX_DateTime::CFX_DateTime(), and kTime.

Referenced by CFXJSE_FormCalcContext::IsoTime2Num(), and CFXJSE_FormCalcContext::Time2Num().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetType()

ValueType CXFA_LocaleValue::GetType ( ) const
inline

Definition at line 69 of file cxfa_localevalue.h.

Referenced by CXFA_Node::GetFormatDataValue(), CXFA_Node::GetNormalizeDataValue(), CXFA_Node::GetPictureContent(), CXFA_Node::GetValue(), and CXFA_Node::SetValue().

+ Here is the caller graph for this function:

◆ GetValue()

const WideString & CXFA_LocaleValue::GetValue ( ) const
inline

Definition at line 68 of file cxfa_localevalue.h.

Referenced by CXFA_Node::GetNormalizeDataValue(), CFXJSE_FormCalcContext::Parse(), and CXFA_Node::SetValue().

+ Here is the caller graph for this function:

◆ IsValid()

bool CXFA_LocaleValue::IsValid ( ) const
inline

Definition at line 67 of file cxfa_localevalue.h.

Referenced by CFXJSE_FormCalcContext::Format(), CFXJSE_FormCalcContext::IsoTime2Num(), CFXJSE_FormCalcContext::Parse(), CFXJSE_FormCalcContext::Time2Num(), and CXFA_FFDateTimeEdit::UpdateFWLData().

+ Here is the caller graph for this function:

◆ operator=()

CXFA_LocaleValue & CXFA_LocaleValue::operator= ( const CXFA_LocaleValue & that)
default

Referenced by CXFA_Node::GetNormalizeDataValue(), and CXFA_Node::SetValue().

+ Here is the caller graph for this function:

◆ SetDate()

bool CXFA_LocaleValue::SetDate ( const CFX_DateTime & d)

Definition at line 248 of file cxfa_localevalue.cpp.

References kDate.

Referenced by CXFA_FFDateTimeEdit::OnSelectChanged().

+ Here is the caller graph for this function:

◆ ValidateNumericTemp()

bool CXFA_LocaleValue::ValidateNumericTemp ( const WideString & wsNumeric,
const WideString & wsFormat,
GCedLocaleIface * pLocale )

Definition at line 682 of file cxfa_localevalue.cpp.

References fxcrt::WideString::WideString(), LocaleIface::GetDecimalSymbol(), fxcrt::WideString::IsEmpty(), and fxcrt::WideString::operator=().

+ Here is the call graph for this function:

◆ ValidateValue()

bool CXFA_LocaleValue::ValidateValue ( const WideString & wsValue,
const WideString & wsPattern,
GCedLocaleIface * pLocale,
WideString * pMatchFormat )

Definition at line 129 of file cxfa_localevalue.cpp.

References fxcrt::WideString::clear(), fxcrt::WideString::EqualsASCII(), fxcrt::WideString::IsEmpty(), CFGAS_StringFormatter::kDate, CFGAS_StringFormatter::kDateTime, CFGAS_StringFormatter::kNull, CFGAS_StringFormatter::kNum, CFGAS_StringFormatter::kText, CFGAS_StringFormatter::kTime, and CFGAS_StringFormatter::kZero.

Referenced by CXFA_Node::GetNormalizeDataValue(), and CXFA_Node::SetValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: