LibreOffice
LibreOffice 5.3 SDK API Reference
|
represents a number formatter which can preview number formats without inserting them. More...
import "XNumberFormatPreviewer.idl";
Public Member Functions | |
string | convertNumberToPreviewString ([in] string aFormat, [in] double fValue, [in] com::sun::star::lang::Locale nLocale, [in] boolean bAllowEnglish) raises ( com::sun::star::util::MalformedNumberFormatException ) |
formats a value using a format string, without inserting a number format into the list. More... | |
com::sun::star::util::Color | queryPreviewColorForNumber ([in] string aFormat, [in] double fValue, [in] com::sun::star::lang::Locale nLocale, [in] boolean bAllowEnglish, [in] com::sun::star::util::Color aDefaultColor) raises ( com::sun::star::util::MalformedNumberFormatException ) |
returns the color which is to be used for a number. More... | |
![]() | |
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... | |
represents a number formatter which can preview number formats without inserting them.
string convertNumberToPreviewString | ( | [in] string | aFormat, |
[in] double | fValue, | ||
[in] com::sun::star::lang::Locale | nLocale, | ||
[in] boolean | bAllowEnglish | ||
) | |||
raises | ( | com::sun::star::util::MalformedNumberFormatException | |
) |
formats a value using a format string, without inserting a number format into the list.
aFormat | is the format string that is used for formatting. |
fValue | is the value that is formatted. |
nLocale | is the locale that is used to interpret the format string. |
bAllowEnglish | specifies if English language number format strings are accepted in addition to those from the selected locale. |
com::sun::star::util::MalformedNumberFormatException | if the format string is invalid. |
com::sun::star::util::Color queryPreviewColorForNumber | ( | [in] string | aFormat, |
[in] double | fValue, | ||
[in] com::sun::star::lang::Locale | nLocale, | ||
[in] boolean | bAllowEnglish, | ||
[in] com::sun::star::util::Color | aDefaultColor | ||
) | |||
raises | ( | com::sun::star::util::MalformedNumberFormatException | |
) |
returns the color which is to be used for a number.
aFormat | is the format string that is used for formatting. |
fValue | is the value that is formatted. |
nLocale | is the locale that is used to interpret the format string. |
bAllowEnglish | specifies if English language number format strings are accepted in addition to those from the selected locale. |
aDefaultColor | is the color that should be returned if no color is set by the number format. |
com::sun::star::util::MalformedNumberFormatException | if the format string is invalid. |