20#ifndef INCLUDED_OOX_CORE_FRAGMENTHANDLER_HXX
21#define INCLUDED_OOX_CORE_FRAGMENTHANDLER_HXX
23#include <com/sun/star/uno/Any.hxx>
24#include <com/sun/star/uno/Reference.hxx>
25#include <com/sun/star/uno/Sequence.hxx>
26#include <com/sun/star/xml/sax/XFastDocumentHandler.hpp>
32#include <rtl/ustring.hxx>
36 namespace io {
class XInputStream; }
37 namespace xml::sax {
class XFastAttributeList; }
38 namespace xml::sax {
class XFastContextHandler; }
39 namespace xml::sax {
class XLocator; }
55 css::uno::Reference< css::xml::sax::XLocator >
61 OUString aFragmentPath,
83typedef ::cppu::ImplInheritanceHelper< ContextHandler, css::xml::sax::XFastDocumentHandler >
FragmentHandler_BASE;
97 css::uno::Reference< css::xml::sax::XFastContextHandler >
102 virtual void SAL_CALL startDocument()
override;
103 virtual void SAL_CALL endDocument()
override;
104 virtual void SAL_CALL processingInstruction(
const OUString& rTarget,
const OUString& rData )
override;
105 virtual void SAL_CALL setDocumentLocator(
const css::uno::Reference< css::xml::sax::XLocator >& rxLocator )
override;
109 virtual void SAL_CALL startFastElement( ::sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
110 virtual void SAL_CALL startUnknownElement(
const OUString& Namespace,
const OUString& Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
111 virtual void SAL_CALL endFastElement( ::sal_Int32 Element )
override;
112 virtual void SAL_CALL endUnknownElement(
const OUString& Namespace,
const OUString& Name )
override;
113 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
114 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext(
const OUString& Namespace,
const OUString& Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
115 virtual void SAL_CALL characters(
const OUString& aChars )
override;
121 virtual css::uno::Reference< css::io::XInputStream >
122 openFragmentStream()
const;
126 virtual const RecordInfo* getRecordInfos()
const;
FragmentHandler(FragmentHandler &&)=default
css::uno::Reference< css::xml::sax::XFastContextHandler > getFastContextHandler()
Returns the com.sun.star.xml.sax.XFastContextHandler interface of this context.
FragmentHandler(FragmentHandler const &)=default
std::shared_ptr< Relations > RelationsRef
::cppu::ImplInheritanceHelper< ContextHandler, css::xml::sax::XFastDocumentHandler > FragmentHandler_BASE
::rtl::Reference< FragmentHandler > FragmentHandlerRef
css::uno::Reference< css::xml::sax::XLocator > mxLocator
FragmentBaseData(XmlFilterBase &rFilter, OUString aFragmentPath, RelationsRef xRelations)
const OUString maFragmentPath
Describes record identifiers used to create contexts in a binary stream.
sal_Int32 mnEndRecId
Record identifier for context end, -1 = no record.
sal_Int32 mnStartRecId
Record identifier for context start.