xref: /AOO41X/main/xmloff/inc/xmloff/xmlnmspe.hxx (revision 7cba280fda82c99b23d255b837716f458a00160f)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _XMLOFF_XMLNMSPE_HXX
25 #define _XMLOFF_XMLNMSPE_HXX
26 
27 #include <sal/types.h>
28 
29 #define XML_NAMESPACE( prefix, key ) \
30 const sal_uInt16 XML_NAMESPACE_##prefix         = key; \
31 const sal_uInt16 XML_NAMESPACE_##prefix##_IDX   = key;
32 
33 #define XML_OLD_NAMESPACE( prefix, index ) \
34 const sal_uInt16 XML_OLD_NAMESPACE_##prefix##_IDX = \
35     (_XML_OLD_NAMESPACE_BASE+index);
36 
37 // current namespaces
38 // These namespaces have the same index in the namespace table as prefix used.
39 // If a namespace is added, _XML_OLD_NAMESPACE_BASE has to be adjusted!
40 XML_NAMESPACE( OFFICE,          0U )
41 XML_NAMESPACE( STYLE,           1U )
42 XML_NAMESPACE( TEXT ,           2U )
43 XML_NAMESPACE( TABLE,           3U )
44 XML_NAMESPACE( DRAW ,           4U )
45 XML_NAMESPACE( FO   ,           5U )
46 XML_NAMESPACE( XLINK,           6U )
47 XML_NAMESPACE( DC   ,           7U )
48 XML_NAMESPACE( META ,           8U )
49 XML_NAMESPACE( NUMBER,          9U )
50 XML_NAMESPACE( PRESENTATION,    10U )
51 XML_NAMESPACE( SVG,             11U )
52 XML_NAMESPACE( CHART,           12U )
53 XML_NAMESPACE( DR3D,            13U )
54 XML_NAMESPACE( MATH,            14U )
55 XML_NAMESPACE( FORM,            15U )
56 XML_NAMESPACE( SCRIPT,          16U )
57 XML_NAMESPACE( BLOCKLIST,       17U )
58 XML_NAMESPACE( FRAMEWORK,       18U )
59 XML_NAMESPACE( CONFIG,          19U )
60 XML_NAMESPACE( OOO,             20U )
61 XML_NAMESPACE( OOOW,            21U )
62 XML_NAMESPACE( OOOC,            22U )
63 XML_NAMESPACE( DOM,             23U )
64 XML_NAMESPACE( TCD,             24U )       // text conversion dictionary
65 XML_NAMESPACE( DB,              25U )
66 XML_NAMESPACE( DLG,             26U )
67 XML_NAMESPACE( XFORMS,          27U )
68 XML_NAMESPACE( XSD,             28U )
69 XML_NAMESPACE( XSI,             29U )
70 XML_NAMESPACE( SMIL,            30U )
71 XML_NAMESPACE( ANIMATION,       31U )
72 XML_NAMESPACE( XML,             32U )
73 XML_NAMESPACE( REPORT,          33U )
74 XML_NAMESPACE( OF,              34U )       // OpenFormula aka ODFF
75 XML_NAMESPACE( XHTML,           35U )
76 XML_NAMESPACE( GRDDL,           36U )
77 
78 // namespaces for odf extended formats
79 
80 #define XML_NAMESPACE_EXT( prefix, key ) \
81 const sal_uInt16 XML_NAMESPACE_##prefix##_EXT       = key; \
82 const sal_uInt16 XML_NAMESPACE_##prefix##_EXT_IDX   = key;
83 
84 XML_NAMESPACE_EXT( OFFICE,      37U )
85 XML_NAMESPACE_EXT( TABLE,       38U )
86 XML_NAMESPACE_EXT( CHART,       39U )
87 XML_NAMESPACE_EXT( DRAW,        40U )
88 XML_NAMESPACE_EXT( TEXT,        41U )
89 
90 #define _XML_OLD_NAMESPACE_BASE 42U
91 
92 // namespaces used in the technical preview (SO 5.2)
93 XML_OLD_NAMESPACE( FO,      0U )
94 XML_OLD_NAMESPACE( XLINK,   1U )
95 
96 XML_OLD_NAMESPACE( OFFICE,  2U )
97 XML_OLD_NAMESPACE( STYLE,   3U )
98 XML_OLD_NAMESPACE( TEXT,    4U )
99 XML_OLD_NAMESPACE( TABLE,   5U )
100 XML_OLD_NAMESPACE( META,    6U )
101 
102 // experimental namespaces
103 XML_NAMESPACE( FIELD,           100U )
104 
105 
106 #endif  //  _XMLOFF_XMLNMSPE_HXX
107