summaryrefslogtreecommitdiff
path: root/include/xmloff/xmlnmspe.hxx
blob: d45832f02d815e3c25b9e466015890d1ea38866d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef INCLUDED_XMLOFF_XMLNMSPE_HXX
#define INCLUDED_XMLOFF_XMLNMSPE_HXX

#include <sal/types.h>

// current namespaces
// These namespaces have the same index in the namespace table as prefix used.
// If a namespace is added, XML_OLD_NAMESPACE_BASE has to be adjusted!
// * standard ODF elements and attributes
constexpr sal_uInt16 XML_NAMESPACE_OFFICE =           0;
constexpr sal_uInt16 XML_NAMESPACE_STYLE =            1;
constexpr sal_uInt16 XML_NAMESPACE_TEXT =             2;
constexpr sal_uInt16 XML_NAMESPACE_TABLE =            3;
constexpr sal_uInt16 XML_NAMESPACE_DRAW =             4;
constexpr sal_uInt16 XML_NAMESPACE_FO   =             5;
constexpr sal_uInt16 XML_NAMESPACE_XLINK =            6;
constexpr sal_uInt16 XML_NAMESPACE_DC   =             7;
constexpr sal_uInt16 XML_NAMESPACE_META =             8;
constexpr sal_uInt16 XML_NAMESPACE_NUMBER =           9;
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION =    10;
constexpr sal_uInt16 XML_NAMESPACE_SVG =             11;
constexpr sal_uInt16 XML_NAMESPACE_CHART =           12;
constexpr sal_uInt16 XML_NAMESPACE_DR3D =            13;
constexpr sal_uInt16 XML_NAMESPACE_MATH =            14;
constexpr sal_uInt16 XML_NAMESPACE_FORM =            15;
constexpr sal_uInt16 XML_NAMESPACE_SCRIPT =          16;
constexpr sal_uInt16 XML_NAMESPACE_CONFIG =          17;
constexpr sal_uInt16 XML_NAMESPACE_DB =              18;
constexpr sal_uInt16 XML_NAMESPACE_XFORMS =          19;
constexpr sal_uInt16 XML_NAMESPACE_SMIL =            20;
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION =       21;
constexpr sal_uInt16 XML_NAMESPACE_XML =             22;
constexpr sal_uInt16 XML_NAMESPACE_XHTML =           23;
constexpr sal_uInt16 XML_NAMESPACE_GRDDL =           24;
// * formula attribute values (standard ODF)
constexpr sal_uInt16 XML_NAMESPACE_OF =              25;   // OpenFormula aka ODFF
// * event attribute values (standard W3C)
constexpr sal_uInt16 XML_NAMESPACE_DOM =             26;
// * XForms attribute values (standard W3C)
constexpr sal_uInt16 XML_NAMESPACE_XSD =             27;
constexpr sal_uInt16 XML_NAMESPACE_XSI =             28;
// * following 3 namespaces are used for non-standard attribute values and non-ODF XML
constexpr sal_uInt16 XML_NAMESPACE_OOO =             29; // lots of attributes, settings.xml, non-ODF XML
constexpr sal_uInt16 XML_NAMESPACE_OOOW =            30; // formula attribute values
constexpr sal_uInt16 XML_NAMESPACE_OOOC =            31; // formula attribute values
// non-ODF XML namespaces
constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST =       32;
constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK =       33;
constexpr sal_uInt16 XML_NAMESPACE_TCD =             34;   // text conversion dictionary
constexpr sal_uInt16 XML_NAMESPACE_DLG =             35;
constexpr sal_uInt16 XML_NAMESPACE_REPORT =          36;
constexpr sal_uInt16 XML_NAMESPACE_VERSIONS_LIST =   37;

// namespaces for ODF extended formats
constexpr sal_uInt16 XML_NAMESPACE_EXT_BASE   = 50;
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_EXT = XML_NAMESPACE_EXT_BASE + 0;
constexpr sal_uInt16 XML_NAMESPACE_TABLE_EXT  = XML_NAMESPACE_EXT_BASE + 1;
constexpr sal_uInt16 XML_NAMESPACE_CHART_EXT  = XML_NAMESPACE_EXT_BASE + 2;
constexpr sal_uInt16 XML_NAMESPACE_DRAW_EXT   = XML_NAMESPACE_EXT_BASE + 3;
constexpr sal_uInt16 XML_NAMESPACE_CALC_EXT   = XML_NAMESPACE_EXT_BASE + 4;
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT     = XML_NAMESPACE_EXT_BASE + 5;

// experimental ODF extended namespaces
constexpr sal_uInt16 XML_NAMESPACE_FIELD      = XML_NAMESPACE_EXT_BASE + 6;
constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT   = XML_NAMESPACE_EXT_BASE + 7;  // CSS Text Level 3
constexpr sal_uInt16 XML_NAMESPACE_FORMX      = XML_NAMESPACE_EXT_BASE + 8;  // form interop extensions


// namespaces for OOo formats
constexpr sal_uInt16 XML_NAMESPACE_OOO_BASE = 60;
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_OOO = XML_NAMESPACE_OOO_BASE +         0;
constexpr sal_uInt16 XML_NAMESPACE_META_OOO = XML_NAMESPACE_OOO_BASE +           1;
constexpr sal_uInt16 XML_NAMESPACE_STYLE_OOO = XML_NAMESPACE_OOO_BASE +          2;
constexpr sal_uInt16 XML_NAMESPACE_NUMBER_OOO = XML_NAMESPACE_OOO_BASE +         3;
constexpr sal_uInt16 XML_NAMESPACE_TEXT_OOO = XML_NAMESPACE_OOO_BASE +           4;
constexpr sal_uInt16 XML_NAMESPACE_TABLE_OOO = XML_NAMESPACE_OOO_BASE +          5;
constexpr sal_uInt16 XML_NAMESPACE_DRAW_OOO = XML_NAMESPACE_OOO_BASE +           6;
constexpr sal_uInt16 XML_NAMESPACE_DR3D_OOO = XML_NAMESPACE_OOO_BASE +           7;
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OOO = XML_NAMESPACE_OOO_BASE +   8;
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_OASIS = XML_NAMESPACE_OOO_BASE + 9; // only used for some config files in sd/
constexpr sal_uInt16 XML_NAMESPACE_CHART_OOO = XML_NAMESPACE_OOO_BASE +         10;
constexpr sal_uInt16 XML_NAMESPACE_CONFIG_OOO = XML_NAMESPACE_OOO_BASE +        12;
constexpr sal_uInt16 XML_NAMESPACE_FORM_OOO = XML_NAMESPACE_OOO_BASE +          13;
constexpr sal_uInt16 XML_NAMESPACE_SCRIPT_OOO = XML_NAMESPACE_OOO_BASE +        14;
constexpr sal_uInt16 XML_NAMESPACE_ANIMATION_OOO = XML_NAMESPACE_OOO_BASE +     15;

constexpr sal_uInt16 XML_NAMESPACE_COMPAT_BASE = 80;
constexpr sal_uInt16 XML_NAMESPACE_SVG_COMPAT = XML_NAMESPACE_COMPAT_BASE +      0;
constexpr sal_uInt16 XML_NAMESPACE_FO_COMPAT = XML_NAMESPACE_COMPAT_BASE +       1;
constexpr sal_uInt16 XML_NAMESPACE_SMIL_COMPAT = XML_NAMESPACE_COMPAT_BASE +     2;

constexpr sal_uInt16 XML_NAMESPACE_OASIS_BASE = 90;
constexpr sal_uInt16 XML_NAMESPACE_DB_OASIS = XML_NAMESPACE_OASIS_BASE +         0;
constexpr sal_uInt16 XML_NAMESPACE_REPORT_OASIS = XML_NAMESPACE_OASIS_BASE +     1;

// namespaces used in the technical preview (SO 5.2)
constexpr sal_uInt16 XML_OLD_NAMESPACE_BASE = 100;
constexpr sal_uInt16 XML_NAMESPACE_FO_SO52 = XML_OLD_NAMESPACE_BASE +             0;
constexpr sal_uInt16 XML_NAMESPACE_XLINK_SO52 = XML_OLD_NAMESPACE_BASE +          1;
constexpr sal_uInt16 XML_NAMESPACE_OFFICE_SO52 = XML_OLD_NAMESPACE_BASE +         2;
constexpr sal_uInt16 XML_NAMESPACE_STYLE_SO52 = XML_OLD_NAMESPACE_BASE +          3;
constexpr sal_uInt16 XML_NAMESPACE_TEXT_SO52 = XML_OLD_NAMESPACE_BASE +           4;
constexpr sal_uInt16 XML_NAMESPACE_TABLE_SO52 = XML_OLD_NAMESPACE_BASE +          5;
constexpr sal_uInt16 XML_NAMESPACE_META_SO52 = XML_OLD_NAMESPACE_BASE +           6;
constexpr sal_uInt16 XML_NAMESPACE_DRAW_SO52 = XML_OLD_NAMESPACE_BASE +           7;
constexpr sal_uInt16 XML_NAMESPACE_NUMBER_SO52 = XML_OLD_NAMESPACE_BASE +         8;
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_SO52 = XML_OLD_NAMESPACE_BASE +   9;
constexpr sal_uInt16 XML_NAMESPACE_CHART_SO52 = XML_OLD_NAMESPACE_BASE +         10;
constexpr sal_uInt16 XML_NAMESPACE_SMIL_SO52 = XML_OLD_NAMESPACE_BASE +          11;

#endif // INCLUDED_XMLOFF_XMLNMSPE_HXX

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */