1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: nfkeytab.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_SVTOOLS_NFKEYTAB_HXX
32 #define INCLUDED_SVTOOLS_NFKEYTAB_HXX
35 #include <tools/string.hxx>
41 //! For ImpSvNumberformatScan: first the short symbols, then the long symbols!
42 //! e.g. first TT then TTTT
43 //! The internal order is essentially for the format code string scanner!
44 //! New keywords MUST NOT be inserted, only the NF_KEY_UNUSEDn may be used,
45 //! NF_KEY_LASTKEYWORD must be adjusted accordingly. Otherwise old versions
46 //! will fail upon reading these entries. Nevertheless, old versions are NOT
47 //! able to display those new keywords => blank display.
49 // Note: 2005-09-02: the above applies to the binary file format.
51 // ER 15.12.99: This table is externally only to be used with method
52 // String SvNumberformat::GetMappedFormatstring( const NfKeywordTable&, const LocaleDataWrapper& );
54 // void SvNumberFormatter::FillKeywordTable( NfKeywordTable&, LanguageType );
58 NF_KEY_E
, // exponential symbol
61 NF_KEY_MI
, // minute (!)
62 NF_KEY_MMI
, // minute 02 (!)
63 NF_KEY_M
, // month (!)
64 NF_KEY_MM
, // month 02 (!)
65 NF_KEY_MMM
, // month short name
66 NF_KEY_MMMM
, // month long name
70 NF_KEY_SS
, // second 02
72 NF_KEY_QQ
, // quarter 02
73 NF_KEY_D
, // day of month
74 NF_KEY_DD
, // day of month 02
75 NF_KEY_DDD
, // day of week short
76 NF_KEY_DDDD
, // day of week long
77 NF_KEY_YY
, // year two digits
78 NF_KEY_YYYY
, // year four digits
79 NF_KEY_NN
, // day of week short
80 NF_KEY_NNNN
, // day of week long with separator
81 NF_KEY_CCC
, // currency bank symbol (old version)
82 NF_KEY_GENERAL
, // General / Standard
83 NF_KEY_LASTOLDKEYWORD
= NF_KEY_GENERAL
,
84 NF_KEY_NNN
, // day of week long without separator, as of version 6, 10.10.97
85 NF_KEY_WW
, // week of year, as of version 8, 19.06.98
86 NF_KEY_MMMMM
, // first letter of month name
87 NF_KEY_LASTKEYWORD
= NF_KEY_MMMMM
,
89 NF_KEY_QUARTER
, // was quarter word, not used anymore from SRC631 on (26.04.01)
90 NF_KEY_TRUE
, // boolean true
91 NF_KEY_FALSE
, // boolean false
92 NF_KEY_BOOLEAN
, // boolean
93 NF_KEY_COLOR
, // color
95 NF_KEY_BLACK
= NF_KEY_FIRSTCOLOR
, // you do know colors, don't you?
105 NF_KEY_LASTCOLOR
= NF_KEY_WHITE
,
106 NF_KEY_LASTKEYWORD_SO5
= NF_KEY_LASTCOLOR
,
107 //! Keys from here on can't be saved in SO5 file format and MUST be
108 //! converted to string which means losing any information.
109 NF_KEY_AAA
, // abbreviated day name from Japanese Xcl, same as DDD or NN English
110 NF_KEY_AAAA
, // full day name from Japanese Xcl, same as DDDD or NNN English
111 NF_KEY_EC
, // E non-gregorian calendar year without preceding 0
112 NF_KEY_EEC
, // EE non-gregorian calendar year with preceding 0 (two digit)
113 NF_KEY_G
, // abbreviated era name, latin characters M T S or H for Gengou calendar
114 NF_KEY_GG
, // abbreviated era name
115 NF_KEY_GGG
, // full era name
116 NF_KEY_R
, // acts as EE (Xcl) => GR==GEE, GGR==GGEE, GGGR==GGGEE
117 NF_KEY_RR
, // acts as GGGEE (Xcl)
118 NF_KEY_THAI_T
, // Thai T modifier, speciality of Thai Excel, only used with Thai locale and converted to [NatNum1]
119 NF_KEYWORD_ENTRIES_COUNT
122 typedef String NfKeywordTable
[NF_KEYWORD_ENTRIES_COUNT
];
126 #endif // INCLUDED_SVTOOLS_NFKEYTAB_HXX