diff options
author | Mark Hung <marklh9@gmail.com> | 2018-08-03 23:59:54 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-08-06 15:15:30 +0200 |
commit | a472d3352a61b51624aea480410789e3f547a9ca (patch) | |
tree | 0dce2c14ba914d0422e2a61f4b0e726c48d181cb /sd | |
parent | df1d4bd528027c60bcab2f2e0a87303610fad326 (diff) |
tdf#113822 handle letter-by-letter animations in pptx documents.
Unlike odp that has anim:iterate (IterateContainer) node,
both parallel time container and interate container appear
as p:par in ooxml so that we have to alter the node type
in the end. We also have to set the target of the iterate
container to make animation work.
Change-Id: Ic50b5f1d85716a67712ed1e812bcb0e7f25fb5a8
Reviewed-on: https://gerrit.libreoffice.org/58576
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/export-tests.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index e92d95f934c8..0e5b8f563df9 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -1108,7 +1108,14 @@ void SdExportTest::testTdf113822() xDocShRef = saveAndReload(xDocShRef.get(), ODP, &tempFile); xmlDocPtr pXmlDoc = parseExport(tempFile, "content.xml"); - assertXPath(pXmlDoc, "//anim:set[1]", "to", "solid"); + + // IterateContainer was created as ParallelTimeContainer before, so + // the iterate type is not set too. + assertXPath(pXmlDoc, "//anim:iterate", "iterate-type", "by-letter"); + // The target of the child animation nodes need to be in the iterate container. + assertXPath(pXmlDoc, "//anim:iterate", "targetElement", "id1"); + assertXPath(pXmlDoc, "//anim:iterate/anim:set", "attributeName", "text-underline"); + assertXPath(pXmlDoc, "//anim:iterate/anim:set", "to", "solid"); xDocShRef->DoClose(); } |