/Users/ericb/Desktop/SRC680_m247/starmath/source/mathml.cxx File Reference

#include "precompiled_starmath.hxx"
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
#include <rtl/math.hxx>
#include <svtools/sfxecode.hxx>
#include <svtools/saveopt.hxx>
#include <sfx2/docfile.hxx>
#include <svtools/stritem.hxx>
#include <unomodel.hxx>
#include <mathml.hxx>
#include <document.hxx>
#include <utility.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/uno/Any.h>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/attrlist.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlmetai.hxx>
#include <unotools/processfactory.hxx>
#include <unotools/streamwrap.hxx>
#include <com/sun/star/xml/sax/XErrorHandler.hpp>
#include <com/sun/star/xml/sax/XEntityResolver.hpp>
#include <com/sun/star/xml/sax/InputSource.hpp>
#include <com/sun/star/xml/sax/XDTDHandler.hpp>
#include <com/sun/star/xml/sax/XParser.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <com/sun/star/io/XActiveDataControl.hpp>
#include <com/sun/star/packages/zip/ZipIOException.hpp>
#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <comphelper/genericpropertyset.hxx>
#include <svtools/itemprop.hxx>
#include <sfx2/frame.hxx>
#include "mathtype.hxx"
#include <starmath.hrc>
#include <parser.hxx>

Include dependency graph for mathml.cxx:

Go to the source code of this file.

Namespaces

namespace  com::sun::star::document
namespace  com::sun::star::container

Classes

class  SmXMLImportContext
class  SmXMLDocContext_Impl
class  SmXMLRowContext_Impl
class  SmXMLFracContext_Impl
class  SmXMLSqrtContext_Impl
class  SmXMLRootContext_Impl
struct  SmXMLContext_Helper
class  SmXMLStyleContext_Impl
class  SmXMLPaddedContext_Impl
class  SmXMLPhantomContext_Impl
class  SmXMLFencedContext_Impl
class  SmXMLErrorContext_Impl
class  SmXMLNumberContext_Impl
class  SmXMLAnnotationContext_Impl
class  SmXMLTextContext_Impl
class  SmXMLStringContext_Impl
class  SmXMLIdentifierContext_Impl
class  SmXMLOperatorContext_Impl
class  SmXMLSpaceContext_Impl
class  SmXMLSubContext_Impl
class  SmXMLSupContext_Impl
class  SmXMLSubSupContext_Impl
class  SmXMLUnderContext_Impl
class  SmXMLOverContext_Impl
class  SmXMLUnderOverContext_Impl
class  SmXMLMultiScriptsContext_Impl
class  SmXMLNoneContext_Impl
class  SmXMLPrescriptsContext_Impl
class  SmXMLTableRowContext_Impl
class  SmXMLTableContext_Impl
class  SmXMLTableCellContext_Impl
class  SmXMLAlignGroupContext_Impl
class  SmXMLActionContext_Impl
class  SmXMLOfficeContext_Impl

Defines

#define IMPORT_SVC_NAME   RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.XMLImportFilter")
#define EXPORT_SVC_NAME   RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.XMLExportFilter")

Functions

OUString SAL_CALL SmXMLImport_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLImport_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLImport_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLExport_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLExport_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLExport_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLImportMeta_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLImportMeta_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLImportMeta_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLExportMetaOOO_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLExportMetaOOO_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLExportMetaOOO_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLExportMeta_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLExportMeta_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLExportMeta_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLImportSettings_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLImportSettings_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLImportSettings_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLExportSettingsOOO_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLExportSettingsOOO_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLExportSettingsOOO_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLExportSettings_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLExportSettings_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLExportSettings_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )
OUString SAL_CALL SmXMLExportContent_getImplementationName () throw ()
uno::Sequence< OUString
> SAL_CALL 
SmXMLExportContent_getSupportedServiceNames () throw ()
uno::Reference< uno::XInterface
> SAL_CALL 
SmXMLExportContent_createInstance (const uno::Reference< lang::XMultiServiceFactory > &rSMgr) throw ( uno::Exception )

Variables

static __FAR_DATA SvXMLTokenMapEntry aPresLayoutElemTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aPresLayoutAttrTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aFencedAttrTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aOperatorAttrTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aAnnotationAttrTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aPresElemTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aPresScriptEmptyElemTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aPresTableElemTokenMap []
static __FAR_DATA SvXMLTokenMapEntry aColorTokenMap []


Define Documentation

#define EXPORT_SVC_NAME   RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.XMLExportFilter")

Definition at line 175 of file mathml.cxx.

Referenced by SmXMLExport_getSupportedServiceNames(), SmXMLExportContent_getSupportedServiceNames(), SmXMLExportMeta_getSupportedServiceNames(), SmXMLExportMetaOOO_getSupportedServiceNames(), SmXMLExportSettings_getSupportedServiceNames(), and SmXMLExportSettingsOOO_getSupportedServiceNames().

#define IMPORT_SVC_NAME   RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.XMLImportFilter")

Definition at line 174 of file mathml.cxx.

Referenced by SmXMLImport_getSupportedServiceNames(), SmXMLImportMeta_getSupportedServiceNames(), and SmXMLImportSettings_getSupportedServiceNames().


Function Documentation

uno::Reference< uno::XInterface > SAL_CALL SmXMLExport_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 609 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLExport_getImplementationName (  )  throw ()

Definition at line 596 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLExport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLExport_getSupportedServiceNames (  )  throw ()

Definition at line 601 of file mathml.cxx.

References EXPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLExportContent_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 781 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLExportContent_getImplementationName (  )  throw ()

Definition at line 768 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLExport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLExportContent_getSupportedServiceNames (  )  throw ()

Definition at line 773 of file mathml.cxx.

References EXPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLExportMeta_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 684 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLExportMeta_getImplementationName (  )  throw ()

Definition at line 671 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLExport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLExportMeta_getSupportedServiceNames (  )  throw ()

Definition at line 676 of file mathml.cxx.

References EXPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLExportMetaOOO_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 660 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLExportMetaOOO_getImplementationName (  )  throw ()

Definition at line 647 of file mathml.cxx.

Referenced by component_getFactory(), and component_writeInfo().

uno::Sequence< OUString > SAL_CALL SmXMLExportMetaOOO_getSupportedServiceNames (  )  throw ()

Definition at line 652 of file mathml.cxx.

References EXPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLExportSettings_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 756 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLExportSettings_getImplementationName (  )  throw ()

Definition at line 743 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLExport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLExportSettings_getSupportedServiceNames (  )  throw ()

Definition at line 748 of file mathml.cxx.

References EXPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLExportSettingsOOO_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 732 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLExportSettingsOOO_getImplementationName (  )  throw ()

Definition at line 719 of file mathml.cxx.

Referenced by component_getFactory(), and component_writeInfo().

uno::Sequence< OUString > SAL_CALL SmXMLExportSettingsOOO_getSupportedServiceNames (  )  throw ()

Definition at line 724 of file mathml.cxx.

References EXPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLImport_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 585 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLImport_getImplementationName (  )  throw ()

Definition at line 572 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLImport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLImport_getSupportedServiceNames (  )  throw ()

Definition at line 577 of file mathml.cxx.

References IMPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLImportMeta_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 636 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLImportMeta_getImplementationName (  )  throw ()

Definition at line 623 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLImport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLImportMeta_getSupportedServiceNames (  )  throw ()

Definition at line 628 of file mathml.cxx.

References IMPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().

uno::Reference< uno::XInterface > SAL_CALL SmXMLImportSettings_createInstance ( const uno::Reference< lang::XMultiServiceFactory > &  rSMgr  )  throw ( uno::Exception )

Definition at line 708 of file mathml.cxx.

Referenced by component_getFactory().

OUString SAL_CALL SmXMLImportSettings_getImplementationName (  )  throw ()

Definition at line 695 of file mathml.cxx.

Referenced by component_getFactory(), component_writeInfo(), and SmXMLImport::getImplementationName().

uno::Sequence< OUString > SAL_CALL SmXMLImportSettings_getSupportedServiceNames (  )  throw ()

Definition at line 700 of file mathml.cxx.

References IMPORT_SVC_NAME.

Referenced by component_getFactory(), and component_writeInfo().


Variable Documentation

__FAR_DATA SvXMLTokenMapEntry aAnnotationAttrTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_ENCODING,      XML_TOK_ENCODING },
    XML_TOKEN_MAP_END
}

Definition at line 2551 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aColorTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_BLACK,        TBLACK},
    { XML_NAMESPACE_MATH,   XML_WHITE,        TWHITE},
    { XML_NAMESPACE_MATH,   XML_RED,          TRED},
    { XML_NAMESPACE_MATH,   XML_GREEN,        TGREEN},
    { XML_NAMESPACE_MATH,   XML_BLUE,         TBLUE},
    { XML_NAMESPACE_MATH,   XML_AQUA,         TCYAN},
    { XML_NAMESPACE_MATH,   XML_FUCHSIA,      TMAGENTA},
    { XML_NAMESPACE_MATH,   XML_YELLOW,       TYELLOW},
    XML_TOKEN_MAP_END
}

Definition at line 2585 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aFencedAttrTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_OPEN,       XML_TOK_OPEN },
    { XML_NAMESPACE_MATH,   XML_CLOSE,      XML_TOK_CLOSE },
    XML_TOKEN_MAP_END
}

