(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 XNativeNumberSupplier
Description
Methods to convert between strings of ASCII Arabic digits and native numeral strings.
Since
OOo 1.1.2
Developers Guide
OfficeDev - Overview and Using the API - XNativeNumberSupplier
OfficeDev - Implementing a New Locale - XNativeNumberSupplier

Methods' Summary
getNativeNumberString Returns native number string for given number string.  
isValidNatNum Check if the NatNum is valid for the given locale.  
convertToXmlAttributes Convert a specific NatNum/Locale combination to attributes used in the XML file format.  
convertFromXmlAttributes Convert XML attributes to a NatNum value.  
Methods' Details
getNativeNumberString
string
getNativeNumberString( [in] string  aNumberString,
[in] ::com::sun::star::lang::Locale  aLocale,
[in] short  nNativeNumberMode );

Description
Returns native number string for given number string.
Parameter nNativeNumberMode
One of NativeNumberMode values.
isValidNatNum
boolean
isValidNatNum( [in] ::com::sun::star::lang::Locale  aLocale,
[in] short  nNativeNumberMode );

Description
Check if the NatNum is valid for the given locale.
Parameter nNativeNumberMode
One of NativeNumberMode values.
convertToXmlAttributes
NativeNumberXmlAttributes
convertToXmlAttributes( [in] ::com::sun::star::lang::Locale  aLocale,
[in] short  nNativeNumberMode );

Description
Convert a specific NatNum/Locale combination to attributes used in the XML file format.
Parameter nNativeNumberMode
One of NativeNumberMode values.
convertFromXmlAttributes
short
convertFromXmlAttributes( [in] NativeNumberXmlAttributes  aAttr );

Description
Convert XML attributes to a NatNum value.
Returns
One of NativeNumberMode
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.