Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_xmloff / xmlnmspe.hxx
blobe57006ec9fa1652cf47322005c8fad1b761536e2
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.4 $
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 #ifndef _SAL_TYPES_H_
35 #include <sal/types.h>
36 #endif
37 namespace binfilter {
39 #define XML_NAMESPACE( prefix, key ) \
40 const sal_uInt16 XML_NAMESPACE_##prefix = key; \
41 const sal_uInt16 XML_NAMESPACE_##prefix##_IDX = key;
43 #define XML_OLD_NAMESPACE( prefix, index ) \
44 const sal_uInt16 XML_OLD_NAMESPACE_##prefix##_IDX = \
45 (_XML_OLD_NAMESPACE_BASE+index);
47 // current namespaces
48 // These namespaces have the same index in the namespace table as prefix used.
49 // If a namespace is added, _XML_OLD_NAMESPACE_BASE has to be adjusted!
50 XML_NAMESPACE( OFFICE, 0U )
51 XML_NAMESPACE( STYLE, 1U )
52 XML_NAMESPACE( TEXT , 2U )
53 XML_NAMESPACE( TABLE, 3U )
54 XML_NAMESPACE( DRAW , 4U )
55 XML_NAMESPACE( FO , 5U )
56 XML_NAMESPACE( XLINK, 6U )
57 XML_NAMESPACE( DC , 7U )
58 XML_NAMESPACE( META , 8U )
59 XML_NAMESPACE( NUMBER, 9U )
60 XML_NAMESPACE( PRESENTATION, 10U )
61 XML_NAMESPACE( SVG, 11U )
62 XML_NAMESPACE( CHART, 12U )
63 XML_NAMESPACE( DR3D, 13U )
64 XML_NAMESPACE( MATH, 14U )
65 XML_NAMESPACE( FORM, 15U )
66 XML_NAMESPACE( SCRIPT, 16U )
67 XML_NAMESPACE( BLOCKLIST, 17U )
68 XML_NAMESPACE( FRAMEWORK, 18U )
69 XML_NAMESPACE( CONFIG, 19U )
71 #define _XML_OLD_NAMESPACE_BASE 20U
73 // namespaces used in the technical preview (SO 5.2)
74 XML_OLD_NAMESPACE( FO, 0U )
75 XML_OLD_NAMESPACE( XLINK, 1U )
77 XML_OLD_NAMESPACE( OFFICE, 2U )
78 XML_OLD_NAMESPACE( STYLE, 3U )
79 XML_OLD_NAMESPACE( TEXT, 4U )
80 XML_OLD_NAMESPACE( TABLE, 5U )
81 XML_OLD_NAMESPACE( META, 6U )
83 }//end of namespace binfilter
84 #endif // _XMLOFF_XMLNMSPE_HXX