LibreOffice Module xmloff (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XMLSectionImportContext Class Reference

Import text sections. More...

#include <XMLSectionImportContext.hxx>

Inheritance diagram for XMLSectionImportContext:
[legend]
Collaboration diagram for XMLSectionImportContext:
[legend]

Public Member Functions

 XMLSectionImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLocalName)
 
virtual ~XMLSectionImportContext () override
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. 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
 
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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override throw ()
 
virtual void SAL_CALL release () final override throw ()
 
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 StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 Create a children element context. More...
 
void ProcessAttributes (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetxSectionPropertySet
 TextSection (as XPropertySet) for passing down to data source elements. More...
 
OUString sXmlId
 
OUString sStyleName
 
OUString sName
 
OUString sCond
 
css::uno::Sequence< sal_Int8aSequence
 
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
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Import text sections.

This context may also be used for index header sections. The differentiates its behaviour based on GetLocalName().

Definition at line 40 of file XMLSectionImportContext.hxx.

Constructor & Destructor Documentation

XMLSectionImportContext::XMLSectionImportContext ( SvXMLImport rImport,
sal_uInt16  nPrfx,
const OUString &  rLocalName 
)

Definition at line 88 of file XMLSectionImportContext.cxx.

XMLSectionImportContext::~XMLSectionImportContext ( )
overridevirtual

Definition at line 104 of file XMLSectionImportContext.cxx.

Member Function Documentation

SvXMLImportContextRef XMLSectionImportContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overrideprivatevirtual

Create a children element context.

By default, the import's CreateContext method is called to create a new default context.

Reimplemented from SvXMLImportContext.

Definition at line 332 of file XMLSectionImportContext.cxx.

References bHasContent, SvXMLImportContext::GetImport(), SvXMLImport::GetTextImport(), xmloff::token::IsXMLToken(), Section, xmloff::token::XML_DDE_SOURCE, XML_NAMESPACE_OFFICE, XML_NAMESPACE_TEXT, xmloff::token::XML_SECTION_SOURCE, and xSectionPropertySet.

void XMLSectionImportContext::EndElement ( )
overrideprivatevirtual

EndElement 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 310 of file XMLSectionImportContext.cxx.

References bHasContent, SvXMLImportContext::GetImport(), and SvXMLImport::GetTextImport().

void XMLSectionImportContext::ProcessAttributes ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
private
void XMLSectionImportContext::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overrideprivatevirtual

StartElement is called after a context has been constructed and before an elements context is parsed.

It may be used for actions that require virtual methods. The default is to do nothing.

Reimplemented from SvXMLImportContext.

Definition at line 108 of file XMLSectionImportContext.cxx.

References Any, aSequence, bCondOK, bIsCurrentlyVisible, bIsCurrentlyVisibleOK, bIsVisible, bProtect, bSequenceOK, bValid, XMLPropStyleContext::FillPropertySet(), SvXMLImportContext::GetImport(), SvXMLImportContext::GetLocalName(), SvXMLImport::GetTextImport(), xmloff::token::IsXMLToken(), ProcessAttributes(), sCond, SvXMLImport::SetXmlId(), sName, sStyleName, sXmlId, xFactory, xmloff::token::XML_INDEX_TITLE, xmloff::token::XML_SECTION, and xSectionPropertySet.

Member Data Documentation

css::uno::Sequence<sal_Int8> XMLSectionImportContext::aSequence
private

Definition at line 49 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bCondOK
private

Definition at line 51 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bHasContent
private

Definition at line 58 of file XMLSectionImportContext.hxx.

Referenced by CreateChildContext(), and EndElement().

bool XMLSectionImportContext::bIsCurrentlyVisible
private

Definition at line 55 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bIsCurrentlyVisibleOK
private

Definition at line 56 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bIsVisible
private

Definition at line 52 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bProtect
private

Definition at line 50 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bSequenceOK
private

Definition at line 54 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

bool XMLSectionImportContext::bValid
private

Definition at line 53 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

OUString XMLSectionImportContext::sCond
private

Definition at line 48 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

OUString XMLSectionImportContext::sName
private

Definition at line 47 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

OUString XMLSectionImportContext::sStyleName
private

Definition at line 46 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

OUString XMLSectionImportContext::sXmlId
private

Definition at line 45 of file XMLSectionImportContext.hxx.

Referenced by ProcessAttributes(), and StartElement().

css::uno::Reference<css::beans::XPropertySet> XMLSectionImportContext::xSectionPropertySet
private

TextSection (as XPropertySet) for passing down to data source elements.

Definition at line 43 of file XMLSectionImportContext.hxx.

Referenced by CreateChildContext(), and StartElement().


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