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

SvNumberFormatterServiceObj is registered globally as a Service. More...

#include <numfmuno.hxx>

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

Public Member Functions

 SvNumberFormatterServiceObj ()
 
virtual ~SvNumberFormatterServiceObj () override
 
virtual void SAL_CALL attachNumberFormatsSupplier (const css::uno::Reference< css::util::XNumberFormatsSupplier > &xSupplier) override
 
virtual css::uno::Reference< css::util::XNumberFormatsSupplier > SAL_CALL getNumberFormatsSupplier () override
 
virtual sal_Int32 SAL_CALL detectNumberFormat (sal_Int32 nKey, const OUString &aString) override
 
virtual double SAL_CALL convertStringToNumber (sal_Int32 nKey, const OUString &aString) override
 
virtual OUString SAL_CALL convertNumberToString (sal_Int32 nKey, double fValue) override
 
virtual sal_Int32 SAL_CALL queryColorForNumber (sal_Int32 nKey, double fValue, sal_Int32 aDefaultColor) override
 
virtual OUString SAL_CALL formatString (sal_Int32 nKey, const OUString &aString) override
 
virtual sal_Int32 SAL_CALL queryColorForString (sal_Int32 nKey, const OUString &aString, sal_Int32 aDefaultColor) override
 
virtual OUString SAL_CALL getInputString (sal_Int32 nKey, double fValue) override
 
virtual OUString SAL_CALL convertNumberToPreviewString (const OUString &aFormat, double fValue, const css::lang::Locale &nLocale, sal_Bool bAllowEnglish) override
 
virtual sal_Int32 SAL_CALL queryPreviewColorForNumber (const OUString &aFormat, double fValue, const css::lang::Locale &nLocale, sal_Bool bAllowEnglish, sal_Int32 aDefaultColor) 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< SvNumberFormatsSupplierObjxSupplier
 
mutable::comphelper::SharedMutex m_aMutex
 

Detailed Description

SvNumberFormatterServiceObj is registered globally as a Service.

Definition at line 39 of file numfmuno.hxx.

Constructor & Destructor Documentation

◆ SvNumberFormatterServiceObj()

SvNumberFormatterServiceObj::SvNumberFormatterServiceObj ( )

Definition at line 107 of file numfmuno.cxx.

◆ ~SvNumberFormatterServiceObj()

SvNumberFormatterServiceObj::~SvNumberFormatterServiceObj ( )
overridevirtual

Definition at line 111 of file numfmuno.cxx.

Member Function Documentation

◆ attachNumberFormatsSupplier()

void SAL_CALL SvNumberFormatterServiceObj::attachNumberFormatsSupplier ( const css::uno::Reference< css::util::XNumberFormatsSupplier > &  xSupplier)
overridevirtual

Definition at line 117 of file numfmuno.cxx.

References m_aMutex, and xSupplier.

◆ convertNumberToPreviewString()

OUString SAL_CALL SvNumberFormatterServiceObj::convertNumberToPreviewString ( const OUString &  aFormat,
double  fValue,
const css::lang::Locale &  nLocale,
sal_Bool  bAllowEnglish 
)
overridevirtual

◆ convertNumberToString()

OUString SAL_CALL SvNumberFormatterServiceObj::convertNumberToString ( sal_Int32  nKey,
double  fValue 
)
overridevirtual

Definition at line 175 of file numfmuno.cxx.

References SvNumberFormatter::GetOutputString(), m_aMutex, and xSupplier.

◆ convertStringToNumber()

double SAL_CALL SvNumberFormatterServiceObj::convertStringToNumber ( sal_Int32  nKey,
const OUString &  aString 
)
overridevirtual

Definition at line 159 of file numfmuno.cxx.

References SvNumberFormatter::IsNumberFormat(), m_aMutex, and xSupplier.

◆ detectNumberFormat()

sal_Int32 SAL_CALL SvNumberFormatterServiceObj::detectNumberFormat ( sal_Int32  nKey,
const OUString &  aString 
)
overridevirtual

Definition at line 143 of file numfmuno.cxx.

References SvNumberFormatter::IsNumberFormat(), m_aMutex, and xSupplier.

◆ formatString()

OUString SAL_CALL SvNumberFormatterServiceObj::formatString ( sal_Int32  nKey,
const OUString &  aString 
)
overridevirtual

Definition at line 211 of file numfmuno.cxx.

References SvNumberFormatter::GetOutputString(), m_aMutex, and xSupplier.

◆ getImplementationName()

OUString SAL_CALL SvNumberFormatterServiceObj::getImplementationName ( )
overridevirtual

Definition at line 332 of file numfmuno.cxx.

◆ getInputString()

OUString SAL_CALL SvNumberFormatterServiceObj::getInputString ( sal_Int32  nKey,
double  fValue 
)
overridevirtual

Definition at line 254 of file numfmuno.cxx.

References SvNumberFormatter::GetInputLineString(), m_aMutex, and xSupplier.

◆ getNumberFormatsSupplier()

uno::Reference< util::XNumberFormatsSupplier > SAL_CALL SvNumberFormatterServiceObj::getNumberFormatsSupplier ( )
overridevirtual

Definition at line 137 of file numfmuno.cxx.

References m_aMutex, and xSupplier.

◆ getSupportedServiceNames()

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

Definition at line 342 of file numfmuno.cxx.

◆ queryColorForNumber()

sal_Int32 SAL_CALL SvNumberFormatterServiceObj::queryColorForNumber ( sal_Int32  nKey,
double  fValue,
sal_Int32  aDefaultColor 
)
overridevirtual

Definition at line 190 of file numfmuno.cxx.

References aStr, SvNumberFormatter::GetOutputString(), m_aMutex, and xSupplier.

◆ queryColorForString()

sal_Int32 SAL_CALL SvNumberFormatterServiceObj::queryColorForString ( sal_Int32  nKey,
const OUString &  aString,
sal_Int32  aDefaultColor 
)
overridevirtual

Definition at line 229 of file numfmuno.cxx.

References aStr, SvNumberFormatter::GetOutputString(), m_aMutex, and xSupplier.

◆ queryPreviewColorForNumber()

sal_Int32 SAL_CALL SvNumberFormatterServiceObj::queryPreviewColorForNumber ( const OUString &  aFormat,
double  fValue,
const css::lang::Locale &  nLocale,
sal_Bool  bAllowEnglish,
sal_Int32  aDefaultColor 
)
overridevirtual

◆ supportsService()

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

Definition at line 337 of file numfmuno.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aMutex

mutable::comphelper::SharedMutex SvNumberFormatterServiceObj::m_aMutex
private

◆ xSupplier

::rtl::Reference< SvNumberFormatsSupplierObj > SvNumberFormatterServiceObj::xSupplier
private

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