(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: 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 OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.