diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-05-11 20:17:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-05-12 08:07:30 +0200 |
commit | 109debb0ca0c864296ad7f557cfbc2b05c9ec3c2 (patch) | |
tree | 29df8550307fef20f39be2b1dff6a793e48a17e7 /oox/qa/unit | |
parent | d45315c8eb91862958b29ead09cec58e03a80096 (diff) |
tdf#148961 sd theme: add PPTX export for shape fill color effects
Which allows taking the fill color theme index from the model even in
case there are effects.
Previously effects meant reading from the grab-bag, and only the
no-effect case read the color theme index from the doc model.
Change-Id: Ib50c3128b971a388f14ad721ed7f73043916a736
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134208
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'oox/qa/unit')
-rw-r--r-- | oox/qa/unit/data/refer-to-theme-shape-fill.odp | bin | 15506 -> 14638 bytes | |||
-rw-r--r-- | oox/qa/unit/export.cxx | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/oox/qa/unit/data/refer-to-theme-shape-fill.odp b/oox/qa/unit/data/refer-to-theme-shape-fill.odp Binary files differindex b12772e111e3..3a32aa71690a 100644 --- a/oox/qa/unit/data/refer-to-theme-shape-fill.odp +++ b/oox/qa/unit/data/refer-to-theme-shape-fill.odp diff --git a/oox/qa/unit/export.cxx b/oox/qa/unit/export.cxx index 4c6c013dcb81..90089a994fa2 100644 --- a/oox/qa/unit/export.cxx +++ b/oox/qa/unit/export.cxx @@ -413,6 +413,11 @@ CPPUNIT_TEST_FIXTURE(Test, testReferToThemeShapeFill) std::unique_ptr<SvStream> pStream = parseExportStream(getTempFile(), "ppt/slides/slide1.xml"); xmlDocUniquePtr pXmlDoc = parseXmlStream(pStream.get()); assertXPath(pXmlDoc, "//p:sp[1]/p:spPr/a:solidFill/a:schemeClr", "val", "accent1"); + // Without the accompanying fix in place, this test would have failed with: + // - XPath '//p:sp[1]/p:spPr/a:solidFill/a:schemeClr/a:lumMod' number of nodes is incorrect + // i.e. the effects of the themed color were lost. + assertXPath(pXmlDoc, "//p:sp[1]/p:spPr/a:solidFill/a:schemeClr/a:lumMod", "val", "40000"); + assertXPath(pXmlDoc, "//p:sp[1]/p:spPr/a:solidFill/a:schemeClr/a:lumOff", "val", "60000"); } CPPUNIT_TEST_FIXTURE(Test, testTdf146690_endParagraphRunPropertiesNewLinesTextSize) |