LibreOffice Module oox (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
oox::docprop::OOXMLDocPropHandler Class Reference

#include <docprophandler.hxx>

Inheritance diagram for oox::docprop::OOXMLDocPropHandler:
[legend]
Collaboration diagram for oox::docprop::OOXMLDocPropHandler:
[legend]

Public Member Functions

 OOXMLDocPropHandler (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::document::XDocumentProperties > &rDocProp)
 
virtual ~OOXMLDocPropHandler () override
 
void InitNew ()
 
void AddCustomProperty (const css::uno::Any &aAny)
 
void UpdateDocStatistic (std::u16string_view aChars)
 
virtual void SAL_CALL startDocument () override
 
virtual void SAL_CALL endDocument () override
 
virtual void SAL_CALL processingInstruction (const OUString &rTarget, const OUString &rData) override
 
virtual void SAL_CALL setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &rxLocator) override
 
virtual void SAL_CALL startFastElement (::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endFastElement (::sal_Int32 Element) override
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) 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
 
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 characters (const OUString &aChars) override
 

Static Public Member Functions

static css::util::DateTime GetDateTimeFromW3CDTF (std::u16string_view aChars)
 
static css::uno::Sequence< OUString > GetKeywordsSet (std::u16string_view aChars)
 

Private Types

enum  {
  NONE ,
  INSERTED
}
 

Private Attributes

css::uno::Reference< css::document::XDocumentProperties > m_xDocProp
 
sal_Int32 m_nState
 
sal_Int32 m_nBlock
 
sal_Int32 m_nType
 
sal_Int32 m_nInBlock
 
enum oox::docprop::OOXMLDocPropHandler:: { ... }  m_CustomStringPropertyState
 
OUString m_aCustomPropertyName
 

Detailed Description

Definition at line 40 of file docprophandler.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NONE 
INSERTED 

Definition at line 50 of file docprophandler.hxx.

Constructor & Destructor Documentation

◆ OOXMLDocPropHandler()

oox::docprop::OOXMLDocPropHandler::OOXMLDocPropHandler ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::document::XDocumentProperties > &  rDocProp 
)
explicit

Definition at line 44 of file docprophandler.cxx.

References NONE.

◆ ~OOXMLDocPropHandler()

oox::docprop::OOXMLDocPropHandler::~OOXMLDocPropHandler ( )
overridevirtual

Definition at line 57 of file docprophandler.cxx.

Member Function Documentation

◆ AddCustomProperty()

void oox::docprop::OOXMLDocPropHandler::AddCustomProperty ( const css::uno::Any &  aAny)

Definition at line 71 of file docprophandler.cxx.

References m_aCustomPropertyName, and m_xDocProp.

Referenced by characters(), and endFastElement().

◆ characters()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::characters ( const OUString &  aChars)
overridevirtual

◆ createFastChildContext()

uno::Reference< xml::sax::XFastContextHandler > SAL_CALL oox::docprop::OOXMLDocPropHandler::createFastChildContext ( ::sal_Int32  Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 392 of file docprophandler.cxx.

◆ createUnknownChildContext()

uno::Reference< xml::sax::XFastContextHandler > SAL_CALL oox::docprop::OOXMLDocPropHandler::createUnknownChildContext ( const OUString &  Namespace,
const OUString &  Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 398 of file docprophandler.cxx.

◆ endDocument()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::endDocument ( )
overridevirtual

Definition at line 271 of file docprophandler.cxx.

References InitNew().

◆ endFastElement()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::endFastElement ( ::sal_Int32  Element)
overridevirtual

◆ endUnknownElement()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::endUnknownElement ( const OUString &  Namespace,
const OUString &  Name 
)
overridevirtual

Definition at line 386 of file docprophandler.cxx.

References m_nInBlock.

◆ GetDateTimeFromW3CDTF()

util::DateTime oox::docprop::OOXMLDocPropHandler::GetDateTimeFromW3CDTF ( std::u16string_view  aChars)
static

Definition at line 96 of file docprophandler.cxx.

References o3tl::toInt32().

Referenced by characters().

◆ GetKeywordsSet()

uno::Sequence< OUString > oox::docprop::OOXMLDocPropHandler::GetKeywordsSet ( std::u16string_view  aChars)
static

Definition at line 193 of file docprophandler.cxx.

References OUStringToOString().

Referenced by characters().

◆ InitNew()

void oox::docprop::OOXMLDocPropHandler::InitNew ( )

◆ processingInstruction()

void oox::docprop::OOXMLDocPropHandler::processingInstruction ( const OUString &  rTarget,
const OUString &  rData 
)
overridevirtual

Definition at line 276 of file docprophandler.cxx.

◆ setDocumentLocator()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::setDocumentLocator ( const css::uno::Reference< css::xml::sax::XLocator > &  rxLocator)
overridevirtual

Definition at line 280 of file docprophandler.cxx.

◆ startDocument()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::startDocument ( )
overridevirtual

Definition at line 267 of file docprophandler.cxx.

◆ startFastElement()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::startFastElement ( ::sal_Int32  Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

◆ startUnknownElement()

void SAL_CALL oox::docprop::OOXMLDocPropHandler::startUnknownElement ( const OUString &  Namespace,
const OUString &  Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 336 of file docprophandler.cxx.

References aName, m_nInBlock, SAL_MAX_INT32, and SAL_WARN.

◆ UpdateDocStatistic()

void oox::docprop::OOXMLDocPropHandler::UpdateDocStatistic ( std::u16string_view  aChars)

Definition at line 217 of file docprophandler.cxx.

References aName, EXTPR_TOKEN, m_nBlock, m_xDocProp, Name, and o3tl::toInt32().

Referenced by characters().

Member Data Documentation

◆ m_aCustomPropertyName

OUString oox::docprop::OOXMLDocPropHandler::m_aCustomPropertyName
private

◆ 

enum { ... } oox::docprop::OOXMLDocPropHandler::m_CustomStringPropertyState

Referenced by characters(), endFastElement(), and InitNew().

◆ m_nBlock

sal_Int32 oox::docprop::OOXMLDocPropHandler::m_nBlock
private

◆ m_nInBlock

sal_Int32 oox::docprop::OOXMLDocPropHandler::m_nInBlock
private

◆ m_nState

sal_Int32 oox::docprop::OOXMLDocPropHandler::m_nState
private

Definition at line 44 of file docprophandler.hxx.

Referenced by characters(), endFastElement(), InitNew(), and startFastElement().

◆ m_nType

sal_Int32 oox::docprop::OOXMLDocPropHandler::m_nType
private

Definition at line 46 of file docprophandler.hxx.

Referenced by characters(), endFastElement(), InitNew(), and startFastElement().

◆ m_xDocProp

css::uno::Reference< css::document::XDocumentProperties > oox::docprop::OOXMLDocPropHandler::m_xDocProp
private

Definition at line 42 of file docprophandler.hxx.

Referenced by AddCustomProperty(), characters(), and UpdateDocStatistic().


The documentation for this class was generated from the following files: