LibreOffice Module xmloff (master) 1
|
Import index entry templates. More...
#include <XMLIndexTemplateContext.hxx>
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 | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Private Attributes | |
::std::vector< css::beans::PropertyValues > | aValueVector |
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 |
Import index entry templates.
Definition at line 64 of file XMLIndexTemplateContext.hxx.
|
inline |
Definition at line 86 of file XMLIndexTemplateContext.hxx.
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 | ||
) |
|
overridevirtual |
Definition at line 85 of file XMLIndexTemplateContext.cxx.
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().
|
overrideprotectedvirtual |
Reimplemented from SvXMLImportContext.
Definition at line 197 of file XMLIndexTemplateContext.cxx.
References aTemplateTokenTypeMap, bTOC, SvXMLUnitConverter::convertEnum(), SvXMLImportContext::GetImport(), IsTokenInNamespace(), nToken, pAllowedTokenTypesMap, XML_NAMESPACE_LO_EXT, and XML_NAMESPACE_TEXT.
|
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.
|
overrideprotectedvirtual |
Reimplemented from SvXMLImportContext.
Definition at line 97 of file XMLIndexTemplateContext.cxx.
References bOutlineLevelOK, bStyleNameOK, sax_fastparser::castToFastAttributeList(), SvXMLUnitConverter::convertEnum(), eOutlineLevelAttrName, nOutlineLevel, pOutlineLevelNameMap, sStyleName, TEXT, XML_ELEMENT, and xmloff::token::XML_STYLE_NAME.
|
private |
Definition at line 67 of file XMLIndexTemplateContext.hxx.
Referenced by addTemplateEntry(), and endFastElement().
|
private |
Definition at line 78 of file XMLIndexTemplateContext.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 77 of file XMLIndexTemplateContext.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 79 of file XMLIndexTemplateContext.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 72 of file XMLIndexTemplateContext.hxx.
Referenced by startFastElement().
|
private |
Definition at line 76 of file XMLIndexTemplateContext.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 74 of file XMLIndexTemplateContext.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 71 of file XMLIndexTemplateContext.hxx.
Referenced by startFastElement().
|
private |
Definition at line 73 of file XMLIndexTemplateContext.hxx.
Referenced by endFastElement().
|
private |
Definition at line 82 of file XMLIndexTemplateContext.hxx.
Referenced by endFastElement().
|
private |
Definition at line 69 of file XMLIndexTemplateContext.hxx.
Referenced by endFastElement(), and startFastElement().