Overview | Module | Use | Devguide | Index

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

:: com :: sun :: star :: util ::
interface XNumberFormatTypes
Description represents functions to get specific, predefined number formats. Developers Guide OfficeDev - Number Formats

Methods' Summary
getStandardIndex |
getStandardFormat |
getFormatIndex |
isTypeCompatible | verifies if one type of number format is compatible with another type.
getFormatForLocale |

Methods' Details
getStandardIndex
long
getStandardIndex( | [in] ::com::sun::star::lang::Locale | nLocale );
Returns the key of the standard format for a locale.
getStandardFormat
long
getStandardFormat( | [in] short | nType,
| [in] ::com::sun::star::lang::Locale | nLocale );
Returns the key of the standard format within a specified type for a given locale. Parameter nType the type of the number format. Must be one of the NumberFormat constants.
getFormatIndex
long
getFormatIndex( | [in] short | nIndex,
| [in] ::com::sun::star::lang::Locale | nLocale );
Returns the key of a built-in format for a locale: Parameter nIndex the index of the wanted number format within the formats for the given locale. One of the ::com::sun::star::i18n::NumberFormatIndex constants.
isTypeCompatible
boolean
isTypeCompatible( | [in] short | nOldType,
| [in] short | nNewType );
Description verifies if one type of number format is compatible with another type.
getFormatForLocale
long
getFormatForLocale( | [in] long | nKey,
| [in] ::com::sun::star::lang::Locale | nLocale );
Returns the index of the converted number format if successful, the old index if the number format could not be converted. Parameter nKey index of the old number format Parameter nLocale the locale to which the number format is converted

Top of Page

Copyright © 2000, 2013 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.