LibreOffice Module svl (master) 1
nfsymbol.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_SVL_NFSYMBOL_HXX
21#define INCLUDED_SVL_NFSYMBOL_HXX
22
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.
29 */
30
31namespace svt {
32
35{
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
57};
58
59} // namespace svt
60
61#endif // INCLUDED_SVL_NFSYMBOL_HXX
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
NfSymbolType
Number formatter's symbol types of a token, if not key words, which are >0.
Definition: nfsymbol.hxx:35
@ NF_SYMBOLTYPE_STAR
Definition: nfsymbol.hxx:39
@ NF_SYMBOLTYPE_CALENDAR
Definition: nfsymbol.hxx:50
@ NF_SYMBOLTYPE_CURREXT
Definition: nfsymbol.hxx:49
@ NF_SYMBOLTYPE_CURRENCY
Definition: nfsymbol.hxx:47
@ NF_SYMBOLTYPE_EXP
Definition: nfsymbol.hxx:43
@ NF_SYMBOLTYPE_CALDEL
Definition: nfsymbol.hxx:51
@ NF_SYMBOLTYPE_FRACBLANK
Definition: nfsymbol.hxx:46
@ NF_SYMBOLTYPE_DECSEP
Definition: nfsymbol.hxx:41
@ NF_SYMBOLTYPE_DATESEP
Definition: nfsymbol.hxx:52
@ NF_SYMBOLTYPE_FRAC
Definition: nfsymbol.hxx:44
@ NF_SYMBOLTYPE_TIME100SECSEP
Definition: nfsymbol.hxx:54
@ NF_SYMBOLTYPE_STRING
Definition: nfsymbol.hxx:36
@ NF_SYMBOLTYPE_BLANK
Definition: nfsymbol.hxx:38
@ NF_SYMBOLTYPE_PERCENT
Definition: nfsymbol.hxx:55
@ NF_SYMBOLTYPE_DIGIT
Definition: nfsymbol.hxx:40
@ NF_SYMBOLTYPE_FRAC_FDIV
Definition: nfsymbol.hxx:56
@ NF_SYMBOLTYPE_CURRDEL
Definition: nfsymbol.hxx:48
@ NF_SYMBOLTYPE_THSEP
Definition: nfsymbol.hxx:42
@ NF_SYMBOLTYPE_DEL
Definition: nfsymbol.hxx:37
@ NF_SYMBOLTYPE_TIMESEP
Definition: nfsymbol.hxx:53
@ NF_SYMBOLTYPE_EMPTY
Definition: nfsymbol.hxx:45