22 #include <com/sun/star/frame/XModel.hpp>
26 #include <oox/token/namespaces.hxx>
59 sal_Int32 nElement,
const Reference< XFastAttributeList >& rxAttribs )
61 if( getNamespace( nElement ) == NMSP_mce )
71 sal_Int32 nElement,
const Reference< XFastAttributeList >& rxAttribs )
86 case MCE_TOKEN( AlternateContent ):
virtual ContextHandlerRef createRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
void implEndRecord(sal_Int32 nRecId)
Must be called from endRecord() in derived classes.
css::uno::Reference< css::xml::sax::XFastContextHandler > getFastContextHandler()
Returns the com.sun.star.xml.sax.XFastContextHandler interface of this context.
css::uno::Reference< css::xml::sax::XFastContextHandler > implCreateChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs)
Must be called from createFastChildContext() in derived classes.
void implStartElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs)
Must be called from startFastElement() in derived classes.
virtual void startRecord(sal_Int32 nRecId, SequenceInputStream &rStrm) override
bool prepareMceContext(sal_Int32 nElement, const AttributeList &rAttribs)
virtual void SAL_CALL characters(const OUString &rChars) final override
virtual void initializeImport()
void implStartRecord(sal_Int32 nRecId, SequenceInputStream &rStrm)
Must be called from startRecord() in derived classes.
virtual void onStartRecord(SequenceInputStream &rStrm) override
Will be called when a new record block in a binary stream has been started.
virtual ~FragmentHandler2() override
virtual void SAL_CALL startDocument() override
virtual ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Provides access to attribute values of an element.
virtual void onCharacters(const OUString &rChars) override
Will be called before a new child element starts, or if the current element is about to be left...
virtual void finalizeImport()
virtual void SAL_CALL endDocument() override
virtual void endRecord(sal_Int32 nRecId) override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) final override
void implEndElement(sal_Int32 nElement)
Must be called from endFastElement() in derived classes.
FragmentHandler2(XmlFilterBase &rFilter, const OUString &rFragmentPath, bool bEnableTrimSpace=true)
void implCharacters(std::u16string_view rChars)
Must be called from characters() in derived classes.
virtual void onEndElement() override
Will be called when the current element is about to be left.
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 onStartElement(const AttributeList &rAttribs) override
Will be called when a new element has been started.
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rxAttribs) final override
ContextHandlerRef implCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm)
Must be called from createRecordContext() in derived classes.
Helper class that provides a context stack.
virtual ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
Will be called to create a context handler for the passed record.
virtual void onEndRecord() override
Will be called when the current record block is about to be left.