summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-05-12 23:21:22 +0900
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-22 21:00:19 +0200
commitd2393c68262d09d50b5900e2d76e80bca2a1826f (patch)
tree902f6ab449e3615056dc98347d6ba8b951fc706a /include
parent5a61e6cb899ebce32228d5ee70332c3fcf303212 (diff)
sc: OOXML import of theme colors for char and background colors
Change-Id: I8209238927bb425e8e306352f1fa78d63378f005 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151707 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153445
Diffstat (limited to 'include')
-rw-r--r--include/oox/drawingml/color.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/oox/drawingml/color.hxx b/include/oox/drawingml/color.hxx
index 245e655d7c78..ea02ef8a03e4 100644
--- a/include/oox/drawingml/color.hxx
+++ b/include/oox/drawingml/color.hxx
@@ -37,6 +37,7 @@ namespace oox { class GraphicHelper; }
namespace oox::drawingml
{
+model::ThemeColorType schemeTokenToThemeColorType(sal_uInt32 nToken);
model::ThemeColorType schemeNameToThemeColorType(OUString const& rSchemeName);
class OOX_DLLPUBLIC Color
@@ -107,6 +108,13 @@ public:
sal_Int16 getLumMod() const;
sal_Int16 getLumOff() const;
+ model::ThemeColorType getThemeColorType() const
+ {
+ return meThemeColorType;
+ }
+
+ model::ComplexColor createComplexColor(const GraphicHelper& rGraphicHelper, sal_Int16 nPhClrTheme) const;
+
/** Returns the unaltered list of transformations for interoperability purposes */
const css::uno::Sequence< css::beans::PropertyValue >& getTransformations() const { return maInteropTransformations;}
@@ -160,8 +168,8 @@ private:
mutable sal_Int32 mnC2; /// Green, green%, saturation, or system default RGB.
mutable sal_Int32 mnC3; /// Blue, blue%, or luminance.
sal_Int32 mnAlpha; /// Alpha value (color opacity).
-
OUString msSchemeName; /// Scheme name from the a:schemeClr element for interoperability purposes
+ model::ThemeColorType meThemeColorType;
css::uno::Sequence< css::beans::PropertyValue >
maInteropTransformations; /// Unaltered list of transformations for interoperability purposes
};