1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVL_NFSYMBOL_HXX
21 #define INCLUDED_SVL_NFSYMBOL_HXX
23 /* ATTENTION! If new types arrive that had its content previously handled as
24 * SYMBOLTYPE_STRING, they have to be added at several places in zforscan.cxx
25 * and/or zformat.cxx, and in xmloff/source/style/xmlnumfe.cxx. Mostly these
26 * are places where already NF_SYMBOLTYPE_STRING together with
27 * NF_SYMBOLTYPE_CURRENCY or NF_SYMBOLTYPE_DATESEP are used in the same case of
28 * a switch respectively an if-condition.
33 /// Number formatter's symbol types of a token, if not key words, which are >0
36 NF_SYMBOLTYPE_STRING
= -1, // literal string in output
37 NF_SYMBOLTYPE_DEL
= -2, // special character
38 NF_SYMBOLTYPE_BLANK
= -3, // blank for '_'
39 NF_SYMBOLTYPE_STAR
= -4, // *-character
40 NF_SYMBOLTYPE_DIGIT
= -5, // digit place holder
41 NF_SYMBOLTYPE_DECSEP
= -6, // decimal separator
42 NF_SYMBOLTYPE_THSEP
= -7, // group AKA thousand separator
43 NF_SYMBOLTYPE_EXP
= -8, // exponent E
44 NF_SYMBOLTYPE_FRAC
= -9, // fraction /
45 NF_SYMBOLTYPE_EMPTY
= -10, // deleted symbols
46 NF_SYMBOLTYPE_FRACBLANK
= -11, // delimiter between integer and fraction
47 NF_SYMBOLTYPE_CURRENCY
= -12, // currency symbol
48 NF_SYMBOLTYPE_CURRDEL
= -13, // currency symbol delimiter [$]
49 NF_SYMBOLTYPE_CURREXT
= -14, // currency symbol extension -xxx
50 NF_SYMBOLTYPE_CALENDAR
= -15, // calendar ID
51 NF_SYMBOLTYPE_CALDEL
= -16, // calendar delimiter [~]
52 NF_SYMBOLTYPE_DATESEP
= -17, // date separator
53 NF_SYMBOLTYPE_TIMESEP
= -18, // time separator
54 NF_SYMBOLTYPE_TIME100SECSEP
= -19, // time 100th seconds separator
55 NF_SYMBOLTYPE_PERCENT
= -20, // percent %
56 NF_SYMBOLTYPE_FRAC_FDIV
= -21 // forced divisors
61 #endif // INCLUDED_SVL_NFSYMBOL_HXX
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */