22#include <com/sun/star/uno/Reference.hxx>
54 css::uno::Reference<css::uno::XComponentContext>
m_xContext;
59 std::optional<LocaleDataWrapper>
moAny;
74 void init(
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
146 mutable std::optional<CalendarWrapper>
moAny;
156 void init(
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
157 const css::lang::Locale& rLocale)
223 void init(
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
LanguageType eLang)
226 nType = TransliterationFlags::IGNORE_CASE;
238 const ::utl::TransliterationWrapper*
get()
const
268 void init(
const css::uno::Reference<css::uno::XComponentContext>& rxContext)
274 NativeNumberWrapper*
get()
const
305 void changeLocale(
const css::uno::Reference<css::uno::XComponentContext>& xContext,
LanguageType getLanguageType(bool bResolveSystem=true) const
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
Load a calendar only if it's needed.
std::optional< CalendarWrapper > moEnglish
void init(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::lang::Locale &rLocale)
css::lang::Locale aLocale
void changeLocale(const css::lang::Locale &rLocale)
OnDemandCalendarWrapper()
CalendarWrapper * get() const
css::lang::Locale aLastAnyLocale
std::optional< CalendarWrapper > moAny
css::uno::Reference< css::uno::XComponentContext > m_xContext
css::lang::Locale aEnglishLocale
SvNumberformatter uses it upon switching locales.
const CharClass * get() const
std::optional< CharClass > moCharClass2
std::optional< CharClass > moCharClass1
void changeLocale(const css::uno::Reference< css::uno::XComponentContext > &xContext, const LanguageTag &rLanguageTag)
const CharClass * operator->() const
const CharClass & operator*() const
Switch between LANGUAGE_SYSTEM and LANGUAGE_ENGLISH_US and any other LocaleDataWrapper.
void init(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const LanguageTag &rLanguageTag)
OnDemandLocaleDataWrapper()
bool isInitialized() const
css::uno::Reference< css::uno::XComponentContext > m_xContext
std::optional< LocaleDataWrapper > moAny
void changeLocale(const LanguageTag &rLanguageTag)
std::optional< LocaleDataWrapper > moEnglish
LanguageType eLastAnyLanguage
LanguageType eCurrentLanguage
LanguageType getCurrentLanguage() const
const LocaleDataWrapper * get() const
const LocaleDataWrapper * operator->() const
const LocaleDataWrapper & operator*() const
Load a native number service wrapper only if it's needed.
NativeNumberWrapper * get() const
void init(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
OnDemandNativeNumberWrapper()
std::optional< NativeNumberWrapper > moNativeNumber
css::uno::Reference< css::uno::XComponentContext > m_xContext
Load a transliteration only if it's needed.
std::optional<::utl::TransliterationWrapper > moTransliterate
TransliterationFlags nType
void changeLocale(LanguageType eLang)
const ::utl::TransliterationWrapper * get() const
bool isInitialized() const
void init(const css::uno::Reference< css::uno::XComponentContext > &rxContext, LanguageType eLang)
OnDemandTransliterationWrapper()
const ::utl::TransliterationWrapper * operator->() const
css::uno::Reference< css::uno::XComponentContext > m_xContext
const LocaleDataWrapper & GetLocaleData() const
#define LANGUAGE_DONTKNOW
#define LANGUAGE_ENGLISH_US