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

#include <field.hxx>

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 44 of file field.hxx.

Constructor & Destructor Documentation

◆ FormatterBase()

FormatterBase::FormatterBase ( Edit pField)

◆ ~FormatterBase()

FormatterBase::~FormatterBase ( )

Definition at line 450 of file field.cxx.

Member Function Documentation

◆ ClearField()

void FormatterBase::ClearField ( )

Definition at line 66 of file field.hxx.

References VclPtr< reference_type >::clear().

◆ EnableEmptyFieldValue()

void FormatterBase::EnableEmptyFieldValue ( bool  bEnable)

Definition at line 89 of file field.hxx.

◆ GetField()

Edit * FormatterBase::GetField ( ) const

Definition at line 65 of file field.hxx.

◆ GetLanguageTag()

const LanguageTag & FormatterBase::GetLanguageTag ( ) const

◆ GetLocale()

const lang::Locale & FormatterBase::GetLocale ( ) const

◆ GetLocaleDataWrapper()

const LocaleDataWrapper & FormatterBase::GetLocaleDataWrapper ( ) const

Definition at line 471 of file field.cxx.

References ImplGetLocaleDataWrapper().

◆ ImplGetEmptyFieldValue()

SAL_DLLPRIVATE bool FormatterBase::ImplGetEmptyFieldValue ( ) const

Definition at line 57 of file field.hxx.

◆ ImplGetLocaleDataWrapper()

LocaleDataWrapper & FormatterBase::ImplGetLocaleDataWrapper ( ) const

Definition at line 454 of file field.cxx.

References GetLanguageTag(), and mpLocaleDataWrapper.

Referenced by GetLocaleDataWrapper().

◆ ImplResetLocaleDataWrapper()

void FormatterBase::ImplResetLocaleDataWrapper ( ) const

reset the LocaleDataWrapper when the language tag changes

Definition at line 464 of file field.cxx.

References mpLocaleDataWrapper.

◆ ImplSetText()

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

◆ IsEmptyFieldValue()

bool FormatterBase::IsEmptyFieldValue ( ) const

Definition at line 534 of file field.cxx.

References Edit::GetText(), and mpField.

◆ IsEmptyFieldValueEnabled()

bool FormatterBase::IsEmptyFieldValueEnabled ( ) const

Definition at line 90 of file field.hxx.

◆ IsStrictFormat()

bool FormatterBase::IsStrictFormat ( ) const

Definition at line 78 of file field.hxx.

◆ MarkToBeReformatted()

void FormatterBase::MarkToBeReformatted ( bool  b)

Definition at line 75 of file field.hxx.

Referenced by ImplSetText().

◆ MustBeReformatted()

bool FormatterBase::MustBeReformatted ( ) const

Definition at line 74 of file field.hxx.

◆ Reformat()

void FormatterBase::Reformat ( )

Definition at line 476 of file field.cxx.

Referenced by ReformatAll().

◆ ReformatAll()

void FormatterBase::ReformatAll ( )

Definition at line 480 of file field.cxx.

References Reformat().

Referenced by SetStrictFormat().

◆ SetEmptyFieldValue()

void FormatterBase::SetEmptyFieldValue ( )

Definition at line 527 of file field.cxx.

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

◆ SetEmptyFieldValueData()

void FormatterBase::SetEmptyFieldValueData ( bool  bValue)

Definition at line 59 of file field.hxx.

◆ SetStrictFormat()

void FormatterBase::SetStrictFormat ( bool  bStrict)

Definition at line 485 of file field.cxx.

References mbStrictFormat, and ReformatAll().

Member Data Documentation

◆ mbEmptyFieldValue

bool FormatterBase::mbEmptyFieldValue

Definition at line 52 of file field.hxx.

Referenced by FormatterBase(), and SetEmptyFieldValue().

◆ mbEmptyFieldValueEnabled

bool FormatterBase::mbEmptyFieldValueEnabled

Definition at line 53 of file field.hxx.

Referenced by FormatterBase().

◆ mbReformat

bool FormatterBase::mbReformat

Definition at line 50 of file field.hxx.

Referenced by FormatterBase().

◆ mbStrictFormat

bool FormatterBase::mbStrictFormat

Definition at line 51 of file field.hxx.

Referenced by FormatterBase(), and SetStrictFormat().

◆ mpField

VclPtr<Edit> FormatterBase::mpField

◆ mpLocaleDataWrapper

std::unique_ptr<LocaleDataWrapper> FormatterBase::mpLocaleDataWrapper

Definition at line 49 of file field.hxx.

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

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