LibreOffice
LibreOffice 5.3 SDK API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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

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
OfficeDev - Overview and Using the API - XNativeNumberSupplier
OfficeDev - Implementing a New Locale - XNativeNumberSupplier

Member Function Documentation

short convertFromXmlAttributes ( [in] NativeNumberXmlAttributes  aAttr)

Convert XML attributes to a NatNum value.

Returns
One of NativeNumberMode
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.
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.
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: