LibreOffice Module svl (master) 1
|
Switch between LANGUAGE_SYSTEM and LANGUAGE_ENGLISH_US and any other LocaleDataWrapper. More...
#include <ondemand.hxx>
Public Member Functions | |
OnDemandLocaleDataWrapper () | |
bool | isInitialized () const |
void | init (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const LanguageTag &rLanguageTag) |
void | changeLocale (const LanguageTag &rLanguageTag) |
LanguageType | getCurrentLanguage () const |
const LocaleDataWrapper * | get () const |
const LocaleDataWrapper * | operator-> () const |
const LocaleDataWrapper & | operator* () const |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
SvtSysLocale | aSysLocale |
LanguageType | eCurrentLanguage |
LanguageType | eLastAnyLanguage |
std::optional< LocaleDataWrapper > | moEnglish |
std::optional< LocaleDataWrapper > | moAny |
int | nCurrent |
bool | bInitialized |
Switch between LANGUAGE_SYSTEM and LANGUAGE_ENGLISH_US and any other LocaleDataWrapper.
SvNumberformatter uses it upon switching locales.
@descr Avoids reloading and analysing of locale data again and again.
@ATTENTION If the default ctor is used the init() method MUST be called before accessing any locale data. The passed parameters Locale and LanguageType must match each other.
Definition at line 52 of file ondemand.hxx.
|
inline |
Definition at line 64 of file ondemand.hxx.
References eCurrentLanguage, LANGUAGE_DONTKNOW, and LANGUAGE_SYSTEM.
|
inline |
Definition at line 82 of file ondemand.hxx.
References eCurrentLanguage, eLastAnyLanguage, LanguageTag::getLanguageType(), LANGUAGE_ENGLISH_US, LANGUAGE_SYSTEM, m_xContext, moAny, moEnglish, and nCurrent.
Referenced by SvNumberFormatter::ChangeIntl(), SvNumberFormatter::GetLangDecimalSep(), init(), and ImpSvNumberInputScan::IsAcceptedDatePattern().
|
inline |
Definition at line 112 of file ondemand.hxx.
References aSysLocale, SvtSysLocale::GetLocaleData(), moAny, moEnglish, and nCurrent.
Referenced by SvNumberFormatter::GetLocaleData(), operator*(), and operator->().
|
inline |
Definition at line 110 of file ondemand.hxx.
References eCurrentLanguage.
Referenced by SvNumberFormatter::GetLangDecimalSep().
|
inline |
Definition at line 74 of file ondemand.hxx.
References bInitialized, changeLocale(), and m_xContext.
Referenced by SvNumberFormatter::ImpConstruct().
|
inline |
Definition at line 72 of file ondemand.hxx.
References bInitialized.
|
inline |
Definition at line 128 of file ondemand.hxx.
References get().
|
inline |
Definition at line 127 of file ondemand.hxx.
References get().
|
private |
Definition at line 55 of file ondemand.hxx.
Referenced by get().
|
private |
Definition at line 61 of file ondemand.hxx.
Referenced by init(), and isInitialized().
|
private |
Definition at line 56 of file ondemand.hxx.
Referenced by changeLocale(), getCurrentLanguage(), and OnDemandLocaleDataWrapper().
|
private |
Definition at line 57 of file ondemand.hxx.
Referenced by changeLocale().
|
private |
Definition at line 54 of file ondemand.hxx.
Referenced by changeLocale(), and init().
|
private |
Definition at line 59 of file ondemand.hxx.
Referenced by changeLocale(), and get().
|
private |
Definition at line 58 of file ondemand.hxx.
Referenced by changeLocale(), and get().
|
private |
Definition at line 60 of file ondemand.hxx.
Referenced by changeLocale(), and get().