- Description
- represents a number formatter which can preview number
formats without inserting them.
- See also
- NumberFormatter
- Developers Guide
-
Methods' Details |
convertNumberToPreviewString
- Description
- formats a value using a format string, without inserting a
number format into the list.
- Parameter aFormat
-
is the format string that is used for formatting.
- Parameter fValue
-
is the value that is formatted.
- Parameter nLocale
-
is the locale that is used to interpret the format string.
- Parameter bAllowEnglish
-
specifies if English language number format strings are accepted
in addition to those from the selected locale.
- Returns
-
the formatted string.
- Throws
- com::sun::star::util::MalformedNumberFormatException
if the format string is invalid.
|
|
queryPreviewColorForNumber
- Description
- returns the color which is to be used for a number.
- Parameter aFormat
-
is the format string that is used for formatting.
- Parameter fValue
-
is the value that is formatted.
- Parameter nLocale
-
is the locale that is used to interpret the format string.
- Parameter bAllowEnglish
-
specifies if English language number format strings are accepted
in addition to those from the selected locale.
- Parameter aDefaultColor
-
is the color that should be returned if no color is set by
the number format.
- Returns
-
the color that should used to output the formatted string.
- Throws
- com::sun::star::util::MalformedNumberFormatException
if the format string is invalid.
|
|
Top of Page
Copyright © 2003 Sun Microsystems, Inc.
|