LibreOffice
LibreOffice 24.2 SDK API Reference
|
represents an object which can format numbers and strings. More...
import"NumberFormatter.idl";
Additional Inherited Members | |
Exported Interfaces inherited from XNumberFormatter2 | |
interface | com::sun::star::util::XNumberFormatter |
is used to format or parse numbers using formats from a NumberFormats object. More... | |
interface | com::sun::star::util::XNumberFormatPreviewer |
is used to format numbers using a number format string that is not inserted into a NumberFormats object. More... | |
Public Member Functions inherited from XNumberFormatter | |
void | attachNumberFormatsSupplier ([in] com::sun::star::util::XNumberFormatsSupplier xSupplier) |
attaches an XNumberFormatsSupplier to this NumberFormatter. More... | |
com::sun::star::util::XNumberFormatsSupplier | getNumberFormatsSupplier () |
long | detectNumberFormat ([in] long nKey, [in] string aString) raises ( com::sun::star::util::NotNumericException ) |
detects the number format in a string which contains a formatted number. More... | |
double | convertStringToNumber ([in] long nKey, [in] string aString) raises ( com::sun::star::util::NotNumericException ) |
converts a string which contains a formatted number into a number. More... | |
string | convertNumberToString ([in] long nKey, [in] double fValue) |
converts a number into a string. More... | |
com::sun::star::util::Color | queryColorForNumber ([in] long nKey, [in] double fValue, [in] com::sun::star::util::Color aDefaultColor) |
string | formatString ([in] long nKey, [in] string aString) |
converts a string into another string. More... | |
com::sun::star::util::Color | queryColorForString ([in] long nKey, [in] string aString, [in] com::sun::star::util::Color aDefaultColor) |
string | getInputString ([in] long nKey, [in] double fValue) |
converts a number into a string with the specified 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... | |
Public Member Functions inherited from XNumberFormatPreviewer | |
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... | |
represents an object which can format numbers and strings.
A NumberFormatter, if available, can be created by the global service manager.