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, sal_uInt16 nPrfx, const OUString &rLocalName, 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, sal_uInt16 nPrfx, const OUString &rLocalName, 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
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
 

Protected 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...
 
- 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 65 of file XMLIndexTemplateContext.hxx.

Constructor & Destructor Documentation

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

Definition at line 87 of file XMLIndexTemplateContext.hxx.

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

Definition at line 88 of file XMLIndexTemplateContext.cxx.

Member Function Documentation

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

add template; to be called by child template entry contexts

Definition at line 93 of file XMLIndexTemplateContext.cxx.

References aValueVector.

Referenced by XMLIndexSimpleEntryContext::EndElement().

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

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

References bTOC, SvXMLUnitConverter::convertEnum(), SvXMLImportContext::GetImport(), nToken, pAllowedTokenTypesMap, XML_NAMESPACE_LO_EXT, and XML_NAMESPACE_TEXT.

void XMLIndexTemplateContext::EndElement ( )
overrideprotectedvirtual

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

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

void XMLIndexTemplateContext::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overrideprotectedvirtual

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

References bOutlineLevelOK, bStyleNameOK, SvXMLUnitConverter::convertEnum(), eOutlineLevelAttrName, SvXMLImportContext::GetImport(), SvXMLImport::GetNamespaceMap(), xmloff::token::IsXMLToken(), nLength, nOutlineLevel, pOutlineLevelNameMap, sStyleName, XML_NAMESPACE_TEXT, xmloff::token::XML_STYLE_NAME, and xmloff::token::XML_TOKEN_INVALID.

Member Data Documentation

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

Definition at line 68 of file XMLIndexTemplateContext.hxx.

Referenced by addTemplateEntry(), and EndElement().

bool XMLIndexTemplateContext::bOutlineLevelOK
private

Definition at line 79 of file XMLIndexTemplateContext.hxx.

Referenced by EndElement(), and StartElement().

bool XMLIndexTemplateContext::bStyleNameOK
private

Definition at line 78 of file XMLIndexTemplateContext.hxx.

Referenced by EndElement(), and StartElement().

bool XMLIndexTemplateContext::bTOC
private

Definition at line 80 of file XMLIndexTemplateContext.hxx.

Referenced by CreateChildContext().

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

Definition at line 73 of file XMLIndexTemplateContext.hxx.

Referenced by StartElement().

sal_Int32 XMLIndexTemplateContext::nOutlineLevel
private

Definition at line 77 of file XMLIndexTemplateContext.hxx.

Referenced by EndElement(), and StartElement().

const bool* XMLIndexTemplateContext::pAllowedTokenTypesMap
private

Definition at line 75 of file XMLIndexTemplateContext.hxx.

Referenced by CreateChildContext().

const SvXMLEnumMapEntry<sal_uInt16>* XMLIndexTemplateContext::pOutlineLevelNameMap
private

Definition at line 72 of file XMLIndexTemplateContext.hxx.

Referenced by StartElement().

const char** XMLIndexTemplateContext::pOutlineLevelStylePropMap
private

Definition at line 74 of file XMLIndexTemplateContext.hxx.

Referenced by EndElement().

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

Definition at line 83 of file XMLIndexTemplateContext.hxx.

Referenced by EndElement().

OUString XMLIndexTemplateContext::sStyleName
private

Definition at line 70 of file XMLIndexTemplateContext.hxx.

Referenced by EndElement(), and StartElement().


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