20#ifndef INCLUDED_OOX_SOURCE_DOCPROP_DOCPROPHANDLER_HXX
21#define INCLUDED_OOX_SOURCE_DOCPROP_DOCPROPHANDLER_HXX
23#include <com/sun/star/uno/XComponentContext.hpp>
24#include <com/sun/star/document/XDocumentProperties.hpp>
25#include <com/sun/star/xml/sax/XFastDocumentHandler.hpp>
29#include <oox/token/namespaces.hxx>
33#define COREPR_TOKEN( token ) (::oox::NMSP_packageMetaCorePr | XML_##token)
34#define CUSTPR_TOKEN( token ) (::oox::NMSP_officeCustomPr | XML_##token)
35#define EXTPR_TOKEN( token ) (::oox::NMSP_officeExtPr | XML_##token)
36#define VT_TOKEN( token ) (::oox::NMSP_officeDocPropsVT | XML_##token)
37#define DC_TOKEN( token ) (::oox::NMSP_dc | XML_##token)
38#define DCT_TOKEN( token ) (::oox::NMSP_dcTerms | XML_##token)
42 css::uno::Reference< css::document::XDocumentProperties >
m_xDocProp;
54 explicit OOXMLDocPropHandler(
const css::uno::Reference< css::uno::XComponentContext >& xContext,
const css::uno::Reference< css::document::XDocumentProperties >& rDocProp );
62 static css::uno::Sequence< OUString >
GetKeywordsSet( std::u16string_view aChars );
69 virtual void SAL_CALL
processingInstruction(
const OUString& rTarget,
const OUString& rData )
override;
70 virtual void SAL_CALL
setDocumentLocator(
const css::uno::Reference< css::xml::sax::XLocator >& rxLocator )
override;
74 virtual void SAL_CALL
startFastElement( ::sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
75 virtual void SAL_CALL
startUnknownElement(
const OUString& Namespace,
const OUString& Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
76 virtual void SAL_CALL
endFastElement( ::sal_Int32 Element )
override;
77 virtual void SAL_CALL
endUnknownElement(
const OUString& Namespace,
const OUString& Name )
override;
78 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createFastChildContext( ::sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs )
override;
79 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;
80 virtual void SAL_CALL
characters(
const OUString& aChars )
override;
virtual void SAL_CALL setDocumentLocator(const css::uno::Reference< css::xml::sax::XLocator > &rxLocator) override
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
virtual void SAL_CALL startDocument() override
virtual void SAL_CALL endUnknownElement(const OUString &Namespace, const OUString &Name) override
static css::uno::Sequence< OUString > GetKeywordsSet(std::u16string_view aChars)
OOXMLDocPropHandler(const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::document::XDocumentProperties > &rDocProp)
virtual void SAL_CALL endFastElement(::sal_Int32 Element) override
enum oox::docprop::OOXMLDocPropHandler::@0 m_CustomStringPropertyState
virtual void SAL_CALL processingInstruction(const OUString &rTarget, const OUString &rData) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
static css::util::DateTime GetDateTimeFromW3CDTF(std::u16string_view aChars)
virtual void SAL_CALL startFastElement(::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void SAL_CALL endDocument() override
css::uno::Reference< css::document::XDocumentProperties > m_xDocProp
OUString m_aCustomPropertyName
void UpdateDocStatistic(std::u16string_view aChars)
virtual void SAL_CALL characters(const OUString &aChars) override
virtual void SAL_CALL startUnknownElement(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
void AddCustomProperty(const css::uno::Any &aAny)
virtual ~OOXMLDocPropHandler() override