interface XNumberFormatCode in module com::sun::star::i18n::

(Global Index)

Syntax

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

Description

This interface provides access to specific number format codes.

Method Summary

getDefault returns the default number format code of a specific category (usage group) for a given locale and format length type.

getFormatCode returns the number format pointed to by nFormatIndex for a given locale.

getAllFormatCode returns all format codes for a given nFormatUsage and locale.

getAllFormatCodes returns all format codes for a given locale.

Known Services Which Export this Interface

com::sun::star::i18n::NumberFormatMapper

Method Details



getDefault

Syntax

com::sun::star::i18n::NumberFormatCode getDefault (
short nFormatType,
short nFormatUsage,
com::sun::star::lang::Locale rLocale );

Description

returns the default number format code of a specific category (usage group) for a given locale and format length type.

Parameter nFormatType

one of the constants listed in KNumberFormatType

Parameter nFormatUsage

one of KNumberFormatUsage values

getFormatCode

Syntax

com::sun::star::i18n::NumberFormatCode getFormatCode (
short nFormatIndex,
com::sun::star::lang::Locale rLocale );

Description

returns the number format pointed to by nFormatIndex for a given locale.

Parameter nFormatIndex

one of NumberFormatIndex values

getAllFormatCode

Syntax

sequence< com::sun::star::i18n::NumberFormatCode > getAllFormatCode (
short nFormatUsage,
com::sun::star::lang::Locale rLocale );

Description

returns all format codes for a given nFormatUsage and locale.

Parameter nFormatUsage

one of KNumberFormatUsage values

getAllFormatCodes

Syntax

sequence< com::sun::star::i18n::NumberFormatCode > getAllFormatCodes (
com::sun::star::lang::Locale rLocale );

Description

returns all format codes for a given locale.

Top of Page