diff options
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: */ |