LibreOffice Module svl (master)
1
include
svl
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
31
namespace
svt
{
32
34
enum
NfSymbolType
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: */
svt
svt::NfSymbolType
NfSymbolType
Number formatter's symbol types of a token, if not key words, which are >0.
Definition:
nfsymbol.hxx:35
svt::NF_SYMBOLTYPE_STAR
@ NF_SYMBOLTYPE_STAR
Definition:
nfsymbol.hxx:39
svt::NF_SYMBOLTYPE_CALENDAR
@ NF_SYMBOLTYPE_CALENDAR
Definition:
nfsymbol.hxx:50
svt::NF_SYMBOLTYPE_CURREXT
@ NF_SYMBOLTYPE_CURREXT
Definition:
nfsymbol.hxx:49
svt::NF_SYMBOLTYPE_CURRENCY
@ NF_SYMBOLTYPE_CURRENCY
Definition:
nfsymbol.hxx:47
svt::NF_SYMBOLTYPE_EXP
@ NF_SYMBOLTYPE_EXP
Definition:
nfsymbol.hxx:43
svt::NF_SYMBOLTYPE_CALDEL
@ NF_SYMBOLTYPE_CALDEL
Definition:
nfsymbol.hxx:51
svt::NF_SYMBOLTYPE_FRACBLANK
@ NF_SYMBOLTYPE_FRACBLANK
Definition:
nfsymbol.hxx:46
svt::NF_SYMBOLTYPE_DECSEP
@ NF_SYMBOLTYPE_DECSEP
Definition:
nfsymbol.hxx:41
svt::NF_SYMBOLTYPE_DATESEP
@ NF_SYMBOLTYPE_DATESEP
Definition:
nfsymbol.hxx:52
svt::NF_SYMBOLTYPE_FRAC
@ NF_SYMBOLTYPE_FRAC
Definition:
nfsymbol.hxx:44
svt::NF_SYMBOLTYPE_TIME100SECSEP
@ NF_SYMBOLTYPE_TIME100SECSEP
Definition:
nfsymbol.hxx:54
svt::NF_SYMBOLTYPE_STRING
@ NF_SYMBOLTYPE_STRING
Definition:
nfsymbol.hxx:36
svt::NF_SYMBOLTYPE_BLANK
@ NF_SYMBOLTYPE_BLANK
Definition:
nfsymbol.hxx:38
svt::NF_SYMBOLTYPE_PERCENT
@ NF_SYMBOLTYPE_PERCENT
Definition:
nfsymbol.hxx:55
svt::NF_SYMBOLTYPE_DIGIT
@ NF_SYMBOLTYPE_DIGIT
Definition:
nfsymbol.hxx:40
svt::NF_SYMBOLTYPE_FRAC_FDIV
@ NF_SYMBOLTYPE_FRAC_FDIV
Definition:
nfsymbol.hxx:56
svt::NF_SYMBOLTYPE_CURRDEL
@ NF_SYMBOLTYPE_CURRDEL
Definition:
nfsymbol.hxx:48
svt::NF_SYMBOLTYPE_THSEP
@ NF_SYMBOLTYPE_THSEP
Definition:
nfsymbol.hxx:42
svt::NF_SYMBOLTYPE_DEL
@ NF_SYMBOLTYPE_DEL
Definition:
nfsymbol.hxx:37
svt::NF_SYMBOLTYPE_TIMESEP
@ NF_SYMBOLTYPE_TIMESEP
Definition:
nfsymbol.hxx:53
svt::NF_SYMBOLTYPE_EMPTY
@ NF_SYMBOLTYPE_EMPTY
Definition:
nfsymbol.hxx:45
Generated on Sun Jul 30 2023 04:26:36 for LibreOffice Module svl (master) by
1.9.3