interface XNumberFormatPreviewer in module com::sun::star::util::

(Global Index)

Syntax

interface XNumberFormatPreviewer : com::sun::star::uno::XInterface ;

Description

represents a number formatter, which can preview number formats without inserting them.

See also

NumberFormatter

Method Summary

convertNumberToPreviewString formats a value using a format string, without inserting a number format into the list.

queryPreviewColorForNumber returns the color which is to be used for a number.

Known Services Which Export this Interface

com::sun::star::util::NumberFormatter

Method Details



convertNumberToPreviewString

Syntax

string convertNumberToPreviewString (
string aFormat,
double fValue,
com::sun::star::lang::Locale nLocale,
boolean bAllowEnglish )
raises ( com::sun::star::util::MalformedNumberFormatException );

Description

formats a value using a format string, without inserting a number format into the list.


queryPreviewColorForNumber

Syntax

com::sun::star::util::color queryPreviewColorForNumber (
string aFormat,
double fValue,
com::sun::star::lang::Locale nLocale,
boolean bAllowEnglish,
com::sun::star::util::color aDefaultColor )
raises ( com::sun::star::util::MalformedNumberFormatException );

Description

returns the color which is to be used for a number.

Top of Page