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

SvNumberformatter uses it upon switching locales. More...

#include <ondemand.hxx>

Public Member Functions

 OnDemandCharClass ()
 
void changeLocale (const css::uno::Reference< css::uno::XComponentContext > &xContext, const LanguageTag &rLanguageTag)
 
const CharClassget () const
 
const CharClassoperator-> () const
 
const CharClassoperator* () const
 

Private Attributes

std::optional< CharClassmoCharClass1
 
std::optional< CharClassmoCharClass2
 
int nCurrent
 

Detailed Description

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.

Definition at line 293 of file ondemand.hxx.

Constructor & Destructor Documentation

◆ OnDemandCharClass()

OnDemandCharClass::OnDemandCharClass ( )
inline

Definition at line 300 of file ondemand.hxx.

Member Function Documentation

◆ changeLocale()

void OnDemandCharClass::changeLocale ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const LanguageTag rLanguageTag 
)
inline

Definition at line 305 of file ondemand.hxx.

References moCharClass1, moCharClass2, and nCurrent.

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

◆ get()

const CharClass * OnDemandCharClass::get ( ) const
inline

Definition at line 332 of file ondemand.hxx.

References moCharClass1, moCharClass2, and nCurrent.

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

◆ operator*()

const CharClass & OnDemandCharClass::operator* ( ) const
inline

Definition at line 346 of file ondemand.hxx.

References get().

◆ operator->()

const CharClass * OnDemandCharClass::operator-> ( ) const
inline

Definition at line 345 of file ondemand.hxx.

References get().

Member Data Documentation

◆ moCharClass1

std::optional<CharClass> OnDemandCharClass::moCharClass1
private

Definition at line 295 of file ondemand.hxx.

Referenced by changeLocale(), and get().

◆ moCharClass2

std::optional<CharClass> OnDemandCharClass::moCharClass2
private

Definition at line 296 of file ondemand.hxx.

Referenced by changeLocale(), and get().

◆ nCurrent

int OnDemandCharClass::nCurrent
private

Definition at line 297 of file ondemand.hxx.

Referenced by changeLocale(), and get().


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