bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / xmloff / xmlnmspe.hxx
bloba00628b6b999170e88f08e1375d22d7c9677f6ca
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_XMLOFF_XMLNMSPE_HXX
21 #define INCLUDED_XMLOFF_XMLNMSPE_HXX
23 #include <sal/types.h>
25 #define XML_NAMESPACE( prefix, key ) \
26 const sal_uInt16 prefix = key;
28 // current namespaces
29 // These namespaces have the same index in the namespace table as prefix used.
30 // If a namespace is added, XML_OLD_NAMESPACE_BASE has to be adjusted!
31 XML_NAMESPACE( XML_NAMESPACE_OFFICE, 0U )
32 XML_NAMESPACE( XML_NAMESPACE_STYLE, 1U )
33 XML_NAMESPACE( XML_NAMESPACE_TEXT , 2U )
34 XML_NAMESPACE( XML_NAMESPACE_TABLE, 3U )
35 XML_NAMESPACE( XML_NAMESPACE_DRAW , 4U )
36 XML_NAMESPACE( XML_NAMESPACE_FO , 5U )
37 XML_NAMESPACE( XML_NAMESPACE_XLINK, 6U )
38 XML_NAMESPACE( XML_NAMESPACE_DC , 7U )
39 XML_NAMESPACE( XML_NAMESPACE_META , 8U )
40 XML_NAMESPACE( XML_NAMESPACE_NUMBER, 9U )
41 XML_NAMESPACE( XML_NAMESPACE_PRESENTATION, 10U )
42 XML_NAMESPACE( XML_NAMESPACE_SVG, 11U )
43 XML_NAMESPACE( XML_NAMESPACE_CHART, 12U )
44 XML_NAMESPACE( XML_NAMESPACE_DR3D, 13U )
45 XML_NAMESPACE( XML_NAMESPACE_MATH, 14U )
46 XML_NAMESPACE( XML_NAMESPACE_FORM, 15U )
47 XML_NAMESPACE( XML_NAMESPACE_SCRIPT, 16U )
48 XML_NAMESPACE( XML_NAMESPACE_BLOCKLIST, 17U )
49 XML_NAMESPACE( XML_NAMESPACE_FRAMEWORK, 18U )
50 XML_NAMESPACE( XML_NAMESPACE_CONFIG, 19U )
51 XML_NAMESPACE( XML_NAMESPACE_OOO, 20U )
52 XML_NAMESPACE( XML_NAMESPACE_OOOW, 21U )
53 XML_NAMESPACE( XML_NAMESPACE_OOOC, 22U )
54 XML_NAMESPACE( XML_NAMESPACE_DOM, 23U )
55 XML_NAMESPACE( XML_NAMESPACE_TCD, 24U ) // text conversion dictionary
56 XML_NAMESPACE( XML_NAMESPACE_DB, 25U )
57 XML_NAMESPACE( XML_NAMESPACE_DLG, 26U )
58 XML_NAMESPACE( XML_NAMESPACE_XFORMS, 27U )
59 XML_NAMESPACE( XML_NAMESPACE_XSD, 28U )
60 XML_NAMESPACE( XML_NAMESPACE_XSI, 29U )
61 XML_NAMESPACE( XML_NAMESPACE_SMIL, 30U )
62 XML_NAMESPACE( XML_NAMESPACE_ANIMATION, 31U )
63 XML_NAMESPACE( XML_NAMESPACE_XML, 32U )
64 XML_NAMESPACE( XML_NAMESPACE_REPORT, 33U )
65 XML_NAMESPACE( XML_NAMESPACE_OF, 34U ) // OpenFormula aka ODFF
66 XML_NAMESPACE( XML_NAMESPACE_XHTML, 35U )
67 XML_NAMESPACE( XML_NAMESPACE_GRDDL, 36U )
68 XML_NAMESPACE( XML_NAMESPACE_VERSIONS_LIST, 37U )
70 // namespaces for odf extended formats
72 #define XML_NAMESPACE_EXT_BASE 38U
73 #define XML_NAMESPACE_EXT( prefix, index ) \
74 const sal_uInt16 prefix = (XML_NAMESPACE_EXT_BASE+index);
76 XML_NAMESPACE_EXT( XML_NAMESPACE_OFFICE_EXT, 0U )
77 XML_NAMESPACE_EXT( XML_NAMESPACE_TABLE_EXT, 1U )
78 XML_NAMESPACE_EXT( XML_NAMESPACE_CHART_EXT, 2U )
79 XML_NAMESPACE_EXT( XML_NAMESPACE_DRAW_EXT, 3U )
80 XML_NAMESPACE_EXT( XML_NAMESPACE_CALC_EXT, 4U )
81 XML_NAMESPACE_EXT( XML_NAMESPACE_LO_EXT, 5U )
83 // namespaces for OOo formats
85 #define XML_NAMESPACE_OOO_BASE 44U
86 #define XML_NAMESPACE_OOO( prefix, index ) \
87 const sal_uInt16 prefix = (XML_NAMESPACE_OOO_BASE+index);
89 XML_NAMESPACE_OOO( XML_NAMESPACE_OFFICE_OOO, 0U )
90 XML_NAMESPACE_OOO( XML_NAMESPACE_META_OOO, 1U )
91 XML_NAMESPACE_OOO( XML_NAMESPACE_STYLE_OOO, 2U )
92 XML_NAMESPACE_OOO( XML_NAMESPACE_NUMBER_OOO, 3U )
93 XML_NAMESPACE_OOO( XML_NAMESPACE_TEXT_OOO, 4U )
94 XML_NAMESPACE_OOO( XML_NAMESPACE_TABLE_OOO, 5U )
95 XML_NAMESPACE_OOO( XML_NAMESPACE_DRAW_OOO, 6U )
96 XML_NAMESPACE_OOO( XML_NAMESPACE_DR3D_OOO, 7U )
97 XML_NAMESPACE_OOO( XML_NAMESPACE_PRESENTATION_OOO, 8U )
98 XML_NAMESPACE_OOO( XML_NAMESPACE_CHART_OOO, 9U )
99 XML_NAMESPACE_OOO( XML_NAMESPACE_CONFIG_OOO, 10U )
100 XML_NAMESPACE_OOO( XML_NAMESPACE_FORM_OOO, 11U )
101 XML_NAMESPACE_OOO( XML_NAMESPACE_SCRIPT_OOO, 12U )
103 #define XML_NAMESPACE_COMPAT_BASE 57U
104 #define XML_NAMESPACE_COMPAT( prefix, index ) \
105 const sal_uInt16 prefix = (XML_NAMESPACE_COMPAT_BASE+index);
107 XML_NAMESPACE_COMPAT( XML_NAMESPACE_SVG_COMPAT, 0U )
108 XML_NAMESPACE_COMPAT( XML_NAMESPACE_FO_COMPAT, 1U )
109 XML_NAMESPACE_COMPAT( XML_NAMESPACE_SMIL_COMPAT, 2U )
111 #define XML_NAMESPACE_OASIS_BASE 60U
112 #define XML_NAMESPACE_OASIS( prefix, index ) \
113 const sal_uInt16 prefix = (XML_NAMESPACE_OASIS_BASE+index);
115 XML_NAMESPACE_OASIS( XML_NAMESPACE_DB_OASIS, 0U )
116 XML_NAMESPACE_OASIS( XML_NAMESPACE_REPORT_OASIS, 1U )
118 #define XML_OLD_NAMESPACE_BASE 62U
119 #define XML_OLD_NAMESPACE( prefix, index ) \
120 const sal_uInt16 prefix = (XML_OLD_NAMESPACE_BASE+index);
122 // namespaces used in the technical preview (SO 5.2)
123 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_FO, 0U )
124 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_XLINK, 1U )
125 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_OFFICE, 2U )
126 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_STYLE, 3U )
127 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_TEXT, 4U )
128 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_TABLE, 5U )
129 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_META, 6U )
130 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_DRAW, 7U )
131 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_NUMBER, 8U )
132 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_PRESENTATION, 9U )
133 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_CHART, 10U )
134 XML_OLD_NAMESPACE( XML_OLD_NAMESPACE_SMIL, 11U )
136 // experimental namespaces
137 XML_NAMESPACE( XML_NAMESPACE_FIELD, 100U )
138 XML_NAMESPACE( XML_NAMESPACE_CSS3TEXT, 103U ) // CSS Text Level 3
139 XML_NAMESPACE( XML_NAMESPACE_FORMX, 101U ) // form interop extensions
142 #endif // INCLUDED_XMLOFF_XMLNMSPE_HXX
144 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */