summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-06-11 00:57:36 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-06-18 13:32:12 +0200
commit9e121f3a6b95dab7525aa1583f810b2b504ce1b3 (patch)
tree7b576ed8feb1d1b183d01ad72f80c99ed03a38ef /oox/source/drawingml
parentcd9afc213d768b9870c81c580fbb00282c0cf1c4 (diff)
ooxml: import and export background and fill theme colors props.
This adds support to import and export background and fill theme color properties. Change-Id: I0f40615fe2d06cdcb4f2f9752602fe2ec699c7b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152835 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/textcharacterproperties.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/oox/source/drawingml/textcharacterproperties.cxx b/oox/source/drawingml/textcharacterproperties.cxx
index 1217c19441ae..c3dde4889a64 100644
--- a/oox/source/drawingml/textcharacterproperties.cxx
+++ b/oox/source/drawingml/textcharacterproperties.cxx
@@ -216,7 +216,11 @@ void TextCharacterProperties::pushToPropMap( PropertyMap& rPropMap, const XmlFil
}
if (maHighlightColor.isUsed() && maHighlightColor.getTransparency() != 100)
- rPropMap.setProperty( PROP_CharBackColor, maHighlightColor.getColor( rFilter.getGraphicHelper() ));
+ {
+ rPropMap.setProperty(PROP_CharBackColor, maHighlightColor.getColor( rFilter.getGraphicHelper() ));
+ model::ComplexColor aComplexColor = maHighlightColor.getComplexColor();
+ rPropMap.setProperty(PROP_CharBackgroundComplexColor, model::color::createXComplexColor(aComplexColor));
+ }
else
rPropMap.setProperty( PROP_CharBackColor, sal_Int32(-1));
}