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:
Collaboration diagram for FormatterBase:

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
SAL_DLLPRIVATE void ImplResetLocaleDataWrapper () const
 reset the LocaleDataWrapper when the language tag changes More...
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 40 of file field.hxx.

Constructor & Destructor Documentation

FormatterBase::FormatterBase ( Edit pField)
FormatterBase::~FormatterBase ( )

Definition at line 451 of file field.cxx.

Member Function Documentation

void FormatterBase::ClearField ( )

Definition at line 62 of file field.hxx.

References VclPtr< reference_type >::clear().

Referenced by MetricField::dispose(), and MetricBox::dispose().

void FormatterBase::EnableEmptyFieldValue ( bool  bEnable)

Definition at line 85 of file field.hxx.

Edit* FormatterBase::GetField ( ) const
const LanguageTag & FormatterBase::GetLanguageTag ( ) const
const lang::Locale & FormatterBase::GetLocale ( ) const
const LocaleDataWrapper & FormatterBase::GetLocaleDataWrapper ( ) const

Definition at line 472 of file field.cxx.

References ImplGetLocaleDataWrapper().

SAL_DLLPRIVATE bool FormatterBase::ImplGetEmptyFieldValue ( ) const

Definition at line 53 of file field.hxx.

Referenced by NumericFormatter::Reformat().

LocaleDataWrapper & FormatterBase::ImplGetLocaleDataWrapper ( ) const
void FormatterBase::ImplResetLocaleDataWrapper ( ) const

reset the LocaleDataWrapper when the language tag changes

Definition at line 465 of file field.cxx.

References mpLocaleDataWrapper.

Referenced by MetricField::DataChanged(), and MetricBox::DataChanged().

void FormatterBase::ImplSetText ( const OUString &  rText,
Selection const *  pNewSel = nullptr 
bool FormatterBase::IsEmptyFieldValue ( ) const

Definition at line 535 of file field.cxx.

References Edit::GetText(), and mpField.

Referenced by NumericFormatter::SetMax(), and NumericFormatter::SetMin().

bool FormatterBase::IsEmptyFieldValueEnabled ( ) const

Definition at line 86 of file field.hxx.

Referenced by MetricField::EventNotify(), and MetricBox::EventNotify().

bool FormatterBase::IsStrictFormat ( ) const

Definition at line 74 of file field.hxx.

void FormatterBase::MarkToBeReformatted ( bool  b)
bool FormatterBase::MustBeReformatted ( ) const

Definition at line 70 of file field.hxx.

Referenced by MetricField::EventNotify(), and MetricBox::EventNotify().

void FormatterBase::Reformat ( )

Reimplemented in MetricFormatter, and NumericFormatter.

Definition at line 477 of file field.cxx.

Referenced by ReformatAll().

void FormatterBase::ReformatAll ( )
void FormatterBase::SetEmptyFieldValue ( )

Definition at line 528 of file field.cxx.

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

void FormatterBase::SetEmptyFieldValueData ( bool  bValue)

Definition at line 55 of file field.hxx.

Referenced by NumericFormatter::SetValue().

void FormatterBase::SetStrictFormat ( bool  bStrict)

Definition at line 486 of file field.cxx.

References mbStrictFormat, and ReformatAll().

Member Data Documentation

bool FormatterBase::mbEmptyFieldValue

Definition at line 48 of file field.hxx.

Referenced by FormatterBase(), and SetEmptyFieldValue().

bool FormatterBase::mbEmptyFieldValueEnabled

Definition at line 49 of file field.hxx.

Referenced by FormatterBase().

bool FormatterBase::mbReformat

Definition at line 46 of file field.hxx.

Referenced by FormatterBase().

bool FormatterBase::mbStrictFormat

Definition at line 47 of file field.hxx.

Referenced by FormatterBase(), and SetStrictFormat().

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

Definition at line 45 of file field.hxx.

Referenced by FormatterBase(), ImplGetLocaleDataWrapper(), and ImplResetLocaleDataWrapper().

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