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:
[legend]

Public Member Functions

 FormatterBase (Edit *pField)
 
virtual ~FormatterBase ()
 
const LocaleDataWrapper & GetLocaleDataWrapper () 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 LanguageTag & GetLanguageTag () 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 LocaleDataWrapper & ImplGetLocaleDataWrapper () const
 
SAL_DLLPRIVATE void ImplResetLocaleDataWrapper () const
 reset the LocaleDataWrapper when the language tag changes More...
 
Edit * GetField () const
 
void ClearField ()
 

Private Attributes

VclPtr< Edit > mpField
 
std::unique_ptr< LocaleDataWrapper > mpLocaleDataWrapper
 
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)
explicit

◆ ~FormatterBase()

FormatterBase::~FormatterBase ( )
virtual

Definition at line 450 of file field.cxx.

Member Function Documentation

◆ ClearField()

void FormatterBase::ClearField ( )
inlineprotected

Definition at line 66 of file field.hxx.

References VclPtr< reference_type >::clear().

◆ EnableEmptyFieldValue()

void FormatterBase::EnableEmptyFieldValue ( bool  bEnable)
inline

Definition at line 89 of file field.hxx.

◆ GetField()

Edit * FormatterBase::GetField ( ) const
inlineprotected

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
inlineprotected

Definition at line 57 of file field.hxx.

◆ ImplGetLocaleDataWrapper()

LocaleDataWrapper & FormatterBase::ImplGetLocaleDataWrapper ( ) const
protected

Definition at line 454 of file field.cxx.

References GetLanguageTag(), and mpLocaleDataWrapper.

Referenced by GetLocaleDataWrapper().

◆ ImplResetLocaleDataWrapper()

void FormatterBase::ImplResetLocaleDataWrapper ( ) const
protected

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 
)
protected

◆ IsEmptyFieldValue()

bool FormatterBase::IsEmptyFieldValue ( ) const

Definition at line 534 of file field.cxx.

References Edit::GetText(), and mpField.

◆ IsEmptyFieldValueEnabled()

bool FormatterBase::IsEmptyFieldValueEnabled ( ) const
inline

Definition at line 90 of file field.hxx.

◆ IsStrictFormat()

bool FormatterBase::IsStrictFormat ( ) const
inline

Definition at line 78 of file field.hxx.

◆ MarkToBeReformatted()

void FormatterBase::MarkToBeReformatted ( bool  b)
inline

Definition at line 75 of file field.hxx.

Referenced by ImplSetText().

◆ MustBeReformatted()

bool FormatterBase::MustBeReformatted ( ) const
inline

Definition at line 74 of file field.hxx.

◆ Reformat()

void FormatterBase::Reformat ( )
virtual

Definition at line 476 of file field.cxx.

Referenced by ReformatAll().

◆ ReformatAll()

void FormatterBase::ReformatAll ( )
virtual

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)
inlineprotected

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
private

Definition at line 52 of file field.hxx.

Referenced by FormatterBase(), and SetEmptyFieldValue().

◆ mbEmptyFieldValueEnabled

bool FormatterBase::mbEmptyFieldValueEnabled
private

Definition at line 53 of file field.hxx.

Referenced by FormatterBase().

◆ mbReformat

bool FormatterBase::mbReformat
private

Definition at line 50 of file field.hxx.

Referenced by FormatterBase().

◆ mbStrictFormat

bool FormatterBase::mbStrictFormat
private

Definition at line 51 of file field.hxx.

Referenced by FormatterBase(), and SetStrictFormat().

◆ mpField

VclPtr<Edit> FormatterBase::mpField
private

◆ mpLocaleDataWrapper

std::unique_ptr<LocaleDataWrapper> FormatterBase::mpLocaleDataWrapper
mutableprivate

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: