From 56cd3b2b5d395165cd4add2f46ac4ba25a4ea4af Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 Feb 2022 16:14:03 +0200 Subject: tdf#64914 slow opening large chart shaves 2% off the load time by avoid the cost of comphelper::getFromUnoTunnel Change-Id: I9d0438bd0ad3cf753d34fe181481f3a57193651c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130284 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svx/unoshape.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/svx') diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index 427904d87c18..61f33f46f9a1 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -424,6 +424,8 @@ public: { SvxShape::acquire(); } virtual void SAL_CALL release() noexcept override { SvxShape::release(); } + + virtual void addShape(SvxShape& rShape) = 0; }; /*********************************************************************** @@ -437,6 +439,7 @@ private: rtl::Reference< SvxDrawPage> mxPage; void addUnoShape( const css::uno::Reference< css::drawing::XShape >& xShape, size_t nPos ); + void addShape(SvxShape& rShape, size_t nPos); public: SvxShapeGroup(SdrObject* pObj,SvxDrawPage* pDrawPage); @@ -483,6 +486,8 @@ public: // XTypeProvider virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override; + + virtual void addShape(SvxShape& rShape) final override; }; /*********************************************************************** @@ -710,6 +715,8 @@ public: // XTypeProvider virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override; + + virtual void addShape(SvxShape& rShape) override final; }; /*********************************************************************** -- cgit