diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-04 11:35:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-04 11:58:33 +0100 |
commit | 15c5da78ec773b7b59a092f84dca02de5931e634 (patch) | |
tree | 9226248afc3fe2e48075cca002e5fd5c59e3bd2a /sc/source/filter/xml/XMLTableShapesContext.cxx | |
parent | 44a3a3a53db57398efa2ec4db026e4ebda086dde (diff) |
fastparser in CreateGroupChildContext
Change-Id: I3e3e6785fdedb27353e4d97a9a2bea71c6f2b24a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107189
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/xml/XMLTableShapesContext.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLTableShapesContext.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sc/source/filter/xml/XMLTableShapesContext.cxx b/sc/source/filter/xml/XMLTableShapesContext.cxx index f645ee09e89a..866d6107d591 100644 --- a/sc/source/filter/xml/XMLTableShapesContext.cxx +++ b/sc/source/filter/xml/XMLTableShapesContext.cxx @@ -33,23 +33,21 @@ ScXMLTableShapesContext::~ScXMLTableShapesContext() { } -SvXMLImportContextRef ScXMLTableShapesContext::CreateChildContext( sal_uInt16 nPrefix, - const OUString& rLName, - const css::uno::Reference<css::xml::sax::XAttributeList>& xAttrList ) +uno::Reference< xml::sax::XFastContextHandler > ScXMLTableShapesContext::createFastChildContext( + sal_Int32 nElement, + const uno::Reference< xml::sax::XFastAttributeList >& xAttrList ) { - SvXMLImportContext *pContext = nullptr; - ScXMLImport& rXMLImport(GetScImport()); uno::Reference<drawing::XShapes> xShapes (rXMLImport.GetTables().GetCurrentXShapes()); if (xShapes.is()) { XMLTableShapeImportHelper* pTableShapeImport(static_cast<XMLTableShapeImportHelper*>(rXMLImport.GetShapeImport().get())); pTableShapeImport->SetOnTable(true); - pContext = rXMLImport.GetShapeImport()->CreateGroupChildContext( - rXMLImport, nPrefix, rLName, xAttrList, xShapes); + return GetImport().GetShapeImport()->CreateGroupChildContext( + rXMLImport, nElement, xAttrList, xShapes); } - - return pContext; + XMLOFF_WARN_UNKNOWN_ELEMENT("sc", nElement); + return nullptr; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |