LibreOffice Module svl (master)
1
include
svl
nfkeytab.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_NFKEYTAB_HXX
21
#define INCLUDED_SVL_NFKEYTAB_HXX
22
23
#include <array>
24
#include <rtl/ustring.hxx>
25
29
//
30
// This table is externally only to be used with method
31
// OUString SvNumberformat::GetMappedFormatstring( const NfKeywordTable&, const LocaleDataWrapper& );
32
// and method
33
// void SvNumberFormatter::FillKeywordTable( NfKeywordTable&, LanguageType );
34
enum
NfKeywordIndex
35
{
36
NF_KEY_NONE
= 0,
37
NF_KEY_E
,
// exponential symbol
38
NF_KEY_AMPM
,
// AM/PM
39
NF_KEY_AP
,
// a/p
40
NF_KEY_MI
,
// minute (!)
41
NF_KEY_MMI
,
// minute 02 (!)
42
NF_KEY_M
,
// month (!)
43
NF_KEY_MM
,
// month 02 (!)
44
NF_KEY_MMM
,
// month short name
45
NF_KEY_MMMM
,
// month long name
46
NF_KEY_MMMMM
,
// month narrow name, first letter
47
NF_KEY_H
,
// hour
48
NF_KEY_HH
,
// hour 02
49
NF_KEY_S
,
// second
50
NF_KEY_SS
,
// second 02
51
NF_KEY_Q
,
// quarter
52
NF_KEY_QQ
,
// quarter 02
53
NF_KEY_D
,
// day of month
54
NF_KEY_DD
,
// day of month 02
55
NF_KEY_DDD
,
// day of week short
56
NF_KEY_DDDD
,
// day of week long
57
NF_KEY_YY
,
// year two digits
58
NF_KEY_YYYY
,
// year four digits
59
NF_KEY_NN
,
// day of week short
60
NF_KEY_NNN
,
// day of week long without separator, as of version 6, 10.10.97
61
NF_KEY_NNNN
,
// day of week long with separator
62
NF_KEY_AAA
,
// abbreviated day name from Japanese Xcl, same as DDD or NN English
63
NF_KEY_AAAA
,
// full day name from Japanese Xcl, same as DDDD or NNN English
64
NF_KEY_EC
,
// E non-gregorian calendar year without preceding 0
65
NF_KEY_EEC
,
// EE non-gregorian calendar year with preceding 0 (two digit)
66
NF_KEY_G
,
// abbreviated era name, latin characters M T S or H for Gengou calendar
67
NF_KEY_GG
,
// abbreviated era name
68
NF_KEY_GGG
,
// full era name
69
NF_KEY_R
,
// acts as EE (Xcl) => GR==GEE, GGR==GGEE, GGGR==GGGEE
70
NF_KEY_RR
,
// acts as GGGEE (Xcl)
71
NF_KEY_WW
,
// week of year, as of version 8, 19.06.98
72
NF_KEY_THAI_T
,
// Thai T modifier, speciality of Thai Excel, only used with Thai locale and converted to [NatNum1]
73
NF_KEY_CCC
,
// currency bank symbol (old version)
74
NF_KEY_BOOLEAN
,
// boolean
75
NF_KEY_GENERAL
,
// General / Standard
76
NF_KEY_LASTKEYWORD
=
NF_KEY_GENERAL
,
77
78
// Reserved words translated and color names follow:
79
NF_KEY_TRUE
,
// boolean true
80
NF_KEY_FALSE
,
// boolean false
81
NF_KEY_COLOR
,
// color
82
NF_KEY_FIRSTCOLOR
,
83
NF_KEY_BLACK
=
NF_KEY_FIRSTCOLOR
,
// you do know colors, don't you?
84
NF_KEY_BLUE
,
85
NF_KEY_GREEN
,
86
NF_KEY_CYAN
,
87
NF_KEY_RED
,
88
NF_KEY_MAGENTA
,
89
NF_KEY_BROWN
,
90
NF_KEY_GREY
,
91
NF_KEY_YELLOW
,
92
NF_KEY_WHITE
,
93
NF_KEY_LASTCOLOR
=
NF_KEY_WHITE
,
94
95
NF_KEYWORD_ENTRIES_COUNT
96
};
97
98
typedef ::std::array<OUString, NF_KEYWORD_ENTRIES_COUNT>
NfKeywordTable
;
99
100
#endif
// INCLUDED_SVL_NFKEYTAB_HXX
101
102
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
NfKeywordTable
::std::array< OUString, NF_KEYWORD_ENTRIES_COUNT > NfKeywordTable
Definition:
nfkeytab.hxx:98
NfKeywordIndex
NfKeywordIndex
For ImpSvNumberformatScan: first the short symbols, then the long symbols! e.g.
Definition:
nfkeytab.hxx:35
NF_KEYWORD_ENTRIES_COUNT
@ NF_KEYWORD_ENTRIES_COUNT
Definition:
nfkeytab.hxx:95
NF_KEY_M
@ NF_KEY_M
Definition:
nfkeytab.hxx:42
NF_KEY_MI
@ NF_KEY_MI
Definition:
nfkeytab.hxx:40
NF_KEY_D
@ NF_KEY_D
Definition:
nfkeytab.hxx:53
NF_KEY_EC
@ NF_KEY_EC
Definition:
nfkeytab.hxx:64
NF_KEY_BOOLEAN
@ NF_KEY_BOOLEAN
Definition:
nfkeytab.hxx:74
NF_KEY_Q
@ NF_KEY_Q
Definition:
nfkeytab.hxx:51
NF_KEY_NN
@ NF_KEY_NN
Definition:
nfkeytab.hxx:59
NF_KEY_DD
@ NF_KEY_DD
Definition:
nfkeytab.hxx:54
NF_KEY_RR
@ NF_KEY_RR
Definition:
nfkeytab.hxx:70
NF_KEY_NNN
@ NF_KEY_NNN
Definition:
nfkeytab.hxx:60
NF_KEY_AAAA
@ NF_KEY_AAAA
Definition:
nfkeytab.hxx:63
NF_KEY_CCC
@ NF_KEY_CCC
Definition:
nfkeytab.hxx:73
NF_KEY_SS
@ NF_KEY_SS
Definition:
nfkeytab.hxx:50
NF_KEY_BLUE
@ NF_KEY_BLUE
Definition:
nfkeytab.hxx:84
NF_KEY_DDD
@ NF_KEY_DDD
Definition:
nfkeytab.hxx:55
NF_KEY_H
@ NF_KEY_H
Definition:
nfkeytab.hxx:47
NF_KEY_BLACK
@ NF_KEY_BLACK
Definition:
nfkeytab.hxx:83
NF_KEY_AP
@ NF_KEY_AP
Definition:
nfkeytab.hxx:39
NF_KEY_HH
@ NF_KEY_HH
Definition:
nfkeytab.hxx:48
NF_KEY_AAA
@ NF_KEY_AAA
Definition:
nfkeytab.hxx:62
NF_KEY_AMPM
@ NF_KEY_AMPM
Definition:
nfkeytab.hxx:38
NF_KEY_TRUE
@ NF_KEY_TRUE
Definition:
nfkeytab.hxx:79
NF_KEY_GREEN
@ NF_KEY_GREEN
Definition:
nfkeytab.hxx:85
NF_KEY_WW
@ NF_KEY_WW
Definition:
nfkeytab.hxx:71
NF_KEY_MMMMM
@ NF_KEY_MMMMM
Definition:
nfkeytab.hxx:46
NF_KEY_YELLOW
@ NF_KEY_YELLOW
Definition:
nfkeytab.hxx:91
NF_KEY_CYAN
@ NF_KEY_CYAN
Definition:
nfkeytab.hxx:86
NF_KEY_MMM
@ NF_KEY_MMM
Definition:
nfkeytab.hxx:44
NF_KEY_MAGENTA
@ NF_KEY_MAGENTA
Definition:
nfkeytab.hxx:88
NF_KEY_THAI_T
@ NF_KEY_THAI_T
Definition:
nfkeytab.hxx:72
NF_KEY_GGG
@ NF_KEY_GGG
Definition:
nfkeytab.hxx:68
NF_KEY_YYYY
@ NF_KEY_YYYY
Definition:
nfkeytab.hxx:58
NF_KEY_MMMM
@ NF_KEY_MMMM
Definition:
nfkeytab.hxx:45
NF_KEY_NONE
@ NF_KEY_NONE
Definition:
nfkeytab.hxx:36
NF_KEY_E
@ NF_KEY_E
Definition:
nfkeytab.hxx:37
NF_KEY_WHITE
@ NF_KEY_WHITE
Definition:
nfkeytab.hxx:92
NF_KEY_G
@ NF_KEY_G
Definition:
nfkeytab.hxx:66
NF_KEY_MM
@ NF_KEY_MM
Definition:
nfkeytab.hxx:43
NF_KEY_S
@ NF_KEY_S
Definition:
nfkeytab.hxx:49
NF_KEY_GREY
@ NF_KEY_GREY
Definition:
nfkeytab.hxx:90
NF_KEY_RED
@ NF_KEY_RED
Definition:
nfkeytab.hxx:87
NF_KEY_GG
@ NF_KEY_GG
Definition:
nfkeytab.hxx:67
NF_KEY_DDDD
@ NF_KEY_DDDD
Definition:
nfkeytab.hxx:56
NF_KEY_GENERAL
@ NF_KEY_GENERAL
Definition:
nfkeytab.hxx:75
NF_KEY_FIRSTCOLOR
@ NF_KEY_FIRSTCOLOR
Definition:
nfkeytab.hxx:82
NF_KEY_COLOR
@ NF_KEY_COLOR
Definition:
nfkeytab.hxx:81
NF_KEY_FALSE
@ NF_KEY_FALSE
Definition:
nfkeytab.hxx:80
NF_KEY_EEC
@ NF_KEY_EEC
Definition:
nfkeytab.hxx:65
NF_KEY_LASTKEYWORD
@ NF_KEY_LASTKEYWORD
Definition:
nfkeytab.hxx:76
NF_KEY_R
@ NF_KEY_R
Definition:
nfkeytab.hxx:69
NF_KEY_BROWN
@ NF_KEY_BROWN
Definition:
nfkeytab.hxx:89
NF_KEY_LASTCOLOR
@ NF_KEY_LASTCOLOR
Definition:
nfkeytab.hxx:93
NF_KEY_NNNN
@ NF_KEY_NNNN
Definition:
nfkeytab.hxx:61
NF_KEY_YY
@ NF_KEY_YY
Definition:
nfkeytab.hxx:57
NF_KEY_MMI
@ NF_KEY_MMI
Definition:
nfkeytab.hxx:41
NF_KEY_QQ
@ NF_KEY_QQ
Definition:
nfkeytab.hxx:52
Generated on Sun Jul 30 2023 04:26:36 for LibreOffice Module svl (master) by
1.9.3