LibreOffice Module xmloff (master) 1
xmlnamespace.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
29constexpr sal_uInt16 XML_NAMESPACE_OFFICE = 0;
30constexpr sal_uInt16 XML_NAMESPACE_STYLE = 1;
31constexpr sal_uInt16 XML_NAMESPACE_TEXT = 2;
32constexpr sal_uInt16 XML_NAMESPACE_TABLE = 3;
33constexpr sal_uInt16 XML_NAMESPACE_DRAW = 4;
34constexpr sal_uInt16 XML_NAMESPACE_FO = 5;
35constexpr sal_uInt16 XML_NAMESPACE_XLINK = 6;
36constexpr sal_uInt16 XML_NAMESPACE_DC = 7;
37constexpr sal_uInt16 XML_NAMESPACE_META = 8;
38constexpr sal_uInt16 XML_NAMESPACE_NUMBER = 9;
39constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION = 10;
40constexpr sal_uInt16 XML_NAMESPACE_SVG = 11;
41constexpr sal_uInt16 XML_NAMESPACE_CHART = 12;
42constexpr sal_uInt16 XML_NAMESPACE_DR3D = 13;
43constexpr sal_uInt16 XML_NAMESPACE_MATH = 14;
44constexpr sal_uInt16 XML_NAMESPACE_FORM = 15;
45constexpr sal_uInt16 XML_NAMESPACE_SCRIPT = 16;
46constexpr sal_uInt16 XML_NAMESPACE_CONFIG = 17;
47constexpr sal_uInt16 XML_NAMESPACE_DB = 18;
48constexpr sal_uInt16 XML_NAMESPACE_XFORMS = 19;
49constexpr sal_uInt16 XML_NAMESPACE_SMIL = 20;
50constexpr sal_uInt16 XML_NAMESPACE_ANIMATION = 21;
51constexpr sal_uInt16 XML_NAMESPACE_XML = 22;
52constexpr sal_uInt16 XML_NAMESPACE_XHTML = 23;
53constexpr sal_uInt16 XML_NAMESPACE_GRDDL = 24;
54// * formula attribute values (standard ODF)
55constexpr sal_uInt16 XML_NAMESPACE_OF = 25; // OpenFormula aka ODFF
56// * event attribute values (standard W3C)
57constexpr sal_uInt16 XML_NAMESPACE_DOM = 26;
58// * XForms attribute values (standard W3C)
59constexpr sal_uInt16 XML_NAMESPACE_XSD = 27;
60constexpr sal_uInt16 XML_NAMESPACE_XSI = 28;
61// * following 3 namespaces are used for non-standard attribute values and non-ODF XML
62constexpr sal_uInt16 XML_NAMESPACE_OOO = 29; // lots of attributes, settings.xml, non-ODF XML
63constexpr sal_uInt16 XML_NAMESPACE_OOOW = 30; // formula attribute values
64constexpr sal_uInt16 XML_NAMESPACE_OOOC = 31; // formula attribute values
65// non-ODF XML namespaces
66constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST = 32;
67constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK = 33;
68constexpr sal_uInt16 XML_NAMESPACE_TCD = 34; // text conversion dictionary
69constexpr sal_uInt16 XML_NAMESPACE_DLG = 35;
70constexpr sal_uInt16 XML_NAMESPACE_REPORT = 36;
71constexpr sal_uInt16 XML_NAMESPACE_VERSIONS_LIST = 37;
72// OOo extension digital signatures, used in ODF 1.1
73constexpr sal_uInt16 XML_NAMESPACE_DSIG_OOO = 38;
74// ODF 1.2 digital signature namespaces
75constexpr sal_uInt16 XML_NAMESPACE_DSIG = 39;
76constexpr sal_uInt16 XML_NAMESPACE_DS = 40;
77constexpr sal_uInt16 XML_NAMESPACE_XADES132 = 41;
78constexpr sal_uInt16 XML_NAMESPACE_XADES141 = 42;
79// OOXML digital signature extension namespaces, also based on xmldsig-core
80constexpr sal_uInt16 XML_NAMESPACE_MDSSI = 43;
81constexpr sal_uInt16 XML_NAMESPACE_MSODIGSIG = 44;
82
83// namespaces for ODF extended formats
84constexpr sal_uInt16 XML_NAMESPACE_EXT_BASE = 50;
91
92// experimental ODF extended namespaces
94constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT = XML_NAMESPACE_EXT_BASE + 7; // CSS Text Level 3
95constexpr sal_uInt16 XML_NAMESPACE_FORMX = XML_NAMESPACE_EXT_BASE + 8; // form interop extensions
96
97
98// namespaces for OOo formats
99constexpr sal_uInt16 XML_NAMESPACE_OOO_BASE = 60;
109constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OASIS = XML_NAMESPACE_OOO_BASE + 9; // only used for some config files in sd/
115
116constexpr sal_uInt16 XML_NAMESPACE_COMPAT_BASE = 80;
120
121constexpr sal_uInt16 XML_NAMESPACE_OASIS_BASE = 90;
124
125// namespaces used in the technical preview (SO 5.2)
126constexpr sal_uInt16 XML_OLD_NAMESPACE_BASE = 100;
139
140#endif // INCLUDED_XMLOFF_XMLNMSPE_HXX
141
142/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr sal_uInt16 XML_NAMESPACE_VERSIONS_LIST
constexpr sal_uInt16 XML_NAMESPACE_DRAW
constexpr sal_uInt16 XML_NAMESPACE_XHTML
constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST
constexpr sal_uInt16 XML_NAMESPACE_FORM_OOO
constexpr sal_uInt16 XML_NAMESPACE_FIELD
constexpr sal_uInt16 XML_NAMESPACE_TABLE_EXT
constexpr sal_uInt16 XML_NAMESPACE_DLG
constexpr sal_uInt16 XML_NAMESPACE_META
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OASIS
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_EXT
constexpr sal_uInt16 XML_NAMESPACE_SMIL
constexpr sal_uInt16 XML_NAMESPACE_DC
constexpr sal_uInt16 XML_NAMESPACE_REPORT
constexpr sal_uInt16 XML_NAMESPACE_DB
constexpr sal_uInt16 XML_NAMESPACE_TEXT_OOO
constexpr sal_uInt16 XML_NAMESPACE_TCD
constexpr sal_uInt16 XML_NAMESPACE_SCRIPT_OOO
constexpr sal_uInt16 XML_NAMESPACE_SMIL_COMPAT
constexpr sal_uInt16 XML_NAMESPACE_XLINK
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION
constexpr sal_uInt16 XML_NAMESPACE_OOOC
constexpr sal_uInt16 XML_NAMESPACE_OOO_BASE
constexpr sal_uInt16 XML_NAMESPACE_STYLE_OOO
constexpr sal_uInt16 XML_NAMESPACE_XSD
constexpr sal_uInt16 XML_NAMESPACE_SVG
constexpr sal_uInt16 XML_NAMESPACE_TEXT_SO52
constexpr sal_uInt16 XML_NAMESPACE_META_SO52
constexpr sal_uInt16 XML_NAMESPACE_TEXT
constexpr sal_uInt16 XML_NAMESPACE_REPORT_OASIS
constexpr sal_uInt16 XML_NAMESPACE_FORM
constexpr sal_uInt16 XML_NAMESPACE_CHART_EXT
constexpr sal_uInt16 XML_NAMESPACE_DRAW_SO52
constexpr sal_uInt16 XML_NAMESPACE_NUMBER_OOO
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_OOO
constexpr sal_uInt16 XML_NAMESPACE_FO_SO52
constexpr sal_uInt16 XML_NAMESPACE_XFORMS
constexpr sal_uInt16 XML_NAMESPACE_XADES132
constexpr sal_uInt16 XML_NAMESPACE_TABLE_SO52
constexpr sal_uInt16 XML_NAMESPACE_DR3D
constexpr sal_uInt16 XML_NAMESPACE_CHART
constexpr sal_uInt16 XML_NAMESPACE_XML
constexpr sal_uInt16 XML_NAMESPACE_NUMBER_SO52
constexpr sal_uInt16 XML_NAMESPACE_DR3D_OOO
constexpr sal_uInt16 XML_NAMESPACE_DOM
constexpr sal_uInt16 XML_NAMESPACE_DB_OASIS
constexpr sal_uInt16 XML_NAMESPACE_OF
constexpr sal_uInt16 XML_NAMESPACE_MSODIGSIG
constexpr sal_uInt16 XML_NAMESPACE_TABLE
constexpr sal_uInt16 XML_NAMESPACE_CALC_EXT
constexpr sal_uInt16 XML_NAMESPACE_TABLE_OOO
constexpr sal_uInt16 XML_NAMESPACE_CHART_SO52
constexpr sal_uInt16 XML_NAMESPACE_SVG_COMPAT
constexpr sal_uInt16 XML_NAMESPACE_OOOW
constexpr sal_uInt16 XML_NAMESPACE_OASIS_BASE
constexpr sal_uInt16 XML_NAMESPACE_CONFIG_OOO
constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION_OOO
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_SO52
constexpr sal_uInt16 XML_NAMESPACE_MDSSI
constexpr sal_uInt16 XML_NAMESPACE_FORMX
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION
constexpr sal_uInt16 XML_NAMESPACE_XADES141
constexpr sal_uInt16 XML_NAMESPACE_CHART_OOO
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OOO
constexpr sal_uInt16 XML_NAMESPACE_CONFIG
constexpr sal_uInt16 XML_OLD_NAMESPACE_BASE
constexpr sal_uInt16 XML_NAMESPACE_STYLE_SO52
constexpr sal_uInt16 XML_NAMESPACE_EXT_BASE
constexpr sal_uInt16 XML_NAMESPACE_OOO
constexpr sal_uInt16 XML_NAMESPACE_MATH
constexpr sal_uInt16 XML_NAMESPACE_XLINK_SO52
constexpr sal_uInt16 XML_NAMESPACE_GRDDL
constexpr sal_uInt16 XML_NAMESPACE_DS
constexpr sal_uInt16 XML_NAMESPACE_FO_COMPAT
constexpr sal_uInt16 XML_NAMESPACE_SMIL_SO52
constexpr sal_uInt16 XML_NAMESPACE_COMPAT_BASE
constexpr sal_uInt16 XML_NAMESPACE_DSIG_OOO
constexpr sal_uInt16 XML_NAMESPACE_DRAW_EXT
constexpr sal_uInt16 XML_NAMESPACE_STYLE
constexpr sal_uInt16 XML_NAMESPACE_META_OOO
constexpr sal_uInt16 XML_NAMESPACE_SCRIPT
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_SO52
constexpr sal_uInt16 XML_NAMESPACE_DSIG
constexpr sal_uInt16 XML_NAMESPACE_FO
constexpr sal_uInt16 XML_NAMESPACE_DRAW_OOO
constexpr sal_uInt16 XML_NAMESPACE_XSI
constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK
constexpr sal_uInt16 XML_NAMESPACE_NUMBER