diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-29 11:19:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-07 08:52:49 +0100 |
commit | 5080bb930de3ecfce8ab78bbd23a9d48c2f2bfa0 (patch) | |
tree | 9f92d184627177dbd83dedda40d4a4abb531381e /include/xmloff/shapeimport.hxx | |
parent | Update git submodules (diff) | |
download | core-5080bb930de3ecfce8ab78bbd23a9d48c2f2bfa0.tar.gz core-5080bb930de3ecfce8ab78bbd23a9d48c2f2bfa0.zip |
convert SvXMLImport to fastparser, drop slowparser paths
Change-Id: I0f880a7680373043fecf083cdf4de8b0bb7041a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103775
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff/shapeimport.hxx')
-rw-r--r-- | include/xmloff/shapeimport.hxx | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/include/xmloff/shapeimport.hxx b/include/xmloff/shapeimport.hxx index 0f841acfd601..54e1407efa9d 100644 --- a/include/xmloff/shapeimport.hxx +++ b/include/xmloff/shapeimport.hxx @@ -251,29 +251,24 @@ public: virtual ~XMLShapeImportHelper() override; - SvXMLShapeContext* CreateGroupChildContext( - SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, - css::uno::Reference< css::drawing::XShapes > const & rShapes, - bool bTemporaryShape = false); - SvXMLShapeContext* CreateGroupChildContext( + static SvXMLShapeContext* CreateGroupChildContext( SvXMLImport& rImport, sal_Int32 nElement, - const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, css::uno::Reference< css::drawing::XShapes > const & rShapes, bool bTemporaryShape = false); - SvXMLShapeContext* CreateFrameChildContext( - SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, + static SvXMLShapeContext* CreateFrameChildContext( + SvXMLImport& rImport, sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, css::uno::Reference< css::drawing::XShapes > const & rShapes, - const css::uno::Reference< css::xml::sax::XAttributeList >& xFrameAttrList); - static SvXMLImportContextRef CreateFrameChildContext( - SvXMLImportContext *pThisContext, sal_uInt16 nPrefix, const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ); - - SvXMLShapeContext* Create3DSceneChildContext( - SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xFrameAttrList); + static css::uno::Reference< css::xml::sax::XFastContextHandler > CreateFrameChildContext( + SvXMLImportContext *pThisContext, sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ); + + static SvXMLShapeContext* Create3DSceneChildContext( + SvXMLImport& rImport, sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, css::uno::Reference< css::drawing::XShapes > const & rShapes); const SvXMLTokenMap& GetGroupShapeElemTokenMap(); @@ -299,7 +294,7 @@ public: // shape to the given XShapes. virtual void addShape( css::uno::Reference< css::drawing::XShape >& rShape, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, css::uno::Reference< css::drawing::XShapes >& rShapes); // this function is called whenever the implementation classes have finished importing @@ -307,7 +302,7 @@ public: // all properties and styles are set. virtual void finishShape( css::uno::Reference< css::drawing::XShape >& rShape, - const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList, css::uno::Reference< css::drawing::XShapes >& rShapes); // tdf#127791 help function for group shape events |