LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XNativeNumberSupplier Interface Referencepublished

Methods to convert between strings of ASCII Arabic digits and native numeral strings. More...

import"XNativeNumberSupplier.idl";

Inheritance diagram for XNativeNumberSupplier:
XInterface NativeNumberSupplier XNativeNumberSupplier2 NativeNumberSupplier2

Public Member Functions

string getNativeNumberString ([in] string aNumberString, [in] ::com::sun::star::lang::Locale aLocale, [in] short nNativeNumberMode)
 Returns native number string for given number string. More...
 
boolean isValidNatNum ([in] ::com::sun::star::lang::Locale aLocale, [in] short nNativeNumberMode)
 Check if the NatNum is valid for the given locale. More...
 
NativeNumberXmlAttributes convertToXmlAttributes ([in] ::com::sun::star::lang::Locale aLocale, [in] short nNativeNumberMode)
 Convert a specific NatNum/Locale combination to attributes used in the XML file format. More...
 
short convertFromXmlAttributes ([in] NativeNumberXmlAttributes aAttr)
 Convert XML attributes to a NatNum value. More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

Methods to convert between strings of ASCII Arabic digits and native numeral strings.

Since
OOo 1.1.2
Developers Guide
Office Development - Overview and Using the API - XNativeNumberSupplier
Office Development - Implementing a New Locale - XNativeNumberSupplier

Member Function Documentation

◆ convertFromXmlAttributes()

short convertFromXmlAttributes ( [in] NativeNumberXmlAttributes  aAttr)

Convert XML attributes to a NatNum value.

Returns
One of NativeNumberMode

◆ convertToXmlAttributes()

NativeNumberXmlAttributes convertToXmlAttributes ( [in] ::com::sun::star::lang::Locale  aLocale,
[in] short  nNativeNumberMode 
)

Convert a specific NatNum/Locale combination to attributes used in the XML file format.

Parameters
nNativeNumberModeOne of NativeNumberMode values.
aLocaleThe locale.

◆ getNativeNumberString()

string getNativeNumberString ( [in] string  aNumberString,
[in] ::com::sun::star::lang::Locale  aLocale,
[in] short  nNativeNumberMode 
)

Returns native number string for given number string.

Parameters
aNumberStringThe input string.
nNativeNumberModeOne of NativeNumberMode values.
aLocaleThe locale.

◆ isValidNatNum()

boolean isValidNatNum ( [in] ::com::sun::star::lang::Locale  aLocale,
[in] short  nNativeNumberMode 
)

Check if the NatNum is valid for the given locale.

Parameters
nNativeNumberModeOne of NativeNumberMode values.
aLocaleThe locale.

The documentation for this interface was generated from the following file: