diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2022-10-28 15:39:38 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2022-10-28 19:49:00 +0200 |
commit | 2406ba67c8c03b0d6a4adb81f1efc1609c8dfe8c (patch) | |
tree | b701c1d4260602b8f731bb901cc1194ae602477c /include/oox/shape/ShapeContextHandler.hxx | |
parent | f546f7573158e52359bbeae6194a83a1ff8ac52c (diff) |
tdf#54095 docx SmartArt import, apply theme text color
PPTShapeGroupContext uses method applyFontRefColor in importExtDrawings
to bring the theme text color to the shape text. The patch copies this
way to ShapeContextHandler, which is used for SmartArt in docx.
Change-Id: Ie0c0453d6a1fd73fbd4b65246aed9570646dc6f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141992
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'include/oox/shape/ShapeContextHandler.hxx')
-rw-r--r-- | include/oox/shape/ShapeContextHandler.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/oox/shape/ShapeContextHandler.hxx b/include/oox/shape/ShapeContextHandler.hxx index 239ff8ec63b8..42e884f27daa 100644 --- a/include/oox/shape/ShapeContextHandler.hxx +++ b/include/oox/shape/ShapeContextHandler.hxx @@ -21,6 +21,7 @@ #include <memory> #include <stack> #include <cppuhelper/implbase.hxx> +#include <oox/drawingml/color.hxx> #include <oox/drawingml/graphicshapecontext.hxx> #include <oox/core/fragmenthandler2.hxx> #include <oox/core/xmlfilterbase.hxx> @@ -151,8 +152,10 @@ private: css::uno::Reference<XFastContextHandler> const & getWpsContext(sal_Int32 nStartElement, sal_Int32 nElement); css::uno::Reference<XFastContextHandler> const & getWpgContext(sal_Int32 nElement); css::uno::Reference<XFastContextHandler> getContextHandler(sal_Int32 nElement = 0); -}; + void applyFontRefColor(const oox::drawingml::ShapePtr& pShape, + const oox::drawingml::Color& rFontRefColor); +}; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |