22#include <com/sun/star/frame/XModel.hpp>
26#include <oox/token/namespaces.hxx>
36 ContextHandler2Helper( bEnableTrimSpace, rFilter )
59 sal_Int32 nElement,
const Reference< XFastAttributeList >& rxAttribs )
61 if( getNamespace( nElement ) == NMSP_mce )
63 if( prepareMceContext( nElement,
AttributeList( rxAttribs ) ) )
67 return implCreateChildContext( nElement, rxAttribs );
71 sal_Int32 nElement,
const Reference< XFastAttributeList >& rxAttribs )
73 implStartElement( nElement, rxAttribs );
78 implCharacters( rChars );
86 case MCE_TOKEN( AlternateContent ):
91 implEndElement( nElement );
98 return implCreateRecordContext( nRecId,
rStrm );
103 implStartRecord( nRecId,
rStrm );
108 implEndRecord( nRecId );
Provides access to attribute values of an element.
virtual void onStartElement(const AttributeList &rAttribs) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs) final override
virtual void finalizeImport()
virtual void startRecord(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void SAL_CALL characters(const OUString &rChars) final override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) final override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs) final override
FragmentHandler2(XmlFilterBase &rFilter, const OUString &rFragmentPath, bool bEnableTrimSpace=true)
virtual void onEndRecord() override
virtual void SAL_CALL endDocument() override
virtual void initializeImport()
virtual ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual ContextHandlerRef createRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual ~FragmentHandler2() override
virtual void endRecord(sal_Int32 nRecId) override
virtual ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onEndElement() override
virtual void onCharacters(const OUString &rChars) override
virtual void SAL_CALL startDocument() override
css::uno::Reference< css::xml::sax::XFastContextHandler > getFastContextHandler()
Returns the com.sun.star.xml.sax.XFastContextHandler interface of this context.