LibreOffice
LibreOffice 4.3 SDK API Reference
Public Member Functions | List of all members
XNumberFormats Interface Referencepublished

provides access to multiple NumberFormats. More...

import"XNumberFormats.idl";

Inheritance diagram for XNumberFormats:
XInterface NumberFormats

Public Member Functions

com::sun::star::beans::XPropertySet getByKey ([in] long nKey)
 
sequence< long > queryKeys ([in] short nType, [in] com::sun::star::lang::Locale nLocale, [in] boolean bCreate)
 
long queryKey ([in] string aFormat, [in] com::sun::star::lang::Locale nLocale, [in] boolean bScan)
 finds a number format by its format string and returns its key. More...
 
long addNew ([in] string aFormat, [in] com::sun::star::lang::Locale nLocale) raises ( com::sun::star::util::MalformedNumberFormatException )
 adds a new number format to the list, using a format string. More...
 
long addNewConverted ([in] string aFormat, [in] com::sun::star::lang::Locale nLocale, [in] com::sun::star::lang::Locale nNewLocale) raises ( com::sun::star::util::MalformedNumberFormatException )
 adds a new number format to the list, using a format string in a different locale than the desired locale of the resulting number format. More...
 
void removeByKey ([in] long nKey)
 removes a number format from the list. More...
 
string generateFormat ([in] long nBaseKey, [in] com::sun::star::lang::Locale nLocale, [in] boolean bThousands, [in] boolean bRed, [in] short nDecimals, [in] short nLeading)
 generates a format string from several parameters without creating an actual number format. 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

provides access to multiple NumberFormats.

Developers Guide
OfficeDev - Number Formats

Member Function Documentation

long addNew ( [in] string  aFormat,
[in] com::sun::star::lang::Locale  nLocale 
)
raises (com::sun::star::util::MalformedNumberFormatException
)

adds a new number format to the list, using a format string.

long addNewConverted ( [in] string  aFormat,
[in] com::sun::star::lang::Locale  nLocale,
[in] com::sun::star::lang::Locale  nNewLocale 
)
raises (com::sun::star::util::MalformedNumberFormatException
)

adds a new number format to the list, using a format string in a different locale than the desired locale of the resulting number format.

string generateFormat ( [in] long  nBaseKey,
[in] com::sun::star::lang::Locale  nLocale,
[in] boolean  bThousands,
[in] boolean  bRed,
[in] short  nDecimals,
[in] short  nLeading 
)

generates a format string from several parameters without creating an actual number format.

com::sun::star::beans::XPropertySet getByKey ( [in] long  nKey)
Returns
a readonly NumberFormatProperties.
long queryKey ( [in] string  aFormat,
[in] com::sun::star::lang::Locale  nLocale,
[in] boolean  bScan 
)

finds a number format by its format string and returns its key.

sequence<long> queryKeys ( [in] short  nType,
[in] com::sun::star::lang::Locale  nLocale,
[in] boolean  bCreate 
)
Returns
a sequence of the keys of all number formats with the specified type and language.
Parameters
nTypethe type of number formats to return. Must be one of the NumberFormat constants.
nLocalethe language of number formats to return.
bCreateTRUE: create new entries if no formats for the selected language exist
FALSE: return an empty list if no formats for the selected language exist
void removeByKey ( [in] long  nKey)

removes a number format from the list.


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