diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-06 09:35:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-06 11:00:27 +0100 |
commit | 32df28ba6c81a9ff29dfbeb39f2d83917dd69b33 (patch) | |
tree | 757796780bfe25e98a8c5fcc8802ab480add0843 /xmloff | |
parent | 0b5e4ce50b224a182904ceb29f26e3ace9b0a365 (diff) |
fastparser in XMLTextFrameContext_Impl
Change-Id: I69ca9141ccbedeb92909c782dcacd791d3517c2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107276
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLTextFrameContext.cxx | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx index b764d59ca4f6..efa08da145f7 100644 --- a/xmloff/source/text/XMLTextFrameContext.cxx +++ b/xmloff/source/text/XMLTextFrameContext.cxx @@ -404,10 +404,6 @@ public: virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override; - SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, - const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override; - void SetHyperlink( const OUString& rHRef, const OUString& rName, const OUString& rTargetFrameName, @@ -1219,23 +1215,19 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > XMLTextFrameContext_Im return pEContext; } } - return nullptr; -} - -SvXMLImportContextRef XMLTextFrameContext_Impl::CreateChildContext( - sal_uInt16 nPrefix, - const OUString& rLocalName, - const Reference< XAttributeList > & xAttrList ) -{ - SvXMLImportContext *pContext = nullptr; if( xOldTextCursor.is() ) // text-box - pContext = GetImport().GetTextImport()->CreateTextChildContext( - GetImport(), nPrefix, rLocalName, xAttrList, + { + auto p = GetImport().GetTextImport()->CreateTextChildContext( + GetImport(), nElement, xAttrList, XMLTextType::TextBox ); + if (p) + return p; + } + XMLOFF_WARN_UNKNOWN_ELEMENT("xmloff", nElement); - return pContext; + return nullptr; } void XMLTextFrameContext_Impl::characters( const OUString& rChars ) |