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