LibreOffice Module oox (master) 1
|
#include <docprophandler.hxx>
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 |
Definition at line 40 of file docprophandler.hxx.
|
private |
Enumerator | |
---|---|
NONE | |
INSERTED |
Definition at line 50 of file docprophandler.hxx.
|
explicit |
Definition at line 44 of file docprophandler.cxx.
References NONE.
|
overridevirtual |
Definition at line 57 of file docprophandler.cxx.
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().
|
overridevirtual |
Definition at line 403 of file docprophandler.cxx.
References AddCustomProperty(), Company, LanguageTag::convertToLocale(), COREPR_TOKEN, CUSTPR_TOKEN, DC_TOKEN, DCT_TOKEN, oox::AttributeConversion::decodeXString(), EXTPR_TOKEN, cppu::getCaughtException(), GetDateTimeFromW3CDTF(), GetKeywordsSet(), identifier, INSERTED, Lines, m_aCustomPropertyName, m_CustomStringPropertyState, m_nBlock, m_nInBlock, m_nState, m_nType, m_xDocProp, Notes, Properties, Template, UpdateDocStatistic(), and VT_TOKEN.
|
overridevirtual |
Definition at line 392 of file docprophandler.cxx.
|
overridevirtual |
Definition at line 398 of file docprophandler.cxx.
|
overridevirtual |
Definition at line 271 of file docprophandler.cxx.
References InitNew().
|
overridevirtual |
Definition at line 346 of file docprophandler.cxx.
References AddCustomProperty(), CUSTPR_TOKEN, INSERTED, m_aCustomPropertyName, m_CustomStringPropertyState, m_nBlock, m_nInBlock, m_nState, m_nType, NONE, Properties, and VT_TOKEN.
|
overridevirtual |
Definition at line 386 of file docprophandler.cxx.
References m_nInBlock.
|
static |
Definition at line 96 of file docprophandler.cxx.
References o3tl::toInt32().
Referenced by characters().
|
static |
Definition at line 193 of file docprophandler.cxx.
References OUStringToOString().
Referenced by characters().
void oox::docprop::OOXMLDocPropHandler::InitNew | ( | ) |
Definition at line 61 of file docprophandler.cxx.
References m_aCustomPropertyName, m_CustomStringPropertyState, m_nBlock, m_nInBlock, m_nState, m_nType, and NONE.
Referenced by endDocument().
|
overridevirtual |
Definition at line 276 of file docprophandler.cxx.
|
overridevirtual |
Definition at line 280 of file docprophandler.cxx.
|
overridevirtual |
Definition at line 267 of file docprophandler.cxx.
|
overridevirtual |
Definition at line 286 of file docprophandler.cxx.
References COREPR_TOKEN, CUSTPR_TOKEN, EXTPR_TOKEN, m_aCustomPropertyName, m_nBlock, m_nInBlock, m_nState, m_nType, Properties, SAL_MAX_INT32, and SAL_WARN.
|
overridevirtual |
Definition at line 336 of file docprophandler.cxx.
References aName, m_nInBlock, SAL_MAX_INT32, and SAL_WARN.
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().
|
private |
Definition at line 51 of file docprophandler.hxx.
Referenced by AddCustomProperty(), characters(), endFastElement(), InitNew(), and startFastElement().
enum { ... } oox::docprop::OOXMLDocPropHandler::m_CustomStringPropertyState |
Referenced by characters(), endFastElement(), and InitNew().
|
private |
Definition at line 45 of file docprophandler.hxx.
Referenced by characters(), endFastElement(), InitNew(), startFastElement(), and UpdateDocStatistic().
|
private |
Definition at line 48 of file docprophandler.hxx.
Referenced by characters(), endFastElement(), endUnknownElement(), InitNew(), startFastElement(), and startUnknownElement().
|
private |
Definition at line 44 of file docprophandler.hxx.
Referenced by characters(), endFastElement(), InitNew(), and startFastElement().
|
private |
Definition at line 46 of file docprophandler.hxx.
Referenced by characters(), endFastElement(), InitNew(), and startFastElement().
|
private |
Definition at line 42 of file docprophandler.hxx.
Referenced by AddCustomProperty(), characters(), and UpdateDocStatistic().