LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FormatterBase Class Reference

#include <field.hxx>

Inheritance diagram for FormatterBase:
[legend]
Collaboration diagram for FormatterBase:
[legend]

Public Member Functions

 FormatterBase (Edit *pField)
 
virtual ~FormatterBase ()
 
const LocaleDataWrapperGetLocaleDataWrapper () const
 
bool MustBeReformatted () const
 
void MarkToBeReformatted (bool b)
 
void SetStrictFormat (bool bStrict)
 
bool IsStrictFormat () const
 
virtual void Reformat ()
 
virtual void ReformatAll ()
 
const css::lang::Locale & GetLocale () const
 
const LanguageTagGetLanguageTag () const
 
void SetEmptyFieldValue ()
 
bool IsEmptyFieldValue () const
 
void EnableEmptyFieldValue (bool bEnable)
 
bool IsEmptyFieldValueEnabled () const
 

Protected Member Functions

SAL_DLLPRIVATE void ImplSetText (const OUString &rText, Selection const *pNewSel=nullptr)
 
SAL_DLLPRIVATE bool ImplGetEmptyFieldValue () const
 
void SetEmptyFieldValueData (bool bValue)
 
SAL_DLLPRIVATE LocaleDataWrapperImplGetLocaleDataWrapper () const
 
EditGetField () const
 
void ClearField ()
 

Private Attributes

VclPtr< EditmpField
 
std::unique_ptr< LocaleDataWrappermpLocaleDataWrapper
 
bool mbReformat
 
bool mbStrictFormat
 
bool mbEmptyFieldValue
 
bool mbEmptyFieldValueEnabled
 

Detailed Description

Definition at line 39 of file field.hxx.

Constructor & Destructor Documentation

FormatterBase::FormatterBase ( Edit pField)
explicit
FormatterBase::~FormatterBase ( )
virtual

Definition at line 443 of file field.cxx.

Member Function Documentation

void FormatterBase::ClearField ( )
inlineprotected
void FormatterBase::EnableEmptyFieldValue ( bool  bEnable)
inline

Definition at line 82 of file field.hxx.

Edit* FormatterBase::GetField ( ) const
inlineprotected
const LanguageTag & FormatterBase::GetLanguageTag ( ) const
const lang::Locale & FormatterBase::GetLocale ( ) const
const LocaleDataWrapper & FormatterBase::GetLocaleDataWrapper ( ) const
SAL_DLLPRIVATE bool FormatterBase::ImplGetEmptyFieldValue ( ) const
inlineprotected
LocaleDataWrapper & FormatterBase::ImplGetLocaleDataWrapper ( ) const
protected

Definition at line 447 of file field.cxx.

References GetLanguageTag(), and mpLocaleDataWrapper.

Referenced by NumericFormatter::CreateFieldText(), CurrencyFormatter::CreateFieldText(), NumericField::DataChanged(), MetricField::DataChanged(), CurrencyField::DataChanged(), DateField::DataChanged(), TimeField::DataChanged(), NumericBox::DataChanged(), MetricBox::DataChanged(), CurrencyBox::DataChanged(), DateBox::DataChanged(), TimeBox::DataChanged(), DateBox::DateBox(), DateField::DateField(), DateField::EventNotify(), TimeField::EventNotify(), DateFormatter::GetDate(), DateFormatter::GetExtDateFormat(), GetLocaleDataWrapper(), TimeFormatter::GetTime(), NumericFormatter::GetValueFromString(), CurrencyFormatter::GetValueFromString(), MetricFormatter::GetValueFromStringUnit(), CurrencyFormatter::ImplCurrencyReformat(), DateFormatter::ImplDateReformat(), DateField::ImplDateSpinArea(), DateFormatter::ImplGetDateAsText(), MetricFormatter::ImplMetricReformat(), NumericBox::ImplNumericReformat(), TimeFormatter::ImplSetUserTime(), TimeFormatter::ImplTimeReformat(), TimeField::ImplTimeSpinArea(), DateFormatter::IsEmptyDate(), NumericField::PreNotify(), MetricField::PreNotify(), CurrencyField::PreNotify(), DateField::PreNotify(), TimeField::PreNotify(), NumericBox::PreNotify(), MetricBox::PreNotify(), CurrencyBox::PreNotify(), DateBox::PreNotify(), TimeBox::PreNotify(), CurrencyFormatter::Reformat(), DateFormatter::Reformat(), TimeFormatter::Reformat(), TimeBox::TimeBox(), and TimeField::TimeField().

void FormatterBase::ImplSetText ( const OUString &  rText,
Selection const *  pNewSel = nullptr 
)
protected
bool FormatterBase::IsEmptyFieldValue ( ) const
bool FormatterBase::IsEmptyFieldValueEnabled ( ) const
inline
bool FormatterBase::IsStrictFormat ( ) const
inline
void FormatterBase::MarkToBeReformatted ( bool  b)
inline
bool FormatterBase::MustBeReformatted ( ) const
inline
void FormatterBase::Reformat ( )
virtual
void FormatterBase::ReformatAll ( )
virtual
void FormatterBase::SetEmptyFieldValue ( )

Definition at line 512 of file field.cxx.

References mbEmptyFieldValue, mpField, and Edit::SetText().

Referenced by DateFormatter::SetEmptyDate(), and TimeFormatter::SetEmptyTime().

void FormatterBase::SetEmptyFieldValueData ( bool  bValue)
inlineprotected
void FormatterBase::SetStrictFormat ( bool  bStrict)

Definition at line 470 of file field.cxx.

References mbStrictFormat, and ReformatAll().

Member Data Documentation

bool FormatterBase::mbEmptyFieldValue
private

Definition at line 47 of file field.hxx.

Referenced by FormatterBase(), and SetEmptyFieldValue().

bool FormatterBase::mbEmptyFieldValueEnabled
private

Definition at line 48 of file field.hxx.

Referenced by FormatterBase().

bool FormatterBase::mbReformat
private

Definition at line 45 of file field.hxx.

Referenced by FormatterBase().

bool FormatterBase::mbStrictFormat
private

Definition at line 46 of file field.hxx.

Referenced by FormatterBase(), and SetStrictFormat().

VclPtr<Edit> FormatterBase::mpField
private
std::unique_ptr<LocaleDataWrapper> FormatterBase::mpLocaleDataWrapper
private

Definition at line 44 of file field.hxx.

Referenced by FormatterBase(), and ImplGetLocaleDataWrapper().


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