From 1868dea877b0c956ee34e92afad59920e66cad3f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 17 Mar 2022 20:37:39 +0100 Subject: sd theme: add ODP import/export for shape fill color Refer to the 12 pre-defined colors by name + don't write the attribute for the case when there is no theme. Change-Id: I37c984b3371ec878a0d733977f5c937dce27c440 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131717 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- svx/source/table/cell.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'svx/source/table') diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index 8f1dbe55ddca..696710da6cd1 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -56,6 +56,7 @@ #include #include #include +#include #include @@ -1445,6 +1446,15 @@ PropertyState SAL_CALL Cell::getPropertyState( const OUString& PropertyName ) eState = PropertyState_DEFAULT_VALUE; } break; + case XATTR_FILLCOLOR: + if (pMap->nMemberId == MID_COLOR_THEME_INDEX) + { + const XFillColorItem* pColor = rSet.GetItem(pMap->nWID); + if (pColor->GetThemeColor().GetThemeIndex() == -1) + { + eState = PropertyState_DEFAULT_VALUE; + } + } } } } -- cgit v1.2.3