Top   Module   Use   Manual   Index 

com :: sun :: star :: i18n ::

constants group NumberFormatIndex


Description
Number format indexes to be passed as the index argument to XNumberFormatCode::getFormatCode() or XNumberFormatTypes::getFormatIndex() .

Format codes supported by each locale can be of any number. But for backward compatiblity reasons, each locale must support some predefined format codes. These predefined format codes are accessed through indexes as the following. The values are also used to define the enum NfIndexTableOffset in file svtools/inc/zforlist.hxx

Note: This index has nothing to do with the index key used internally by the number formatter.



Constants

const short NUMBER_START = = 0;
Description
Number formats.
const short NUMBER_STANDARD = = NUMBER_START;
Description
General
const short NUMBER_INT = = NUMBER_START+1;
Description
0
const short NUMBER_DEC2 = = NUMBER_START+2;
Description
0.00
const short NUMBER_1000INT = = NUMBER_START+3;
Description
#,##0
const short NUMBER_1000DEC2 = = NUMBER_START+4;
Description
#,##0.00
const short NUMBER_SYSTEM = = NUMBER_START+5;
Description
#,##0.00 or whatever is the locale default.
const short NUMBER_END = = NUMBER_SYSTEM ;
const short SCIENTIFIC_START = = NUMBER_END+1;
Description
Scientific formats.
const short SCIENTIFIC_000E000 = = SCIENTIFIC_START;
Description
0.00E+000
const short SCIENTIFIC_000E00 = = SCIENTIFIC_START+1;
Description
0.00E+00
const short SCIENTIFIC_END = = SCIENTIFIC_000E00;
const short PERCENT_START = = SCIENTIFIC_END+1;
Description
Percent formats.
const short PERCENT_INT = = PERCENT_START;
Description
0%
const short PERCENT_DEC2 = = PERCENT_START+1;
Description
0.00%
const short PERCENT_END = = PERCENT_DEC2;
const short FRACTION_START = = PERCENT_END+1;
Description
Fraction formats.
const short FRACTION_1 = = FRACTION_START;
Description
# ?/?
const short FRACTION_2 = = FRACTION_START+1;
Description
# ??/??
const short FRACTION_END = = FRACTION_2;
const short CURRENCY_START = = FRACTION_END+1;
Description
Currency formats.
const short CURRENCY_1000INT = = CURRENCY_START;
Description
#,##0 DM
const short CURRENCY_1000DEC2 = = CURRENCY_START+1;
Description
#,##0.00 DM
const short CURRENCY_1000INT_RED = = CURRENCY_START+2;
Description
#,##0 DM negative red
const short CURRENCY_1000DEC2_RED = = CURRENCY_START+3;
Description
#,##0.00 DM negative red
const short CURRENCY_1000DEC2_CCC = = CURRENCY_START+4;
Description
#,##0.00 DEM currency abbreviation
const short CURRENCY_1000DEC2_DASHED = = CURRENCY_START+5;
Description
#,##0.-- DM
const short CURRENCY_END = = CURRENCY_1000DEC2_DASHED;
const short DATE_START = = CURRENCY_END+1;
Description
Date formats
const short DATE_SYSTEM_SHORT = = DATE_START;
Description
08.10.97 short as default for locale.
const short DATE_SYSTEM_LONG = = DATE_START+1;
Description
Wednesday, 8. October 1997 long as default for locale.
const short DATE_SYS_DDMMYY = = DATE_START+2;
Description
08.10.97 defined
const short DATE_SYS_DDMMYYYY = = DATE_START+3;
Description
08.10.1997
const short DATE_SYS_DMMMYY = = DATE_START+4;
Description
8. Oct 97
const short DATE_SYS_DMMMYYYY = = DATE_START+5;
Description
8. Oct 1997
const short DATE_DIN_DMMMYYYY = = DATE_START+6;
Description
8. Oct. 1997 DIN (Deutsche Industrie Norm) and EN (European Norm)
const short DATE_SYS_DMMMMYYYY = = DATE_START+7;
Description
8. October 1997
const short DATE_DIN_DMMMMYYYY = = DATE_START+8;
Description
8. October 1997 DIN/EN
const short DATE_SYS_NNDMMMYY = = DATE_START+9;
Description
Wed, 8. Oct 97
const short DATE_DEF_NNDDMMMYY = = DATE_START+10;
Description
Wed 08.Oct 97
const short DATE_SYS_NNDMMMMYYYY = = DATE_START+11;
Description
Wed, 8. October 1997
const short DATE_SYS_NNNNDMMMMYYYY = = DATE_START+12;
Description
Wednesday, 8. October 1997
const short DATE_DIN_MMDD = = DATE_START+13;
Description
10-08 DIN/EN
const short DATE_DIN_YYMMDD = = DATE_START+14;
Description
97-10-08 DIN/EN
const short DATE_DIN_YYYYMMDD = = DATE_START+15;
Description
1997-10-08 DIN/EN
const short DATE_SYS_MMYY = = DATE_START+16;
Description
10.97
const short DATE_SYS_DDMMM = = DATE_START+17;
Description
08.Oct
const short DATE_MMMM = = DATE_START+18;
Description
October
const short DATE_QQJJ = = DATE_START+19;
Description
4. Quarer 97
const short DATE_WW = = DATE_START+20;
Description
week of year
const short DATE_END = = DATE_WW;
const short TIME_START = = DATE_END+1;
Description
Time formats
const short TIME_HHMM = = TIME_START;
Description
HH:MM
const short TIME_HHMMSS = = TIME_START+1;
Description
HH:MM:SS
const short TIME_HHMMAMPM = = TIME_START+2;
Description
HH:MM AM/PM
const short TIME_HHMMSSAMPM = = TIME_START+3;
Description
HH:MM:SS AM/PM
const short TIME_HH_MMSS = = TIME_START+4;
Description
[HH]:MM:SS
const short TIME_MMSS00 = = TIME_START+5;
Description
MM:SS,00
const short TIME_HH_MMSS00 = = TIME_START+6;
Description
[HH]:MM:SS,00
const short TIME_END = = TIME_HH_MMSS00;
const short DATETIME_START = = TIME_END + 1;
Description
DateTime formats
const short DATETIME_SYSTEM_SHORT_HHMM = = DATETIME_START;
Description
08.10.97 01:23
const short DATETIME_SYS_DDMMYYYY_HHMMSS = = DATETIME_START+1;
Description
08.10.1997 01:23:45
const short DATETIME_END = = DATETIME_SYS_DDMMYYYY_HHMMSS;
const short BOOLEAN = = DATETIME_END+1;
Description
BOOLEAN format @ATTENTION Not defined in locale data, but generated by the number formatter. If you want to access this format you MUST do it via XNumberFormatTypes::getFormatIndex() instead of XNumberFormatCode::getFormatCode() .
const short TEXT = = BOOLEAN+1;
Description
Text format @ATTENTION Not defined in locale data, but generated by the number formatter. If you want to access this format you MUST do it via XNumberFormatTypes::getFormatIndex() instead of XNumberFormatCode::getFormatCode()
const short INDEX_TABLE_ENTRIES = = TEXT+1;
Description
count of built-in format codes.
Top of Page