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

interface XNativeNumberSupplier
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-XNativeNumberSupplier
Description
Methods to convert between strings of ASCII Arabic digits and native numeral strings.
Since version
OpenOffice.org 1.1
Developers Guide
6.2.2 Office Development - Common Application Features - Internationalization - Overview and Using the API - XNativeNumberSupplier
6.2.2 Office Development - Common Application Features - Internationalization - 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
[in] ::com::sun::star::lang::Locale
[in] short
 
aNumberString,
aLocale,
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
[in] short
 
aLocale,
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
[in] short
 
aLocale,
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