20#ifndef INCLUDED_OOX_CORE_CONTEXTHANDLER_HXX
21#define INCLUDED_OOX_CORE_CONTEXTHANDLER_HXX
26#include <com/sun/star/uno/Any.hxx>
27#include <com/sun/star/uno/Reference.hxx>
28#include <com/sun/star/uno/Sequence.hxx>
29#include <com/sun/star/xml/sax/XFastContextHandler.hpp>
33#include <rtl/ustring.hxx>
37 namespace xml::sax {
class XFastAttributeList; }
38 namespace xml::sax {
class XLocator; }
41namespace oox {
class SequenceInputStream; }
68 const OUString& getFragmentPath()
const;
71 OUString getFragmentPathFromRelation(
const Relation& rRelation )
const;
73 OUString getFragmentPathFromRelId(
const OUString& rRelId )
const;
75 OUString getFragmentPathFromFirstType( std::u16string_view rType )
const;
76 OUString getFragmentPathFromFirstTypeFromOfficeDoc( std::u16string_view rType )
const;
80 virtual void SAL_CALL startFastElement( ::sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
81 virtual void SAL_CALL startUnknownElement(
const OUString& Namespace,
const OUString&
Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
82 virtual void SAL_CALL endFastElement( ::sal_Int32 Element )
override;
83 virtual void SAL_CALL endUnknownElement(
const OUString& Namespace,
const OUString&
Name )
override;
84 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
85 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;
86 virtual void SAL_CALL characters(
const OUString& aChars )
override;
92 virtual void endRecord( sal_Int32 nRecId );
98 void implSetLocator(
const css::uno::Reference< css::xml::sax::XLocator >& rxLocator );
FragmentBaseDataRef mxBaseData
Base data of the fragment.
ContextHandler & operator=(const ContextHandler &)=delete
::rtl::Reference< ContextHandler > ContextHandlerRef
std::shared_ptr< FragmentBaseData > FragmentBaseDataRef
::cppu::WeakImplHelper< css::xml::sax::XFastContextHandler > ContextHandler_BASE