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

Constructor & Destructor Documentation

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

Definition at line 445 of file field.cxx.

Member Function Documentation

void FormatterBase::ClearField ( )
inlineprotected

Definition at line 60 of file field.hxx.

References VclPtr< reference_type >::clear().

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

void FormatterBase::EnableEmptyFieldValue ( bool  bEnable)
inline

Definition at line 83 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

Definition at line 458 of file field.cxx.

References ImplGetLocaleDataWrapper().

SAL_DLLPRIVATE bool FormatterBase::ImplGetEmptyFieldValue ( ) const
inlineprotected

Definition at line 53 of file field.hxx.

Referenced by NumericFormatter::Reformat().

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

Definition at line 521 of file field.cxx.

References Edit::GetText(), and mpField.

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

bool FormatterBase::IsEmptyFieldValueEnabled ( ) const
inline

Definition at line 84 of file field.hxx.

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

bool FormatterBase::IsStrictFormat ( ) const
inline

Definition at line 72 of file field.hxx.

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

Definition at line 68 of file field.hxx.

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

void FormatterBase::Reformat ( )
virtual

Reimplemented in MetricFormatter, and NumericFormatter.

Definition at line 463 of file field.cxx.

Referenced by ReformatAll().

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

Definition at line 514 of file field.cxx.

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

void FormatterBase::SetEmptyFieldValueData ( bool  bValue)
inlineprotected

Definition at line 55 of file field.hxx.

Referenced by NumericFormatter::SetValue().

void FormatterBase::SetStrictFormat ( bool  bStrict)

Definition at line 472 of file field.cxx.

References mbStrictFormat, and ReformatAll().

Member Data Documentation

bool FormatterBase::mbEmptyFieldValue
private

Definition at line 48 of file field.hxx.

Referenced by FormatterBase(), and SetEmptyFieldValue().

bool FormatterBase::mbEmptyFieldValueEnabled
private

Definition at line 49 of file field.hxx.

Referenced by FormatterBase().

bool FormatterBase::mbReformat
private

Definition at line 46 of file field.hxx.

Referenced by FormatterBase().

bool FormatterBase::mbStrictFormat
private

Definition at line 47 of file field.hxx.

Referenced by FormatterBase(), and SetStrictFormat().

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

Definition at line 45 of file field.hxx.

Referenced by FormatterBase(), and ImplGetLocaleDataWrapper().


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