1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef _MATHMLIMPORT_HXX_
29*cdf0e10cSrcweir #define _MATHMLIMPORT_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <xmloff/xmlimp.hxx>
32*cdf0e10cSrcweir #include <xmloff/xmlexp.hxx>
33*cdf0e10cSrcweir #include <xmloff/DocumentSettingsContext.hxx>
34*cdf0e10cSrcweir #include <xmloff/xmltoken.hxx>
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir #include <node.hxx>
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir class SfxMedium;
39*cdf0e10cSrcweir namespace com { namespace sun { namespace star {
40*cdf0e10cSrcweir     namespace io {
41*cdf0e10cSrcweir         class XInputStream;
42*cdf0e10cSrcweir         class XOutputStream; }
43*cdf0e10cSrcweir     namespace beans {
44*cdf0e10cSrcweir         class XPropertySet; }
45*cdf0e10cSrcweir } } }
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir ////////////////////////////////////////////////////////////
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir class SmXMLImportWrapper
50*cdf0e10cSrcweir {
51*cdf0e10cSrcweir     com::sun::star::uno::Reference<com::sun::star::frame::XModel> xModel;
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir public:
54*cdf0e10cSrcweir     SmXMLImportWrapper(com::sun::star::uno::Reference<com::sun::star::frame::XModel> &rRef)
55*cdf0e10cSrcweir         : xModel(rRef) {}
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir     sal_uLong Import(SfxMedium &rMedium);
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir     sal_uLong ReadThroughComponent(
60*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xInputStream,
61*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xModelComponent,
62*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rFactory,
63*cdf0e10cSrcweir         ::com::sun::star::uno::Reference<
64*cdf0e10cSrcweir             ::com::sun::star::beans::XPropertySet > & rPropSet,
65*cdf0e10cSrcweir         const sal_Char* pFilterName,
66*cdf0e10cSrcweir         sal_Bool bEncrypted );
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir     sal_uLong ReadThroughComponent(
69*cdf0e10cSrcweir          const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
70*cdf0e10cSrcweir                 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xModelComponent,
71*cdf0e10cSrcweir         const sal_Char* pStreamName,
72*cdf0e10cSrcweir         const sal_Char* pCompatibilityStreamName,
73*cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rFactory,
74*cdf0e10cSrcweir         ::com::sun::star::uno::Reference<
75*cdf0e10cSrcweir             ::com::sun::star::beans::XPropertySet > & rPropSet,
76*cdf0e10cSrcweir         const sal_Char* pFilterName );
77*cdf0e10cSrcweir };
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir ////////////////////////////////////////////////////////////
80*cdf0e10cSrcweir 
81*cdf0e10cSrcweir class SmXMLImport : public SvXMLImport
82*cdf0e10cSrcweir {
83*cdf0e10cSrcweir         SvXMLTokenMap *pPresLayoutElemTokenMap;
84*cdf0e10cSrcweir         SvXMLTokenMap *pPresLayoutAttrTokenMap;
85*cdf0e10cSrcweir         SvXMLTokenMap *pFencedAttrTokenMap;
86*cdf0e10cSrcweir         SvXMLTokenMap *pOperatorAttrTokenMap;
87*cdf0e10cSrcweir         SvXMLTokenMap *pAnnotationAttrTokenMap;
88*cdf0e10cSrcweir         SvXMLTokenMap *pPresElemTokenMap;
89*cdf0e10cSrcweir         SvXMLTokenMap *pPresScriptEmptyElemTokenMap;
90*cdf0e10cSrcweir         SvXMLTokenMap *pPresTableElemTokenMap;
91*cdf0e10cSrcweir         SvXMLTokenMap *pColorTokenMap;
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir         SmNodeStack aNodeStack;
94*cdf0e10cSrcweir         sal_Bool bSuccess;
95*cdf0e10cSrcweir         String aText;
96*cdf0e10cSrcweir 
97*cdf0e10cSrcweir public:
98*cdf0e10cSrcweir     // #110680#
99*cdf0e10cSrcweir     SmXMLImport(
100*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
101*cdf0e10cSrcweir         sal_uInt16 nImportFlags=IMPORT_ALL);
102*cdf0e10cSrcweir     virtual ~SmXMLImport() throw ();
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir     // XServiceInfo (override parent method)
105*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir     // XUnoTunnel
108*cdf0e10cSrcweir     sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException);
109*cdf0e10cSrcweir     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir     void SAL_CALL endDocument(void)
112*cdf0e10cSrcweir         throw( ::com::sun::star::xml::sax::SAXException,
113*cdf0e10cSrcweir         ::com::sun::star::uno::RuntimeException );
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir     SvXMLImportContext *CreateContext(sal_uInt16 nPrefix,
116*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
117*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
118*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
119*cdf0e10cSrcweir     SvXMLImportContext *CreateMathContext(sal_uInt16 nPrefix,
120*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
121*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
122*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
123*cdf0e10cSrcweir     SvXMLImportContext *CreateRowContext(sal_uInt16 nPrefix,
124*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
125*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
126*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
127*cdf0e10cSrcweir     SvXMLImportContext *CreateFracContext(sal_uInt16 nPrefix,
128*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
129*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
130*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
131*cdf0e10cSrcweir     SvXMLImportContext *CreateNumberContext(sal_uInt16 nPrefix,
132*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
133*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
134*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
135*cdf0e10cSrcweir     SvXMLImportContext *CreateTextContext(sal_uInt16 nPrefix,
136*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
137*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
138*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
139*cdf0e10cSrcweir     SvXMLImportContext *CreateAnnotationContext(sal_uInt16 nPrefix,
140*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
141*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
142*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
143*cdf0e10cSrcweir     SvXMLImportContext *CreateStringContext(sal_uInt16 nPrefix,
144*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
145*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
146*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
147*cdf0e10cSrcweir     SvXMLImportContext *CreateIdentifierContext(sal_uInt16 nPrefix,
148*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
149*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
150*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
151*cdf0e10cSrcweir     SvXMLImportContext *CreateOperatorContext(sal_uInt16 nPrefix,
152*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
153*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
154*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
155*cdf0e10cSrcweir     SvXMLImportContext *CreateSpaceContext(sal_uInt16 nPrefix,
156*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
157*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
158*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
159*cdf0e10cSrcweir     SvXMLImportContext *CreateSqrtContext(sal_uInt16 nPrefix,
160*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
161*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
162*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
163*cdf0e10cSrcweir     SvXMLImportContext *CreateRootContext(sal_uInt16 nPrefix,
164*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
165*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
166*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
167*cdf0e10cSrcweir     SvXMLImportContext *CreateStyleContext(sal_uInt16 nPrefix,
168*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
169*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
170*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
171*cdf0e10cSrcweir     SvXMLImportContext *CreatePaddedContext(sal_uInt16 nPrefix,
172*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
173*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
174*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
175*cdf0e10cSrcweir     SvXMLImportContext *CreatePhantomContext(sal_uInt16 nPrefix,
176*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
177*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
178*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
179*cdf0e10cSrcweir     SvXMLImportContext *CreateFencedContext(sal_uInt16 nPrefix,
180*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
181*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
182*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
183*cdf0e10cSrcweir     SvXMLImportContext *CreateErrorContext(sal_uInt16 nPrefix,
184*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
185*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
186*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
187*cdf0e10cSrcweir     SvXMLImportContext *CreateSubContext(sal_uInt16 nPrefix,
188*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
189*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
190*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
191*cdf0e10cSrcweir     SvXMLImportContext *CreateSupContext(sal_uInt16 nPrefix,
192*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
193*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
194*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
195*cdf0e10cSrcweir     SvXMLImportContext *CreateSubSupContext(sal_uInt16 nPrefix,
196*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
197*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
198*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
199*cdf0e10cSrcweir     SvXMLImportContext *CreateUnderContext(sal_uInt16 nPrefix,
200*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
201*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
202*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
203*cdf0e10cSrcweir     SvXMLImportContext *CreateOverContext(sal_uInt16 nPrefix,
204*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
205*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
206*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
207*cdf0e10cSrcweir     SvXMLImportContext *CreateUnderOverContext(sal_uInt16 nPrefix,
208*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
209*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
210*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
211*cdf0e10cSrcweir     SvXMLImportContext *CreateMultiScriptsContext(sal_uInt16 nPrefix,
212*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
213*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
214*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
215*cdf0e10cSrcweir     SvXMLImportContext *CreateNoneContext(sal_uInt16 nPrefix,
216*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
217*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
218*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
219*cdf0e10cSrcweir     SvXMLImportContext *CreatePrescriptsContext(sal_uInt16 nPrefix,
220*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
221*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
222*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
223*cdf0e10cSrcweir     SvXMLImportContext *CreateTableContext(sal_uInt16 nPrefix,
224*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
225*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
226*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
227*cdf0e10cSrcweir     SvXMLImportContext *CreateTableRowContext(sal_uInt16 nPrefix,
228*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
229*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
230*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
231*cdf0e10cSrcweir     SvXMLImportContext *CreateTableCellContext(sal_uInt16 nPrefix,
232*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
233*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
234*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
235*cdf0e10cSrcweir     SvXMLImportContext *CreateAlignGroupContext(sal_uInt16 nPrefix,
236*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
237*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
238*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
239*cdf0e10cSrcweir     SvXMLImportContext *CreateActionContext(sal_uInt16 nPrefix,
240*cdf0e10cSrcweir         const rtl::OUString &rLocalName,
241*cdf0e10cSrcweir         const com::sun::star::uno::Reference <
242*cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList> &xAttrList);
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir     const SvXMLTokenMap &GetPresLayoutElemTokenMap();
245*cdf0e10cSrcweir     const SvXMLTokenMap &GetPresLayoutAttrTokenMap();
246*cdf0e10cSrcweir     const SvXMLTokenMap &GetFencedAttrTokenMap();
247*cdf0e10cSrcweir     const SvXMLTokenMap &GetOperatorAttrTokenMap();
248*cdf0e10cSrcweir     const SvXMLTokenMap &GetAnnotationAttrTokenMap();
249*cdf0e10cSrcweir     const SvXMLTokenMap &GetPresElemTokenMap();
250*cdf0e10cSrcweir     const SvXMLTokenMap &GetPresScriptEmptyElemTokenMap();
251*cdf0e10cSrcweir     const SvXMLTokenMap &GetPresTableElemTokenMap();
252*cdf0e10cSrcweir     const SvXMLTokenMap &GetColorTokenMap();
253*cdf0e10cSrcweir 
254*cdf0e10cSrcweir     SmNodeStack & GetNodeStack()    { return aNodeStack; }
255*cdf0e10cSrcweir     SmNode *GetTree()               { return aNodeStack.Pop(); }
256*cdf0e10cSrcweir     sal_Bool GetSuccess()           { return bSuccess; }
257*cdf0e10cSrcweir     String &GetText()               { return aText; }
258*cdf0e10cSrcweir 
259*cdf0e10cSrcweir     virtual void SetViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps);
260*cdf0e10cSrcweir     virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps);
261*cdf0e10cSrcweir };
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir ////////////////////////////////////////////////////////////
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir enum SmXMLMathElemTokenMap
266*cdf0e10cSrcweir {
267*cdf0e10cSrcweir     XML_TOK_MATH
268*cdf0e10cSrcweir };
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir enum SmXMLPresLayoutElemTokenMap
271*cdf0e10cSrcweir {
272*cdf0e10cSrcweir     XML_TOK_SEMANTICS,
273*cdf0e10cSrcweir     XML_TOK_MSTYLE,
274*cdf0e10cSrcweir     XML_TOK_MERROR,
275*cdf0e10cSrcweir     XML_TOK_MPHANTOM,
276*cdf0e10cSrcweir     XML_TOK_MROW,
277*cdf0e10cSrcweir     XML_TOK_MFRAC,
278*cdf0e10cSrcweir     XML_TOK_MSQRT,
279*cdf0e10cSrcweir     XML_TOK_MROOT,
280*cdf0e10cSrcweir     XML_TOK_MSUB,
281*cdf0e10cSrcweir     XML_TOK_MSUP,
282*cdf0e10cSrcweir     XML_TOK_MSUBSUP,
283*cdf0e10cSrcweir     XML_TOK_MMULTISCRIPTS,
284*cdf0e10cSrcweir     XML_TOK_MUNDER,
285*cdf0e10cSrcweir     XML_TOK_MOVER,
286*cdf0e10cSrcweir     XML_TOK_MUNDEROVER,
287*cdf0e10cSrcweir     XML_TOK_MTABLE,
288*cdf0e10cSrcweir     XML_TOK_MACTION,
289*cdf0e10cSrcweir     XML_TOK_MFENCED,
290*cdf0e10cSrcweir     XML_TOK_MPADDED
291*cdf0e10cSrcweir };
292*cdf0e10cSrcweir 
293*cdf0e10cSrcweir enum SmXMLPresLayoutAttrTokenMap
294*cdf0e10cSrcweir {
295*cdf0e10cSrcweir     XML_TOK_FONTWEIGHT,
296*cdf0e10cSrcweir     XML_TOK_FONTSTYLE,
297*cdf0e10cSrcweir     XML_TOK_FONTSIZE,
298*cdf0e10cSrcweir     XML_TOK_FONTFAMILY,
299*cdf0e10cSrcweir     XML_TOK_COLOR
300*cdf0e10cSrcweir };
301*cdf0e10cSrcweir 
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir enum SmXMLFencedAttrTokenMap
304*cdf0e10cSrcweir {
305*cdf0e10cSrcweir     XML_TOK_OPEN,
306*cdf0e10cSrcweir     XML_TOK_CLOSE
307*cdf0e10cSrcweir };
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir enum SmXMLPresTableElemTokenMap
311*cdf0e10cSrcweir {
312*cdf0e10cSrcweir     XML_TOK_MTR,
313*cdf0e10cSrcweir     XML_TOK_MTD
314*cdf0e10cSrcweir };
315*cdf0e10cSrcweir 
316*cdf0e10cSrcweir enum SmXMLPresElemTokenMap
317*cdf0e10cSrcweir {
318*cdf0e10cSrcweir     XML_TOK_ANNOTATION,
319*cdf0e10cSrcweir     XML_TOK_MI,
320*cdf0e10cSrcweir     XML_TOK_MN,
321*cdf0e10cSrcweir     XML_TOK_MO,
322*cdf0e10cSrcweir     XML_TOK_MTEXT,
323*cdf0e10cSrcweir     XML_TOK_MSPACE,
324*cdf0e10cSrcweir     XML_TOK_MS,
325*cdf0e10cSrcweir     XML_TOK_MALIGNGROUP
326*cdf0e10cSrcweir };
327*cdf0e10cSrcweir 
328*cdf0e10cSrcweir enum SmXMLPresScriptEmptyElemTokenMap
329*cdf0e10cSrcweir {
330*cdf0e10cSrcweir     XML_TOK_MPRESCRIPTS,
331*cdf0e10cSrcweir     XML_TOK_NONE
332*cdf0e10cSrcweir };
333*cdf0e10cSrcweir 
334*cdf0e10cSrcweir enum SmXMLOperatorAttrTokenMap
335*cdf0e10cSrcweir {
336*cdf0e10cSrcweir     XML_TOK_STRETCHY
337*cdf0e10cSrcweir };
338*cdf0e10cSrcweir 
339*cdf0e10cSrcweir enum SmXMLAnnotationAttrTokenMap
340*cdf0e10cSrcweir {
341*cdf0e10cSrcweir     XML_TOK_ENCODING
342*cdf0e10cSrcweir };
343*cdf0e10cSrcweir 
344*cdf0e10cSrcweir ////////////////////////////////////////////////////////////
345*cdf0e10cSrcweir 
346*cdf0e10cSrcweir #endif
347*cdf0e10cSrcweir 
348