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 440 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().
|
inline |
const LanguageTag & FormatterBase::GetLanguageTag | ( | ) | const |
Definition at line 503 of file field.cxx.
References AllSettings::GetLanguageTag(), Application::GetSettings(), vcl::Window::GetSettings(), and mpField.
Referenced by ImplGetLocaleDataWrapper().
const lang::Locale & FormatterBase::GetLocale | ( | ) | const |
Definition at line 495 of file field.cxx.
References AllSettings::GetLanguageTag(), LanguageTag::getLocale(), Application::GetSettings(), vcl::Window::GetSettings(), and mpField.
const LocaleDataWrapper & FormatterBase::GetLocaleDataWrapper | ( | ) | const |
Definition at line 471 of file field.cxx.
References ImplGetLocaleDataWrapper().
|
inlineprotected |
|
protected |
Definition at line 454 of file field.cxx.
References GetLanguageTag(), and mpLocaleDataWrapper.
Referenced by GetLocaleDataWrapper().
|
protected |
reset the LocaleDataWrapper when the language tag changes
Definition at line 464 of file field.cxx.
References mpLocaleDataWrapper.
|
protected |
Definition at line 511 of file field.cxx.
References Edit::GetSelection(), MarkToBeReformatted(), Selection::Max(), Selection::Min(), mpField, and Edit::SetText().
bool FormatterBase::IsEmptyFieldValue | ( | ) | const |
Definition at line 534 of file field.cxx.
References Edit::GetText(), and mpField.
|
inline |
|
inline |
Definition at line 75 of file field.hxx.
Referenced by ImplSetText().
|
virtual |
Definition at line 476 of file field.cxx.
Referenced by ReformatAll().
|
virtual |
void FormatterBase::SetEmptyFieldValue | ( | ) |
Definition at line 527 of file field.cxx.
References mbEmptyFieldValue, mpField, and Edit::SetText().
|
inlineprotected |
void FormatterBase::SetStrictFormat | ( | bool | bStrict | ) |
Definition at line 485 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().