Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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 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.