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

Import index entry templates. More...

#include <XMLIndexTemplateContext.hxx>

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

Public Member Functions

template<typename EnumT >
 XMLIndexTemplateContext (SvXMLImport &rImport, css::uno::Reference< css::beans::XPropertySet > &rPropSet, const SvXMLEnumMapEntry< EnumT > *aLevelNameMap, enum ::xmloff::token::XMLTokenEnum eLevelAttrName, const char **aLevelStylePropNameMap, const bool *aAllowedTokenTypes, bool bTOC_=false)
 
 XMLIndexTemplateContext (SvXMLImport &rImport, css::uno::Reference< css::beans::XPropertySet > &rPropSet, const SvXMLEnumMapEntry< sal_uInt16 > *aLevelNameMap, enum ::xmloff::token::XMLTokenEnum eLevelAttrName, const char **aLevelStylePropNameMap, const bool *aAllowedTokenTypes, bool bTOC)
 
virtual ~XMLIndexTemplateContext () override
 
void addTemplateEntry (const css::beans::PropertyValues &aValues)
 add template; to be called by child template entry contexts More...
 
- 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
 

Protected 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 > &xAttrList) override
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Private Attributes

::std::vector< css::beans::PropertyValuesaValueVector
 
OUString sStyleName
 
const SvXMLEnumMapEntry< sal_uInt16 > * pOutlineLevelNameMap
 
enum::xmloff::token::XMLTokenEnum eOutlineLevelAttrName
 
const char ** pOutlineLevelStylePropMap
 
const bool * pAllowedTokenTypesMap
 
sal_Int32 nOutlineLevel
 
bool bStyleNameOK
 
bool bOutlineLevelOK
 
bool bTOC
 
css::uno::Reference< css::beans::XPropertySet > & rPropertySet
 

Detailed Description

Import index entry templates.

Definition at line 64 of file XMLIndexTemplateContext.hxx.

Constructor & Destructor Documentation

◆ XMLIndexTemplateContext() [1/2]

template<typename EnumT >
XMLIndexTemplateContext::XMLIndexTemplateContext ( SvXMLImport rImport,
css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const SvXMLEnumMapEntry< EnumT > *  aLevelNameMap,
enum ::xmloff::token::XMLTokenEnum  eLevelAttrName,
const char **  aLevelStylePropNameMap,
const bool *  aAllowedTokenTypes,
bool  bTOC_ = false 
)
inline

Definition at line 86 of file XMLIndexTemplateContext.hxx.

◆ XMLIndexTemplateContext() [2/2]

XMLIndexTemplateContext::XMLIndexTemplateContext ( SvXMLImport rImport,
css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const SvXMLEnumMapEntry< sal_uInt16 > *  aLevelNameMap,
enum ::xmloff::token::XMLTokenEnum  eLevelAttrName,
const char **  aLevelStylePropNameMap,
const bool *  aAllowedTokenTypes,
bool  bTOC 
)

◆ ~XMLIndexTemplateContext()

XMLIndexTemplateContext::~XMLIndexTemplateContext ( )
overridevirtual

Definition at line 85 of file XMLIndexTemplateContext.cxx.

Member Function Documentation

◆ addTemplateEntry()

void XMLIndexTemplateContext::addTemplateEntry ( const css::beans::PropertyValues aValues)

add template; to be called by child template entry contexts

Definition at line 90 of file XMLIndexTemplateContext.cxx.

References aValueVector.

Referenced by XMLIndexSimpleEntryContext::endFastElement().

◆ createFastChildContext()

css::uno::Reference< css::xml::sax::XFastContextHandler > XMLIndexTemplateContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

◆ endFastElement()

void XMLIndexTemplateContext::endFastElement ( sal_Int32  Element)
overrideprotectedvirtual

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 126 of file XMLIndexTemplateContext.cxx.

References Any, aValueVector, bOutlineLevelOK, bStyleNameOK, DBG_ASSERT, SvXMLImportContext::GetImport(), nCount, nOutlineLevel, pOutlineLevelStylePropMap, rPropertySet, sStyleName, and TEXT_PARAGRAPH.

◆ startFastElement()

void XMLIndexTemplateContext::startFastElement ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

Member Data Documentation

◆ aValueVector

::std::vector< css::beans::PropertyValues > XMLIndexTemplateContext::aValueVector
private

Definition at line 67 of file XMLIndexTemplateContext.hxx.

Referenced by addTemplateEntry(), and endFastElement().

◆ bOutlineLevelOK

bool XMLIndexTemplateContext::bOutlineLevelOK
private

Definition at line 78 of file XMLIndexTemplateContext.hxx.

Referenced by endFastElement(), and startFastElement().

◆ bStyleNameOK

bool XMLIndexTemplateContext::bStyleNameOK
private

Definition at line 77 of file XMLIndexTemplateContext.hxx.

Referenced by endFastElement(), and startFastElement().

◆ bTOC

bool XMLIndexTemplateContext::bTOC
private

Definition at line 79 of file XMLIndexTemplateContext.hxx.

Referenced by createFastChildContext().

◆ eOutlineLevelAttrName

enum::xmloff::token::XMLTokenEnum XMLIndexTemplateContext::eOutlineLevelAttrName
private

Definition at line 72 of file XMLIndexTemplateContext.hxx.

Referenced by startFastElement().

◆ nOutlineLevel

sal_Int32 XMLIndexTemplateContext::nOutlineLevel
private

Definition at line 76 of file XMLIndexTemplateContext.hxx.

Referenced by endFastElement(), and startFastElement().

◆ pAllowedTokenTypesMap

const bool* XMLIndexTemplateContext::pAllowedTokenTypesMap
private

Definition at line 74 of file XMLIndexTemplateContext.hxx.

Referenced by createFastChildContext().

◆ pOutlineLevelNameMap

const SvXMLEnumMapEntry<sal_uInt16>* XMLIndexTemplateContext::pOutlineLevelNameMap
private

Definition at line 71 of file XMLIndexTemplateContext.hxx.

Referenced by startFastElement().

◆ pOutlineLevelStylePropMap

const char** XMLIndexTemplateContext::pOutlineLevelStylePropMap
private

Definition at line 73 of file XMLIndexTemplateContext.hxx.

Referenced by endFastElement().

◆ rPropertySet

css::uno::Reference<css::beans::XPropertySet>& XMLIndexTemplateContext::rPropertySet
private

Definition at line 82 of file XMLIndexTemplateContext.hxx.

Referenced by endFastElement().

◆ sStyleName

OUString XMLIndexTemplateContext::sStyleName
private

Definition at line 69 of file XMLIndexTemplateContext.hxx.

Referenced by endFastElement(), and startFastElement().


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