Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.10

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XNumberFormatCode
Description
Access number format codes defined in locale data.
Developers Guide
OfficeDev - Overview and Using the API - XNumberFormatCode

Methods' 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.  
Methods' Details
getDefault
NumberFormatCode
getDefault( [in] short  nFormatType,
[in] short  nFormatUsage,
[in] ::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
NumberFormatCode
getFormatCode( [in] short  nFormatIndex,
[in] ::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
sequence< NumberFormatCode >
getAllFormatCode( [in] short  nFormatUsage,
[in] ::com::sun::star::lang::Locale  rLocale );

Description
returns all format codes for a given nFormatUsage and locale.
Parameter nFormatUsage
one of KNumberFormatUsage values
getAllFormatCodes
sequence< NumberFormatCode >
getAllFormatCodes( [in] ::com::sun::star::lang::Locale  rLocale );

Description
returns all format codes for a given locale.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.