41 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList )
override;
56 sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & )
override
61 return new SvXMLSectionListContext(
GetImport());
67 if (nToken == XML_P ||
71 nToken == XML_SECTION ||
72 nToken == XML_INDEX_BODY ||
73 nToken == XML_INDEX_TITLE ||
74 nToken == XML_INSERTION ||
75 nToken == XML_DELETION)
76 return new SvXMLSectionListContext(
GetImport());
78 return new SwXMLParentContext(
GetImport());
85: SvXMLImport(rContext,
"")
86, m_rSectionList(rNewSectionList)
97 const css::uno::Reference< css::xml::sax::XFastAttributeList > & )
99 return new SwXMLParentContext(*
this);
102SvXMLSectionListContext::SvXMLSectionListContext(
SwXMLSectionList& rImport )
107css::uno::Reference<css::xml::sax::XFastContextHandler> SvXMLSectionListContext::createFastChildContext(
109 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList )
120 if (aIter.getToken() ==
XML_ELEMENT(TEXT, XML_NAME) ||
121 aIter.getToken() ==
XML_ELEMENT(TEXT_OOO, XML_NAME))
122 sName = aIter.toString();
123 if ( !
sName.isEmpty() )
124 GetImport().m_rSectionList.push_back(sName);
127 pContext =
new SvXMLSectionListContext(GetImport());
SvXMLImport & GetImport()
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
SwXMLSectionList(const css::uno::Reference< css::uno::XComponentContext > &rContext, std::vector< OUString > &rNewSectionList)
virtual ~SwXMLSectionList() noexcept override
virtual SvXMLImportContext * CreateFastContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
#define XML_ELEMENT(prefix, name)
constexpr bool IsTokenInNamespace(sal_Int32 nToken, sal_uInt16 nNamespacePrefix)
constexpr sal_Int32 TOKEN_MASK