Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: util ::
interface XNumberFormatter
Description represents a number formatter. Developers Guide OfficeDev - Number Formats

Methods' Summary
attachNumberFormatsSupplier | attaches an XNumberFormatsSupplier to this NumberFormatter.
getNumberFormatsSupplier |
detectNumberFormat | detects the number format in a string which contains a formatted number.
convertStringToNumber | converts a string which contains a formatted number into a number.
convertNumberToString | converts a number into a string.
queryColorForNumber |
formatString | converts a string into another string.
queryColorForString |
getInputString | converts a number into a string with the specified format.

Methods' Details
attachNumberFormatsSupplier
void
attachNumberFormatsSupplier( | [in] 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.
getNumberFormatsSupplier
XNumberFormatsSupplier
getNumberFormatsSupplier();
Returns the attached XNumberFormatsSupplier.
detectNumberFormat
long
detectNumberFormat( | [in] long | nKey,
| [in] string | aString )
raises( | NotNumericException );
Description detects the number format in a string which contains a formatted number.
convertStringToNumber
double
convertStringToNumber( | [in] long | nKey,
| [in] string | aString )
raises( | 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.
convertNumberToString
string
convertNumberToString( | [in] long | nKey,
| [in] double | fValue );
Description converts a number into a string.
queryColorForNumber
Color
queryColorForNumber( | [in] long | nKey,
| [in] double | fValue,
| [in] Color | aDefaultColor );
Returns the color which is specified for the given value in the number format, which is otherwise the value of aDefaultColor.
formatString
string
formatString( | [in] long | nKey,
| [in] string | aString );
Description converts a string into another string.
queryColorForString
Color
queryColorForString( | [in] long | nKey,
| [in] string | aString,
| [in] Color | aDefaultColor );
Returns the color which is specified for the given string in the number format, which is otherwise the value of aDefaultColor.
getInputString
string
getInputString( | [in] long | nKey,
| [in] 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.

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.