summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-12-12 21:13:07 +0900
committerTomaž Vajngerl <quikee@gmail.com>2022-12-26 08:55:14 +0000
commita6253e13e0f3f866ab47e4271db9a80d8cbce708 (patch)
treed6183d7797540c0af6e8db50b17f7142f16597a4 /include
parent4ee7e71d850315f5ae4c3b763b0e80e8d83a6454 (diff)
oox: set svx::Theme directly to a SdrPage when importing
Bypass the need to set the theme data (svx::Theme) throught UNO as multiple nested properties. Much more properties will be added to the svx::Theme and this will simplify handling a lot. Change-Id: I0b54628ff22c7c823a999de257fd5bb45e736bdb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143992 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/drawingml/clrscheme.hxx3
-rw-r--r--include/svx/ColorSets.hxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/oox/drawingml/clrscheme.hxx b/include/oox/drawingml/clrscheme.hxx
index a4f0b653441a..fd7662511a88 100644
--- a/include/oox/drawingml/clrscheme.hxx
+++ b/include/oox/drawingml/clrscheme.hxx
@@ -30,6 +30,7 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <tools/color.hxx>
+#include <svx/ColorSets.hxx>
namespace oox::drawingml {
@@ -94,6 +95,8 @@ public:
const OUString& GetName() const { return maName; }
void ToAny(css::uno::Any& rVal) const;
+ void fill(svx::ColorSet& rColorSet) const;
+
};
}
diff --git a/include/svx/ColorSets.hxx b/include/svx/ColorSets.hxx
index 71f12c2dbe71..692e683218e8 100644
--- a/include/svx/ColorSets.hxx
+++ b/include/svx/ColorSets.hxx
@@ -50,7 +50,7 @@ constexpr ThemeColorType convertToThemeColorType(sal_Int32 nIndex)
return static_cast<ThemeColorType>(nIndex);
}
-class ColorSet
+class SVXCORE_DLLPUBLIC ColorSet
{
OUString maColorSetName;
std::vector<Color> maColors;