update dev300-m58
[ooovba.git] / xmloff / inc / xmlnmspe.hxx
blobc6f6ab88af23211cf4108c780e422a8ac28cb343
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlnmspe.hxx,v $
10 * $Revision: 1.22 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLOFF_XMLNMSPE_HXX
32 #define _XMLOFF_XMLNMSPE_HXX
34 #include <sal/types.h>
36 #define XML_NAMESPACE( prefix, key ) \
37 const sal_uInt16 XML_NAMESPACE_##prefix = key; \
38 const sal_uInt16 XML_NAMESPACE_##prefix##_IDX = key;
40 #define XML_OLD_NAMESPACE( prefix, index ) \
41 const sal_uInt16 XML_OLD_NAMESPACE_##prefix##_IDX = \
42 (_XML_OLD_NAMESPACE_BASE+index);
44 // current namespaces
45 // These namespaces have the same index in the namespace table as prefix used.
46 // If a namespace is added, _XML_OLD_NAMESPACE_BASE has to be adjusted!
47 XML_NAMESPACE( OFFICE, 0U )
48 XML_NAMESPACE( STYLE, 1U )
49 XML_NAMESPACE( TEXT , 2U )
50 XML_NAMESPACE( TABLE, 3U )
51 XML_NAMESPACE( DRAW , 4U )
52 XML_NAMESPACE( FO , 5U )
53 XML_NAMESPACE( XLINK, 6U )
54 XML_NAMESPACE( DC , 7U )
55 XML_NAMESPACE( META , 8U )
56 XML_NAMESPACE( NUMBER, 9U )
57 XML_NAMESPACE( PRESENTATION, 10U )
58 XML_NAMESPACE( SVG, 11U )
59 XML_NAMESPACE( CHART, 12U )
60 XML_NAMESPACE( DR3D, 13U )
61 XML_NAMESPACE( MATH, 14U )
62 XML_NAMESPACE( FORM, 15U )
63 XML_NAMESPACE( SCRIPT, 16U )
64 XML_NAMESPACE( BLOCKLIST, 17U )
65 XML_NAMESPACE( FRAMEWORK, 18U )
66 XML_NAMESPACE( CONFIG, 19U )
67 XML_NAMESPACE( OOO, 20U )
68 XML_NAMESPACE( OOOW, 21U )
69 XML_NAMESPACE( OOOC, 22U )
70 XML_NAMESPACE( DOM, 23U )
71 XML_NAMESPACE( TCD, 24U ) // text conversion dictionary
72 XML_NAMESPACE( DB, 25U )
73 XML_NAMESPACE( DLG, 26U )
74 XML_NAMESPACE( XFORMS, 27U )
75 XML_NAMESPACE( XSD, 28U )
76 XML_NAMESPACE( XSI, 29U )
77 XML_NAMESPACE( SMIL, 30U )
78 XML_NAMESPACE( ANIMATION, 31U )
79 XML_NAMESPACE( XML, 32U )
80 XML_NAMESPACE( REPORT, 33U )
81 XML_NAMESPACE( OF, 34U ) // OpenFormula aka ODFF
82 XML_NAMESPACE( XHTML, 35U )
83 XML_NAMESPACE( GRDDL, 36U )
85 #define _XML_OLD_NAMESPACE_BASE 37U
87 // namespaces used in the technical preview (SO 5.2)
88 XML_OLD_NAMESPACE( FO, 0U )
89 XML_OLD_NAMESPACE( XLINK, 1U )
91 XML_OLD_NAMESPACE( OFFICE, 2U )
92 XML_OLD_NAMESPACE( STYLE, 3U )
93 XML_OLD_NAMESPACE( TEXT, 4U )
94 XML_OLD_NAMESPACE( TABLE, 5U )
95 XML_OLD_NAMESPACE( META, 6U )
97 // experimental namespaces
98 XML_NAMESPACE( FIELD, 100U )
99 XML_NAMESPACE( FORMX, 101U ) // form interop extensions
102 #endif // _XMLOFF_XMLNMSPE_HXX