LibreOffice
LibreOffice 7.2 SDK API Reference
Public Member Functions | List of all members
XNumberText Interface Reference

This interface allows to spell out numbers and money amounts. More...

import"XNumberText.idl";

Inheritance diagram for XNumberText:
NumberText

Public Member Functions

string getNumberText ([in] string aText, [in] com::sun::star::lang::Locale aLocale) raises ( com::sun::star::lang::IllegalArgumentException )
 spell out numbers and money amounts More...
 
sequence< com::sun::star::lang::LocalegetAvailableLanguages ()
 returns a list of all supported languages. More...
 

Detailed Description

This interface allows to spell out numbers and money amounts.

The current set of supported languages is:

Since
LibreOffice 6.1

Member Function Documentation

◆ getAvailableLanguages()

sequence< com::sun::star::lang::Locale > getAvailableLanguages ( )

returns a list of all supported languages.

◆ getNumberText()

string getNumberText ( [in] string  aText,
[in] com::sun::star::lang::Locale  aLocale 
)
raises (com::sun::star::lang::IllegalArgumentException
)

spell out numbers and money amounts

Please note that text argument can contain prefixes separated by space, for example "ordinal" for ordinal numbers, "ordinal-number" for ordinal indicators and ISO 4217 currency codes.

Language modules list the supported prefixes by the input text "help".

Returns
the result of the number name conversion.
Parameters
aTextall the text including the part that should converted.
aLocalethe locale for the target language of the number name conversion.
See also
com::sun::star::lang::Locale

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