LibreOffice Module vcl (master) 1
|
#include <field.hxx>
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 |
|
explicit |
Definition at line 443 of file field.cxx.
References mbEmptyFieldValue, mbEmptyFieldValueEnabled, mbReformat, mbStrictFormat, mpField, and mpLocaleDataWrapper.
|
inlineprotected |
Definition at line 66 of file field.hxx.
References VclPtr< reference_type >::clear().
Referenced by MetricField::dispose(), and MetricBox::dispose().
|
inline |
|
inlineprotected |
Definition at line 65 of file field.hxx.
Referenced by NumericFormatter::GetValue(), MetricFormatter::GetValue(), NumericFormatter::ImplNewFieldValue(), NumericFormatter::ImplSetUserValue(), NumericFormatter::Reformat(), and MetricFormatter::Reformat().
const LanguageTag & FormatterBase::GetLanguageTag | ( | ) | const |
Definition at line 506 of file field.cxx.
References AllSettings::GetLanguageTag(), Application::GetSettings(), vcl::Window::GetSettings(), and mpField.
Referenced by MetricFormatter::CreateFieldText(), and ImplGetLocaleDataWrapper().
const lang::Locale & FormatterBase::GetLocale | ( | ) | const |
Definition at line 498 of file field.cxx.
References AllSettings::GetLanguageTag(), LanguageTag::getLocale(), Application::GetSettings(), vcl::Window::GetSettings(), and mpField.
const LocaleDataWrapper & FormatterBase::GetLocaleDataWrapper | ( | ) | const |
Definition at line 474 of file field.cxx.
References ImplGetLocaleDataWrapper().
|
inlineprotected |
Definition at line 57 of file field.hxx.
Referenced by NumericFormatter::Reformat().
|
protected |
Definition at line 457 of file field.cxx.
References GetLanguageTag(), and mpLocaleDataWrapper.
Referenced by NumericFormatter::CreateFieldText(), MetricField::DataChanged(), MetricBox::DataChanged(), GetLocaleDataWrapper(), NumericFormatter::GetValueFromString(), MetricFormatter::GetValueFromStringUnit(), MetricFormatter::ImplMetricReformat(), MetricField::PreNotify(), and MetricBox::PreNotify().
|
protected |
reset the LocaleDataWrapper when the language tag changes
Definition at line 467 of file field.cxx.
References mpLocaleDataWrapper.
Referenced by MetricField::DataChanged(), and MetricBox::DataChanged().
|
protected |
Definition at line 514 of file field.cxx.
References Edit::GetSelection(), MarkToBeReformatted(), Selection::Max(), Selection::Min(), mpField, and Edit::SetText().
Referenced by NumericFormatter::FormatValue(), and MetricFormatter::Reformat().
bool FormatterBase::IsEmptyFieldValue | ( | ) | const |
Definition at line 537 of file field.cxx.
References Edit::GetText(), and mpField.
Referenced by NumericFormatter::SetMax(), and NumericFormatter::SetMin().
|
inline |
Definition at line 90 of file field.hxx.
Referenced by MetricField::EventNotify(), and MetricBox::EventNotify().
|
inline |
Definition at line 75 of file field.hxx.
Referenced by MetricField::EventNotify(), MetricBox::EventNotify(), ImplSetText(), MetricField::Modify(), and MetricBox::Modify().
|
inline |
Definition at line 74 of file field.hxx.
Referenced by MetricField::EventNotify(), and MetricBox::EventNotify().
|
virtual |
Reimplemented in NumericFormatter, and MetricFormatter.
Definition at line 479 of file field.cxx.
Referenced by ReformatAll().
|
virtual |
Reimplemented in MetricBox.
Definition at line 483 of file field.cxx.
References Reformat().
Referenced by MetricField::DataChanged(), NumericFormatter::NumericFormatter(), MetricFormatter::SetCustomUnitText(), NumericFormatter::SetDecimalDigits(), NumericFormatter::SetMax(), NumericFormatter::SetMin(), SetStrictFormat(), MetricFormatter::SetUnit(), and NumericFormatter::SetUseThousandSep().
void FormatterBase::SetEmptyFieldValue | ( | ) |
Definition at line 530 of file field.cxx.
References mbEmptyFieldValue, mpField, and Edit::SetText().
|
inlineprotected |
Definition at line 59 of file field.hxx.
Referenced by NumericFormatter::SetValue().
void FormatterBase::SetStrictFormat | ( | bool | bStrict | ) |
Definition at line 488 of file field.cxx.
References mbStrictFormat, and ReformatAll().
|
private |
Definition at line 52 of file field.hxx.
Referenced by FormatterBase(), and SetEmptyFieldValue().
|
private |
Definition at line 53 of file field.hxx.
Referenced by FormatterBase().
|
private |
Definition at line 50 of file field.hxx.
Referenced by FormatterBase().
|
private |
Definition at line 51 of file field.hxx.
Referenced by FormatterBase(), and SetStrictFormat().
Definition at line 47 of file field.hxx.
Referenced by FormatterBase(), GetLanguageTag(), GetLocale(), ImplSetText(), IsEmptyFieldValue(), and SetEmptyFieldValue().
|
mutableprivate |
Definition at line 49 of file field.hxx.
Referenced by FormatterBase(), ImplGetLocaleDataWrapper(), and ImplResetLocaleDataWrapper().