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

#include <numfmuno.hxx>

Inheritance diagram for SvNumberFormatsObj:
[legend]
Collaboration diagram for SvNumberFormatsObj:
[legend]

Public Member Functions

 SvNumberFormatsObj (SvNumberFormatsSupplierObj &pParent, ::comphelper::SharedMutex _aMutex)
 
virtual ~SvNumberFormatsObj () override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getByKey (sal_Int32 nKey) override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL queryKeys (sal_Int16 nType, const css::lang::Locale &nLocale, sal_Bool bCreate) override
 
virtual sal_Int32 SAL_CALL queryKey (const OUString &aFormat, const css::lang::Locale &nLocale, sal_Bool bScan) override
 
virtual sal_Int32 SAL_CALL addNew (const OUString &aFormat, const css::lang::Locale &nLocale) override
 
virtual sal_Int32 SAL_CALL addNewConverted (const OUString &aFormat, const css::lang::Locale &nLocale, const css::lang::Locale &nNewLocale) override
 
virtual void SAL_CALL removeByKey (sal_Int32 nKey) override
 
virtual OUString SAL_CALL generateFormat (sal_Int32 nBaseKey, const css::lang::Locale &nLocale, sal_Bool bThousands, sal_Bool bRed, sal_Int16 nDecimals, sal_Int16 nLeading) override
 
virtual sal_Int32 SAL_CALL getStandardIndex (const css::lang::Locale &nLocale) override
 
virtual sal_Int32 SAL_CALL getStandardFormat (sal_Int16 nType, const css::lang::Locale &nLocale) override
 
virtual sal_Int32 SAL_CALL getFormatIndex (sal_Int16 nIndex, const css::lang::Locale &nLocale) override
 
virtual sal_Bool SAL_CALL isTypeCompatible (sal_Int16 nOldType, sal_Int16 nNewType) override
 
virtual sal_Int32 SAL_CALL getFormatForLocale (sal_Int32 nKey, const css::lang::Locale &nLocale) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Attributes

rtl::Reference< SvNumberFormatsSupplierObjm_xSupplier
 
mutable::comphelper::SharedMutex m_aMutex
 

Detailed Description

Definition at line 83 of file numfmuno.hxx.

Constructor & Destructor Documentation

◆ SvNumberFormatsObj()

SvNumberFormatsObj::SvNumberFormatsObj ( SvNumberFormatsSupplierObj pParent,
::comphelper::SharedMutex  _aMutex 
)

Definition at line 347 of file numfmuno.cxx.

References m_aMutex.

◆ ~SvNumberFormatsObj()

SvNumberFormatsObj::~SvNumberFormatsObj ( )
overridevirtual

Definition at line 353 of file numfmuno.cxx.

Member Function Documentation

◆ addNew()

sal_Int32 SAL_CALL SvNumberFormatsObj::addNew ( const OUString &  aFormat,
const css::lang::Locale &  nLocale 
)
overridevirtual

◆ addNewConverted()

sal_Int32 SAL_CALL SvNumberFormatsObj::addNewConverted ( const OUString &  aFormat,
const css::lang::Locale &  nLocale,
const css::lang::Locale &  nNewLocale 
)
overridevirtual

◆ generateFormat()

OUString SAL_CALL SvNumberFormatsObj::generateFormat ( sal_Int32  nBaseKey,
const css::lang::Locale &  nLocale,
sal_Bool  bThousands,
sal_Bool  bRed,
sal_Int16  nDecimals,
sal_Int16  nLeading 
)
overridevirtual

◆ getByKey()

uno::Reference< beans::XPropertySet > SAL_CALL SvNumberFormatsObj::getByKey ( sal_Int32  nKey)
overridevirtual

Definition at line 359 of file numfmuno.cxx.

References SvNumberFormatter::GetEntry(), m_aMutex, and m_xSupplier.

◆ getFormatForLocale()

sal_Int32 SAL_CALL SvNumberFormatsObj::getFormatForLocale ( sal_Int32  nKey,
const css::lang::Locale &  nLocale 
)
overridevirtual

◆ getFormatIndex()

sal_Int32 SAL_CALL SvNumberFormatsObj::getFormatIndex ( sal_Int16  nIndex,
const css::lang::Locale &  nLocale 
)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL SvNumberFormatsObj::getImplementationName ( )
overridevirtual

Definition at line 627 of file numfmuno.cxx.

◆ getStandardFormat()

sal_Int32 SAL_CALL SvNumberFormatsObj::getStandardFormat ( sal_Int16  nType,
const css::lang::Locale &  nLocale 
)
overridevirtual

◆ getStandardIndex()

sal_Int32 SAL_CALL SvNumberFormatsObj::getStandardIndex ( const css::lang::Locale &  nLocale)
overridevirtual

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SvNumberFormatsObj::getSupportedServiceNames ( )
overridevirtual

Definition at line 637 of file numfmuno.cxx.

◆ isTypeCompatible()

sal_Bool SAL_CALL SvNumberFormatsObj::isTypeCompatible ( sal_Int16  nOldType,
sal_Int16  nNewType 
)
overridevirtual

Definition at line 605 of file numfmuno.cxx.

References SvNumberFormatter::IsCompatible(), and m_aMutex.

◆ queryKey()

sal_Int32 SAL_CALL SvNumberFormatsObj::queryKey ( const OUString &  aFormat,
const css::lang::Locale &  nLocale,
sal_Bool  bScan 
)
overridevirtual

FIXME: Something still needs to happen here ...

Definition at line 398 of file numfmuno.cxx.

References aBuf, SvNumberFormatter::GetEntryKey(), lcl_GetLanguage(), m_aMutex, m_xSupplier, NUMBERFORMAT_ENTRY_NOT_FOUND, and p.

◆ queryKeys()

uno::Sequence< sal_Int32 > SAL_CALL SvNumberFormatsObj::queryKeys ( sal_Int16  nType,
const css::lang::Locale &  nLocale,
sal_Bool  bCreate 
)
overridevirtual

◆ removeByKey()

void SAL_CALL SvNumberFormatsObj::removeByKey ( sal_Int32  nKey)
overridevirtual

Definition at line 532 of file numfmuno.cxx.

References SvNumberFormatter::DeleteEntry(), m_aMutex, and m_xSupplier.

◆ supportsService()

sal_Bool SAL_CALL SvNumberFormatsObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 632 of file numfmuno.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aMutex

mutable::comphelper::SharedMutex SvNumberFormatsObj::m_aMutex
private

◆ m_xSupplier

rtl::Reference<SvNumberFormatsSupplierObj> SvNumberFormatsObj::m_xSupplier
private

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