|
Syntax
- com::sun::star::beans::XPropertySet getByKey
(
- long nKey );
Returns
-
a readonly NumberFormatProperties .
Syntax
- sequence< long > queryKeys
(
- short nType,
- com::sun::star::lang::Locale nLocale,
- boolean bCreate );
Returns
-
a sequence of the keys of all number formats with the specified type and language.
Parameter nType
-
the type of number formats to return. Must be one of the
NumberFormat constants.
Parameter nLanguage
-
the language of number formats to return.
Parameter bCreate
-
true
: create new entries if no formats for the selected language exist
false
: return an empty list if no formats for the selected language exist
Syntax
- long queryKey
(
- string aFormat,
- com::sun::star::lang::Locale nLocale,
- boolean bScan );
Description
finds a number format by its format string and returns its key.
Syntax
- long addNew
(
- string aFormat,
- com::sun::star::lang::Locale nLocale )
- raises ( com::sun::star::util::MalformedNumberFormatException );
Description
adds a new number format to the list, using a format string.
Syntax
- long addNewConverted
(
- string aFormat,
- com::sun::star::lang::Locale nLocale,
- com::sun::star::lang::Locale nNewLocale )
- raises ( com::sun::star::util::MalformedNumberFormatException );
Description
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.
Syntax
- void removeByKey
(
- long nKey );
Description
removes a number format from the list.
Syntax
- string generateFormat
(
- long nBaseKey,
- com::sun::star::lang::Locale nLocale,
- boolean bThousands,
- boolean bRed,
- short nDecimals,
- short nLeading );
Description
generates a format string from several parameters without
creating an actual number format.
|