interface XNumberFormatTypes in module com::sun::star::util::

(Global Index)

Syntax

interface XNumberFormatTypes : com::sun::star::uno::XInterface ;

Description

represents functions to get specific, predefined number formats.

Method Summary

getStandardIndex

getStandardFormat

getFormatIndex

isTypeCompatible verifies if one type of number format is compatible with another type.

getFormatForLocale

Known Services Which Export this Interface

com::sun::star::util::NumberFormats

Method Details



getStandardIndex

Syntax

long getStandardIndex (
com::sun::star::lang::Locale nLocale );

Returns

the key of the standard format for a locale.

getStandardFormat

Syntax

long getStandardFormat (
short nType,
com::sun::star::lang::Locale nLocale );

Returns

the key of the standard format within a specified type for a given locale.

Parameter nType

the type of the number format. Must be one of the NUMBERFORMAT_... constants.

getFormatIndex

Syntax

long getFormatIndex (
short nIndex,
com::sun::star::lang::Locale nLocale );

Returns

the key of a built-in format for a locale:

Parameter nIndex

the index of the wanted number format within the formats for the given locale. One of the NumberFormatIndex constants.

isTypeCompatible

Syntax

boolean isTypeCompatible (
short nOldType,
short nNewType );

Description

verifies if one type of number format is compatible with another type.


getFormatForLocale

Syntax

long getFormatForLocale (
long nKey,
com::sun::star::lang::Locale nLocale );

Returns

the index of the converted number format if successful, the old index if the number format could not be converted.

Parameter nKey

index of the old number format

Parameter nLocale

the locale to which the number format is converted
Top of Page