oox: export satMod color transformation into themes
For more complete OOXML export. satMod (saturation modulation) of colors was already imported and stored, but didn't get exported. Change-Id: I4dd2e58382749c3b3a47647399e48517a41393bf Signed-off-by: Aron Budea <aron.budea@collabora.com> Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/5054 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 40aaaeff1d2ff4f6ba5cd2c8fc80356d38996e03) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208066 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -162,6 +162,7 @@ namespace
|
||||
{
|
||||
constexpr auto constTransformTypeTokenMap
|
||||
= frozen::make_unordered_map<model::TransformationType, sal_Int32>({
|
||||
{ model::TransformationType::SatMod, XML_satMod },
|
||||
{ model::TransformationType::Tint, XML_tint },
|
||||
{ model::TransformationType::Shade, XML_shade },
|
||||
{ model::TransformationType::LumMod, XML_lumMod },
|
||||
|
||||
@@ -83,6 +83,18 @@ CPPUNIT_TEST_FIXTURE(Test, Test_TextEffects_GlowShadowReflection)
|
||||
CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[7]/w:rPr/w14:reflection", "kx").match("0"));
|
||||
CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[7]/w:rPr/w14:reflection", "ky").match("0"));
|
||||
CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[7]/w:rPr/w14:reflection", "algn").match("bl"));
|
||||
|
||||
// Some tests on exporting theme color transformations, not specific to w14
|
||||
pXmlDoc = parseExport(u"word/theme/theme1.xml"_ustr);
|
||||
CPPUNIT_ASSERT(pXmlDoc);
|
||||
OString sBasePath = "/a:theme/a:themeElements/a:fmtScheme/a:fillStyleLst"
|
||||
"/a:gradFill[1]/a:gsLst/a:gs[1]/a:schemeClr"_ostr;
|
||||
|
||||
/// Same values as in original theme1.xml must remain
|
||||
assertXPath(pXmlDoc, sBasePath, "val", u"phClr");
|
||||
assertXPath(pXmlDoc, sBasePath + "/a:lumMod", "val", u"110000");
|
||||
assertXPath(pXmlDoc, sBasePath + "/a:satMod", "val", u"105000");
|
||||
assertXPath(pXmlDoc, sBasePath + "/a:tint", "val", u"67000");
|
||||
}
|
||||
|
||||
CPPUNIT_TEST_FIXTURE(Test, Test_TextEffects_TextOutline)
|
||||
|
||||
Reference in New Issue
Block a user