Definition at line 2538 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aOperatorAttrTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_STRETCHY,      XML_TOK_STRETCHY },
    XML_TOKEN_MAP_END
}

Definition at line 2545 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aPresElemTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_ANNOTATION,    XML_TOK_ANNOTATION },
    { XML_NAMESPACE_MATH,   XML_MI,    XML_TOK_MI },
    { XML_NAMESPACE_MATH,   XML_MN,    XML_TOK_MN },
    { XML_NAMESPACE_MATH,   XML_MO,    XML_TOK_MO },
    { XML_NAMESPACE_MATH,   XML_MTEXT, XML_TOK_MTEXT },
    { XML_NAMESPACE_MATH,   XML_MSPACE,XML_TOK_MSPACE },
    { XML_NAMESPACE_MATH,   XML_MS,    XML_TOK_MS },
    { XML_NAMESPACE_MATH,   XML_MALIGNGROUP,   XML_TOK_MALIGNGROUP },
    XML_TOKEN_MAP_END
}

Definition at line 2558 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aPresLayoutAttrTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_FONTWEIGHT,      XML_TOK_FONTWEIGHT    },
    { XML_NAMESPACE_MATH,   XML_FONTSTYLE,       XML_TOK_FONTSTYLE     },
    { XML_NAMESPACE_MATH,   XML_FONTSIZE,        XML_TOK_FONTSIZE      },
    { XML_NAMESPACE_MATH,   XML_FONTFAMILY,      XML_TOK_FONTFAMILY    },
    { XML_NAMESPACE_MATH,   XML_COLOR,           XML_TOK_COLOR },
    XML_TOKEN_MAP_END
}

Definition at line 2528 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aPresLayoutElemTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_SEMANTICS, XML_TOK_SEMANTICS },
    { XML_NAMESPACE_MATH,   XML_MATH,      XML_TOK_MATH   },
    { XML_NAMESPACE_MATH,   XML_MSTYLE,    XML_TOK_MSTYLE  },
    { XML_NAMESPACE_MATH,   XML_MERROR,    XML_TOK_MERROR },
    { XML_NAMESPACE_MATH,   XML_MPHANTOM,  XML_TOK_MPHANTOM },
    { XML_NAMESPACE_MATH,   XML_MROW,      XML_TOK_MROW },
    { XML_NAMESPACE_MATH,   XML_MFRAC,     XML_TOK_MFRAC },
    { XML_NAMESPACE_MATH,   XML_MSQRT,     XML_TOK_MSQRT },
    { XML_NAMESPACE_MATH,   XML_MROOT,     XML_TOK_MROOT },
    { XML_NAMESPACE_MATH,   XML_MSUB,      XML_TOK_MSUB },
    { XML_NAMESPACE_MATH,   XML_MSUP,      XML_TOK_MSUP },
    { XML_NAMESPACE_MATH,   XML_MSUBSUP,   XML_TOK_MSUBSUP },
    { XML_NAMESPACE_MATH,   XML_MUNDER,    XML_TOK_MUNDER },
    { XML_NAMESPACE_MATH,   XML_MOVER,     XML_TOK_MOVER },
    { XML_NAMESPACE_MATH,   XML_MUNDEROVER,    XML_TOK_MUNDEROVER },
    { XML_NAMESPACE_MATH,   XML_MMULTISCRIPTS, XML_TOK_MMULTISCRIPTS },
    { XML_NAMESPACE_MATH,   XML_MTABLE,    XML_TOK_MTABLE },
    { XML_NAMESPACE_MATH,   XML_MACTION,   XML_TOK_MACTION },
    { XML_NAMESPACE_MATH,   XML_MFENCED,   XML_TOK_MFENCED },
    { XML_NAMESPACE_MATH,   XML_MPADDED,   XML_TOK_MPADDED },
    XML_TOKEN_MAP_END
}

Definition at line 2503 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aPresScriptEmptyElemTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_MPRESCRIPTS,   XML_TOK_MPRESCRIPTS },
    { XML_NAMESPACE_MATH,   XML_NONE,  XML_TOK_NONE },
    XML_TOKEN_MAP_END
}

Definition at line 2571 of file mathml.cxx.

__FAR_DATA SvXMLTokenMapEntry aPresTableElemTokenMap[] [static]

Initial value:

{
    { XML_NAMESPACE_MATH,   XML_MTR,       XML_TOK_MTR },
    { XML_NAMESPACE_MATH,   XML_MTD,       XML_TOK_MTD },
    XML_TOKEN_MAP_END
}

Definition at line 2578 of file mathml.cxx.


Generated on Wed Feb 20 17:22:37 2008 for maths by  doxygen 1.5.1