LibreOffice Module xmloff (master)  1
xmlnmspe.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_XMLOFF_XMLNMSPE_HXX
21 #define INCLUDED_XMLOFF_XMLNMSPE_HXX
22 
23 #include <sal/types.h>
24 
25 // current namespaces
26 // These namespaces have the same index in the namespace table as prefix used.
27 // If a namespace is added, XML_OLD_NAMESPACE_BASE has to be adjusted!
28 // * standard ODF elements and attributes
29 constexpr sal_uInt16 XML_NAMESPACE_OFFICE = 0;
30 constexpr sal_uInt16 XML_NAMESPACE_STYLE = 1;
31 constexpr sal_uInt16 XML_NAMESPACE_TEXT = 2;
32 constexpr sal_uInt16 XML_NAMESPACE_TABLE = 3;
33 constexpr sal_uInt16 XML_NAMESPACE_DRAW = 4;
34 constexpr sal_uInt16 XML_NAMESPACE_FO = 5;
35 constexpr sal_uInt16 XML_NAMESPACE_XLINK = 6;
36 constexpr sal_uInt16 XML_NAMESPACE_DC = 7;
37 constexpr sal_uInt16 XML_NAMESPACE_META = 8;
38 constexpr sal_uInt16 XML_NAMESPACE_NUMBER = 9;
39 constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION = 10;
40 constexpr sal_uInt16 XML_NAMESPACE_SVG = 11;
41 constexpr sal_uInt16 XML_NAMESPACE_CHART = 12;
42 constexpr sal_uInt16 XML_NAMESPACE_DR3D = 13;
43 constexpr sal_uInt16 XML_NAMESPACE_MATH = 14;
44 constexpr sal_uInt16 XML_NAMESPACE_FORM = 15;
45 constexpr sal_uInt16 XML_NAMESPACE_SCRIPT = 16;
46 constexpr sal_uInt16 XML_NAMESPACE_CONFIG = 17;
47 constexpr sal_uInt16 XML_NAMESPACE_DB = 18;
48 constexpr sal_uInt16 XML_NAMESPACE_XFORMS = 19;
49 constexpr sal_uInt16 XML_NAMESPACE_SMIL = 20;
50 constexpr sal_uInt16 XML_NAMESPACE_ANIMATION = 21;
51 constexpr sal_uInt16 XML_NAMESPACE_XML = 22;
52 constexpr sal_uInt16 XML_NAMESPACE_XHTML = 23;
53 constexpr sal_uInt16 XML_NAMESPACE_GRDDL = 24;
54 // * formula attribute values (standard ODF)
55 constexpr sal_uInt16 XML_NAMESPACE_OF = 25; // OpenFormula aka ODFF
56 // * event attribute values (standard W3C)
57 constexpr sal_uInt16 XML_NAMESPACE_DOM = 26;
58 // * XForms attribute values (standard W3C)
59 constexpr sal_uInt16 XML_NAMESPACE_XSD = 27;
60 constexpr sal_uInt16 XML_NAMESPACE_XSI = 28;
61 // * following 3 namespaces are used for non-standard attribute values and non-ODF XML
62 constexpr sal_uInt16 XML_NAMESPACE_OOO = 29; // lots of attributes, settings.xml, non-ODF XML
63 constexpr sal_uInt16 XML_NAMESPACE_OOOW = 30; // formula attribute values
64 constexpr sal_uInt16 XML_NAMESPACE_OOOC = 31; // formula attribute values
65 // non-ODF XML namespaces
66 constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST = 32;
67 constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK = 33;
68 constexpr sal_uInt16 XML_NAMESPACE_TCD = 34; // text conversion dictionary
69 constexpr sal_uInt16 XML_NAMESPACE_DLG = 35;
70 constexpr sal_uInt16 XML_NAMESPACE_REPORT = 36;
71 constexpr sal_uInt16 XML_NAMESPACE_VERSIONS_LIST = 37;
72 
73 // namespaces for ODF extended formats
74 constexpr sal_uInt16 XML_NAMESPACE_EXT_BASE = 50;
80 constexpr sal_uInt16 XML_NAMESPACE_LO_EXT = XML_NAMESPACE_EXT_BASE + 5;
81 
82 // experimental ODF extended namespaces
83 constexpr sal_uInt16 XML_NAMESPACE_FIELD = XML_NAMESPACE_EXT_BASE + 6;
84 constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT = XML_NAMESPACE_EXT_BASE + 7; // CSS Text Level 3
85 constexpr sal_uInt16 XML_NAMESPACE_FORMX = XML_NAMESPACE_EXT_BASE + 8; // form interop extensions
86 
87 
88 // namespaces for OOo formats
89 constexpr sal_uInt16 XML_NAMESPACE_OOO_BASE = 60;
99 constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OASIS = XML_NAMESPACE_OOO_BASE + 9; // only used for some config files in sd/
102 constexpr sal_uInt16 XML_NAMESPACE_FORM_OOO = XML_NAMESPACE_OOO_BASE + 13;
105 
106 constexpr sal_uInt16 XML_NAMESPACE_COMPAT_BASE = 80;
110 
111 constexpr sal_uInt16 XML_NAMESPACE_OASIS_BASE = 90;
114 
115 // namespaces used in the technical preview (SO 5.2)
116 constexpr sal_uInt16 XML_OLD_NAMESPACE_BASE = 100;
129 
130 #endif // INCLUDED_XMLOFF_XMLNMSPE_HXX
131 
132 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
Definition: xmlnmspe.hxx:80
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OOO
Definition: xmlnmspe.hxx:98
constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT
Definition: xmlnmspe.hxx:84
constexpr sal_uInt16 XML_NAMESPACE_STYLE
Definition: xmlnmspe.hxx:30
constexpr sal_uInt16 XML_NAMESPACE_SCRIPT_OOO
Definition: xmlnmspe.hxx:103
constexpr sal_uInt16 XML_NAMESPACE_DB
Definition: xmlnmspe.hxx:47
constexpr sal_uInt16 XML_NAMESPACE_DRAW_SO52
Definition: xmlnmspe.hxx:124
constexpr sal_uInt16 XML_NAMESPACE_TCD
Definition: xmlnmspe.hxx:68
constexpr sal_uInt16 XML_NAMESPACE_CHART_OOO
Definition: xmlnmspe.hxx:100
constexpr sal_uInt16 XML_NAMESPACE_XHTML
Definition: xmlnmspe.hxx:52
constexpr sal_uInt16 XML_NAMESPACE_CHART_EXT
Definition: xmlnmspe.hxx:77
constexpr sal_uInt16 XML_NAMESPACE_CHART
Definition: xmlnmspe.hxx:41
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION_OOO
Definition: xmlnmspe.hxx:104
constexpr sal_uInt16 XML_NAMESPACE_OOO_BASE
Definition: xmlnmspe.hxx:89
constexpr sal_uInt16 XML_NAMESPACE_OF
Definition: xmlnmspe.hxx:55
constexpr sal_uInt16 XML_NAMESPACE_SMIL
Definition: xmlnmspe.hxx:49
constexpr sal_uInt16 XML_NAMESPACE_FO_COMPAT
Definition: xmlnmspe.hxx:108
constexpr sal_uInt16 XML_NAMESPACE_NUMBER_OOO
Definition: xmlnmspe.hxx:93
constexpr sal_uInt16 XML_NAMESPACE_TEXT
Definition: xmlnmspe.hxx:31
constexpr sal_uInt16 XML_NAMESPACE_DC
Definition: xmlnmspe.hxx:36
constexpr sal_uInt16 XML_NAMESPACE_SMIL_SO52
Definition: xmlnmspe.hxx:128
constexpr sal_uInt16 XML_NAMESPACE_VERSIONS_LIST
Definition: xmlnmspe.hxx:71
constexpr sal_uInt16 XML_NAMESPACE_CONFIG
Definition: xmlnmspe.hxx:46
constexpr sal_uInt16 XML_NAMESPACE_DRAW_OOO
Definition: xmlnmspe.hxx:96
constexpr sal_uInt16 XML_NAMESPACE_SMIL_COMPAT
Definition: xmlnmspe.hxx:109
constexpr sal_uInt16 XML_NAMESPACE_XSD
Definition: xmlnmspe.hxx:59
constexpr sal_uInt16 XML_NAMESPACE_STYLE_OOO
Definition: xmlnmspe.hxx:92
constexpr sal_uInt16 XML_OLD_NAMESPACE_BASE
Definition: xmlnmspe.hxx:116
constexpr sal_uInt16 XML_NAMESPACE_MATH
Definition: xmlnmspe.hxx:43
constexpr sal_uInt16 XML_NAMESPACE_TEXT_OOO
Definition: xmlnmspe.hxx:94
constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST
Definition: xmlnmspe.hxx:66
constexpr sal_uInt16 XML_NAMESPACE_GRDDL
Definition: xmlnmspe.hxx:53
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION
Definition: xmlnmspe.hxx:50
constexpr sal_uInt16 XML_NAMESPACE_FORMX
Definition: xmlnmspe.hxx:85
constexpr sal_uInt16 XML_NAMESPACE_NUMBER
Definition: xmlnmspe.hxx:38
constexpr sal_uInt16 XML_NAMESPACE_DRAW
Definition: xmlnmspe.hxx:33
constexpr sal_uInt16 XML_NAMESPACE_XML
Definition: xmlnmspe.hxx:51
constexpr sal_uInt16 XML_NAMESPACE_COMPAT_BASE
Definition: xmlnmspe.hxx:106
constexpr sal_uInt16 XML_NAMESPACE_XFORMS
Definition: xmlnmspe.hxx:48
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_OOO
Definition: xmlnmspe.hxx:90
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION
Definition: xmlnmspe.hxx:39
constexpr sal_uInt16 XML_NAMESPACE_OASIS_BASE
Definition: xmlnmspe.hxx:111
constexpr sal_uInt16 XML_NAMESPACE_TEXT_SO52
Definition: xmlnmspe.hxx:121
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OASIS
Definition: xmlnmspe.hxx:99
constexpr sal_uInt16 XML_NAMESPACE_DB_OASIS
Definition: xmlnmspe.hxx:112
constexpr sal_uInt16 XML_NAMESPACE_REPORT
Definition: xmlnmspe.hxx:70
constexpr sal_uInt16 XML_NAMESPACE_OOO
Definition: xmlnmspe.hxx:62
constexpr sal_uInt16 XML_NAMESPACE_DR3D_OOO
Definition: xmlnmspe.hxx:97
constexpr sal_uInt16 XML_NAMESPACE_FORM_OOO
Definition: xmlnmspe.hxx:102
constexpr sal_uInt16 XML_NAMESPACE_META_SO52
Definition: xmlnmspe.hxx:123
constexpr sal_uInt16 XML_NAMESPACE_FORM
Definition: xmlnmspe.hxx:44
constexpr sal_uInt16 XML_NAMESPACE_TABLE_OOO
Definition: xmlnmspe.hxx:95
constexpr sal_uInt16 XML_NAMESPACE_META_OOO
Definition: xmlnmspe.hxx:91
constexpr sal_uInt16 XML_NAMESPACE_OOOW
Definition: xmlnmspe.hxx:63
constexpr sal_uInt16 XML_NAMESPACE_XLINK
Definition: xmlnmspe.hxx:35
constexpr sal_uInt16 XML_NAMESPACE_NUMBER_SO52
Definition: xmlnmspe.hxx:125
constexpr sal_uInt16 XML_NAMESPACE_DR3D
Definition: xmlnmspe.hxx:42
constexpr sal_uInt16 XML_NAMESPACE_TABLE_SO52
Definition: xmlnmspe.hxx:122
constexpr sal_uInt16 XML_NAMESPACE_FO
Definition: xmlnmspe.hxx:34
constexpr sal_uInt16 XML_NAMESPACE_CHART_SO52
Definition: xmlnmspe.hxx:127
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_SO52
Definition: xmlnmspe.hxx:119
constexpr sal_uInt16 XML_NAMESPACE_OOOC
Definition: xmlnmspe.hxx:64
constexpr sal_uInt16 XML_NAMESPACE_SVG_COMPAT
Definition: xmlnmspe.hxx:107
constexpr sal_uInt16 XML_NAMESPACE_FO_SO52
Definition: xmlnmspe.hxx:117
constexpr sal_uInt16 XML_NAMESPACE_TABLE
Definition: xmlnmspe.hxx:32
constexpr sal_uInt16 XML_NAMESPACE_XSI
Definition: xmlnmspe.hxx:60
constexpr sal_uInt16 XML_NAMESPACE_DRAW_EXT
Definition: xmlnmspe.hxx:78
constexpr sal_uInt16 XML_NAMESPACE_META
Definition: xmlnmspe.hxx:37
constexpr sal_uInt16 XML_NAMESPACE_TABLE_EXT
Definition: xmlnmspe.hxx:76
constexpr sal_uInt16 XML_NAMESPACE_REPORT_OASIS
Definition: xmlnmspe.hxx:113
constexpr sal_uInt16 XML_NAMESPACE_EXT_BASE
Definition: xmlnmspe.hxx:74
constexpr sal_uInt16 XML_NAMESPACE_STYLE_SO52
Definition: xmlnmspe.hxx:120
constexpr sal_uInt16 XML_NAMESPACE_CALC_EXT
Definition: xmlnmspe.hxx:79
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_EXT
Definition: xmlnmspe.hxx:75
constexpr sal_uInt16 XML_NAMESPACE_FIELD
Definition: xmlnmspe.hxx:83
constexpr sal_uInt16 XML_NAMESPACE_SCRIPT
Definition: xmlnmspe.hxx:45
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_SO52
Definition: xmlnmspe.hxx:126
constexpr sal_uInt16 XML_NAMESPACE_DLG
Definition: xmlnmspe.hxx:69
constexpr sal_uInt16 XML_NAMESPACE_CONFIG_OOO
Definition: xmlnmspe.hxx:101
constexpr sal_uInt16 XML_NAMESPACE_SVG
Definition: xmlnmspe.hxx:40
constexpr sal_uInt16 XML_NAMESPACE_XLINK_SO52
Definition: xmlnmspe.hxx:118
constexpr sal_uInt16 XML_NAMESPACE_DOM
Definition: xmlnmspe.hxx:57
constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK
Definition: xmlnmspe.hxx:67
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
Definition: xmlnmspe.hxx:29