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

Load a native number service wrapper only if it's needed. More...

#include <ondemand.hxx>

Public Member Functions

 OnDemandNativeNumberWrapper ()
 
void init (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
NativeNumberWrapper * get () const
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::optional< NativeNumberWrapper > moNativeNumber
 

Detailed Description

Load a native number service wrapper only if it's needed.

SvNumberformatter uses it.

@ATTENTION If the default ctor is used the init() method MUST be called before accessing the native number supplier.

Definition at line 260 of file ondemand.hxx.

Constructor & Destructor Documentation

◆ OnDemandNativeNumberWrapper()

OnDemandNativeNumberWrapper::OnDemandNativeNumberWrapper ( )
inline

Definition at line 266 of file ondemand.hxx.

Member Function Documentation

◆ get()

NativeNumberWrapper * OnDemandNativeNumberWrapper::get ( ) const
inline

Definition at line 274 of file ondemand.hxx.

References m_xContext, and moNativeNumber.

Referenced by SvNumberFormatter::GetNatNum().

◆ init()

void OnDemandNativeNumberWrapper::init ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
inline

Definition at line 268 of file ondemand.hxx.

References m_xContext, and moNativeNumber.

Referenced by SvNumberFormatter::ImpConstruct().

Member Data Documentation

◆ m_xContext

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

Definition at line 262 of file ondemand.hxx.

Referenced by get(), and init().

◆ moNativeNumber

std::optional<NativeNumberWrapper> OnDemandNativeNumberWrapper::moNativeNumber
mutableprivate

Definition at line 263 of file ondemand.hxx.

Referenced by get(), and init().


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