From c1470e15bd0643be8d91aaf6a0d25c78867d0b3e Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 9 Jun 2023 23:34:24 +0900 Subject: oox: remove code duplication and add getComplexColor to oox::Color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9cfbc851d4f303a5a8c92183f01cb5b6545b7984 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152800 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/oox/drawingml/color.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/oox/drawingml') diff --git a/include/oox/drawingml/color.hxx b/include/oox/drawingml/color.hxx index 75812c200c28..245e655d7c78 100644 --- a/include/oox/drawingml/color.hxx +++ b/include/oox/drawingml/color.hxx @@ -30,6 +30,7 @@ #include #include #include +#include namespace oox { class GraphicHelper; } @@ -117,6 +118,8 @@ public: /// Compares this color with rOther. bool equals(const Color& rOther, const GraphicHelper& rGraphicHelper, ::Color nPhClr) const; + model::ComplexColor getComplexColor() const; + private: /** Internal helper for getColor(). */ void setResolvedRgb( ::Color nRgb ) const; -- cgit