LibreOffice Module svl (master) 1
Public Member Functions | Private Attributes | List of all members
OnDemandTransliterationWrapper Class Reference

Load a transliteration only if it's needed. More...

#include <ondemand.hxx>

Collaboration diagram for OnDemandTransliterationWrapper:
[legend]

Public Member Functions

 OnDemandTransliterationWrapper ()
 
bool isInitialized () const
 
void init (const css::uno::Reference< css::uno::XComponentContext > &rxContext, LanguageType eLang)
 
void changeLocale (LanguageType eLang)
 
const ::utl::TransliterationWrapperget () const
 
const ::utl::TransliterationWrapperoperator-> () const
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
LanguageType eLanguage
 
TransliterationFlags nType
 
std::optional<::utl::TransliterationWrappermoTransliterate
 
bool bValid
 
bool bInitialized
 

Detailed Description

Load a transliteration only if it's needed.

SvNumberformatter uses it upon switching locales. @ATTENTION If the default ctor is used the init() method MUST be called before accessing the transliteration.

Definition at line 203 of file ondemand.hxx.

Constructor & Destructor Documentation

◆ OnDemandTransliterationWrapper()

OnDemandTransliterationWrapper::OnDemandTransliterationWrapper ( )
inline

Definition at line 213 of file ondemand.hxx.

References LANGUAGE_SYSTEM, and NONE.

Member Function Documentation

◆ changeLocale()

void OnDemandTransliterationWrapper::changeLocale ( LanguageType  eLang)
inline

Definition at line 232 of file ondemand.hxx.

References bValid, and eLanguage.

Referenced by SvNumberFormatter::ChangeIntl(), and init().

◆ get()

const ::utl::TransliterationWrapper * OnDemandTransliterationWrapper::get ( ) const
inline

Definition at line 238 of file ondemand.hxx.

References bValid, eLanguage, m_xContext, moTransliterate, and nType.

Referenced by SvNumberFormatter::GetTransliteration(), and operator->().

◆ init()

void OnDemandTransliterationWrapper::init ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
LanguageType  eLang 
)
inline

Definition at line 223 of file ondemand.hxx.

References bInitialized, changeLocale(), m_xContext, moTransliterate, and nType.

Referenced by SvNumberFormatter::ImpConstruct().

◆ isInitialized()

bool OnDemandTransliterationWrapper::isInitialized ( ) const
inline

Definition at line 221 of file ondemand.hxx.

References bInitialized.

◆ operator->()

const ::utl::TransliterationWrapper * OnDemandTransliterationWrapper::operator-> ( ) const
inline

Definition at line 250 of file ondemand.hxx.

References get().

Member Data Documentation

◆ bInitialized

bool OnDemandTransliterationWrapper::bInitialized
private

Definition at line 210 of file ondemand.hxx.

Referenced by init(), and isInitialized().

◆ bValid

bool OnDemandTransliterationWrapper::bValid
mutableprivate

Definition at line 209 of file ondemand.hxx.

Referenced by changeLocale(), and get().

◆ eLanguage

LanguageType OnDemandTransliterationWrapper::eLanguage
private

Definition at line 206 of file ondemand.hxx.

Referenced by changeLocale(), and get().

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> OnDemandTransliterationWrapper::m_xContext
private

Definition at line 205 of file ondemand.hxx.

Referenced by get(), and init().

◆ moTransliterate

std::optional<::utl::TransliterationWrapper> OnDemandTransliterationWrapper::moTransliterate
mutableprivate

Definition at line 208 of file ondemand.hxx.

Referenced by get(), and init().

◆ nType

TransliterationFlags OnDemandTransliterationWrapper::nType
private

Definition at line 207 of file ondemand.hxx.

Referenced by get(), and init().


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