|
Syntax
- void attachNumberFormatsSupplier
(
- com::sun::star::util::XNumberFormatsSupplier xSupplier );
Description
attaches an XNumberFormatsSupplier to this
NumberFormatter .
This NumberFormatter will only use the NumberFormats
specified in the attached XNumberFormatsSupplier . Without an attached
XNumberFormatsSupplier , no formatting is possible.
Syntax
- com::sun::star::util::XNumberFormatsSupplier getNumberFormatsSupplier
();
Returns
-
the attached NumberFormatsSupplier .
Syntax
- long detectNumberFormat
(
- long nKey,
- string aString )
- raises ( com::sun::star::util::NotNumericException );
Description
detects the number format in a string which contains a formatted number.
Syntax
- double convertStringToNumber
(
- long nKey,
- string aString )
- raises ( com::sun::star::util::NotNumericException );
Description
converts a string which contains a formatted number into a number.
If this is a text format, the string will not be converted.
Syntax
- string convertNumberToString
(
- long nKey,
- double fValue );
Description
converts a number into a string.
Syntax
- com::sun::star::util::color queryColorForNumber
(
- long nKey,
- double fValue,
- com::sun::star::util::color aDefaultColor );
Returns
-
the color which is specified for the given value in the number format,
which is otherwise the value of aDefaultColor .
Syntax
- string formatString
(
- long nKey,
- string aString );
Description
converts a string into another string.
Syntax
- com::sun::star::util::color queryColorForString
(
- long nKey,
- string aString,
- com::sun::star::util::color aDefaultColor );
Returns
-
the color which is specified for the given string in the number format,
which is otherwise the value of aDefaultColor .
Syntax
- string getInputString
(
- long nKey,
- double fValue );
Description
converts a number into a string with the specified format.
This string can always be converted back to a number using the same
format.
|