diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-10-06 16:04:25 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-10-13 00:22:38 +0200 |
commit | 3cbb6e73ecbff5d83be817c0dab680c5d925c6fa (patch) | |
tree | 3a37575996ed1dea994de02a22abcb03fc055cb2 /sd | |
parent | 2ea531c0578bb7f0a34ec7de0aaea595e0387928 (diff) |
SmartArt: export text rotation in the PPTX
Change-Id: I74bfc172fe7434d14de468ecfd3412636e53780c
Reviewed-on: https://gerrit.libreoffice.org/43202
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sd')
-rwxr-xr-x | sd/qa/unit/data/pptx/smartart-rotation2.pptx | bin | 0 -> 43658 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/smartart-rotation2.pptx b/sd/qa/unit/data/pptx/smartart-rotation2.pptx Binary files differnew file mode 100755 index 000000000000..e1c4493a7407 --- /dev/null +++ b/sd/qa/unit/data/pptx/smartart-rotation2.pptx diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 1ba4f1362d23..acbeaa7142bb 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -119,6 +119,7 @@ public: void testTdf112647(); void testGroupRotation(); void testTdf104788(); + void testSmartartRotation2(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -163,6 +164,7 @@ public: CPPUNIT_TEST(testTdf112647); CPPUNIT_TEST(testGroupRotation); CPPUNIT_TEST(testTdf104788); + CPPUNIT_TEST(testSmartartRotation2); CPPUNIT_TEST_SUITE_END(); @@ -1238,6 +1240,17 @@ void SdOOXMLExportTest2::testTdf104788() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testSmartartRotation2() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/smartart-rotation2.pptx"), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:grpSp/p:sp[3]/p:txBody/a:bodyPr", "rot", "10800000"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |