diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-29 08:19:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-29 11:29:48 +0200 |
commit | 97123add76b743013fc5c222387feb4b9c13daf2 (patch) | |
tree | c2cfddbe8d2aad611adef65cbbb33899cada7eac /include | |
parent | 19fa853ce12136b5c14e0c5a0aa906c296b75388 (diff) |
tdf#135316 share themePtr and ShapeFilterBase across all shapes
.. in a document.
Shavves 20% off my load time.
Change-Id: I8101b4d229485ebdef0c1f72f856e7cda43559d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118045
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/shape/ShapeContextHandler.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/oox/shape/ShapeContextHandler.hxx b/include/oox/shape/ShapeContextHandler.hxx index 5655cc25acf2..39549c5d33af 100644 --- a/include/oox/shape/ShapeContextHandler.hxx +++ b/include/oox/shape/ShapeContextHandler.hxx @@ -50,8 +50,7 @@ class OOX_DLLPUBLIC ShapeContextHandler: public ::cppu::WeakImplHelper< css::xml::sax::XFastContextHandler > { public: - explicit ShapeContextHandler - (css::uno::Reference< css::uno::XComponentContext > const & context); + explicit ShapeContextHandler(const rtl::Reference<ShapeFilterBase>& xFilterBase); virtual ~ShapeContextHandler() override; @@ -108,6 +107,9 @@ public: void setGraphicMapper(css::uno::Reference<css::graphic::XGraphicMapper> const & rGraphicMapper); + void setTheme(const oox::drawingml::ThemePtr& pTheme) { mpThemePtr = pTheme; } + const oox::drawingml::ThemePtr& getTheme() { return mpThemePtr; } + private: ShapeContextHandler(ShapeContextHandler const &) = delete; void operator =(ShapeContextHandler const &) = delete; |