1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlnmspe.hxx,v $
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
35 #include <sal/types.h>
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);
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