LibreOffice Module xmloff (master) 1
|
Import text sections. More...
#include <XMLSectionImportContext.hxx>
Public Member Functions | |
XMLSectionImportContext (SvXMLImport &rImport) | |
virtual | ~XMLSectionImportContext () override |
Public Member Functions inherited from SvXMLImportContext | |
SvXMLImportContext (SvXMLImport &rImport) | |
A contexts constructor does anything that is required if an element starts. More... | |
virtual | ~SvXMLImportContext () |
A contexts destructor does anything that is required if an element ends. More... | |
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 |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) override |
virtual css::uno::Reference< 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 |
This method is called for all characters that are contained in the current element. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) final override |
virtual void SAL_CALL | acquire () noexcept final override |
virtual void SAL_CALL | release () noexcept final override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () final override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () final override |
Private Member Functions | |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override |
void | ProcessAttributes (const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
Private Attributes | |
css::uno::Reference< css::beans::XPropertySet > | xSectionPropertySet |
TextSection (as XPropertySet) for passing down to data source elements. More... | |
OUString | sXmlId |
OUString | sStyleName |
OUString | sName |
OUString | sCond |
css::uno::Sequence< sal_Int8 > | aSequence |
bool | bProtect |
bool | bCondOK |
bool | bIsVisible |
bool | bValid |
bool | bSequenceOK |
bool | bIsCurrentlyVisible |
bool | bIsCurrentlyVisibleOK |
bool | bHasContent |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Import text sections.
This context may also be used for index header sections. The differentiates its behaviour based on GetLocalName().
Definition at line 39 of file XMLSectionImportContext.hxx.
XMLSectionImportContext::XMLSectionImportContext | ( | SvXMLImport & | rImport | ) |
Definition at line 58 of file XMLSectionImportContext.cxx.
|
overridevirtual |
Definition at line 71 of file XMLSectionImportContext.cxx.
|
overrideprivatevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 294 of file XMLSectionImportContext.cxx.
References bHasContent, SvXMLImportContext::GetImport(), OFFICE, Section, TEXT, xmloff::token::XML_DDE_SOURCE, XML_ELEMENT, xmloff::token::XML_SECTION_SOURCE, XMLOFF_WARN_UNKNOWN_ELEMENT, and xSectionPropertySet.
|
overrideprivatevirtual |
endFastElement is called before a context will be destructed, but after an elements context has been parsed.
It may be used for actions that require virtual methods. The default is to do nothing.
Reimplemented from SvXMLImportContext.
Definition at line 272 of file XMLSectionImportContext.cxx.
References bHasContent, and SvXMLImportContext::GetImport().
|
private |
Definition at line 195 of file XMLSectionImportContext.cxx.
References aSequence, bCondOK, bIsCurrentlyVisible, bIsCurrentlyVisibleOK, bIsVisible, bProtect, bSequenceOK, bValid, sax_fastparser::castToFastAttributeList(), sax::Converter::convertBool(), comphelper::Base64::decode(), SvXMLImportContext::GetImport(), xmloff::token::IsXMLToken(), sCond, sName, sStyleName, sXmlId, TEXT, xmloff::token::XML_CONDITION, xmloff::token::XML_DISPLAY, XML_ELEMENT, xmloff::token::XML_ID, xmloff::token::XML_IS_HIDDEN, xmloff::token::XML_NAME, XML_NAMESPACE_OOOW, xmloff::token::XML_NONE, xmloff::token::XML_PROTECT, xmloff::token::XML_PROTECTED, xmloff::token::XML_PROTECTION_KEY, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_TRUE, and XMLOFF_WARN_UNKNOWN.
Referenced by startFastElement().
|
overrideprivatevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 75 of file XMLSectionImportContext.cxx.
References Any, aSequence, bCondOK, bIsCurrentlyVisible, bIsCurrentlyVisibleOK, bIsVisible, bProtect, bSequenceOK, bValid, XMLPropStyleContext::FillPropertySet(), SvXMLImportContext::GetImport(), ProcessAttributes(), sCond, sName, sStyleName, sXmlId, TOKEN_MASK, xFactory, xmloff::token::XML_INDEX_TITLE, xmloff::token::XML_SECTION, and xSectionPropertySet.
|
private |
Definition at line 48 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 50 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 57 of file XMLSectionImportContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 54 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 55 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 51 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 49 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 53 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 52 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 47 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 46 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 45 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
Definition at line 44 of file XMLSectionImportContext.hxx.
Referenced by ProcessAttributes(), and startFastElement().
|
private |
TextSection (as XPropertySet) for passing down to data source elements.
Definition at line 42 of file XMLSectionImportContext.hxx.
Referenced by createFastChildContext(), and startFastElement().