summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-11-09 10:44:30 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-11-09 11:00:57 +0100
commitb3120fd7c408ef0d2f35c2b0a905f5db65eaa294 (patch)
treed74344b4c085ad4e3d2c4bf90a76a7ea75b803e6 /sd
parentcom::sun::star->css in toolkit/ (diff)
downloadcore-b3120fd7c408ef0d2f35c2b0a905f5db65eaa294.tar.gz
core-b3120fd7c408ef0d2f35c2b0a905f5db65eaa294.zip
pptx: export "Turn around" and "Rochade" transition
Change-Id: Id984b9bf3b67e3bb1d8287819c28c23a0b8a2a61
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-epptooxml.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 5071f3ab4dca..7862bc236aa5 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -524,6 +524,7 @@ void PowerPointExport::WriteTransition( FSHelperPtr pFS )
sal_Int32 nTransition14 = 0;
const char* pDirection = NULL;
+ const char* pDirection14 = NULL;
const char* pOrientation = NULL;
const char* pThruBlk = NULL;
const char* pSpokes = NULL;
@@ -547,6 +548,18 @@ void PowerPointExport::WriteTransition( FSHelperPtr pFS )
{
switch(nTransitionSubtype)
{
+ case animations::TransitionSubType::TOPTOBOTTOM: // Turn around
+ nTransition = XML_fade;
+ nTransition14 = XML_flip;
+ pDirection14 = "l";
+ bOOXmlSpecificTransition = true;
+ break;
+ case animations::TransitionSubType::BOTTOMRIGHT: // Rochade
+ nTransition = XML_fade;
+ nTransition14 = XML_switch;
+ pDirection14 = "r";
+ bOOXmlSpecificTransition = true;
+ break;
case animations::TransitionSubType::CORNERSIN:
pInverted = "true";
case animations::TransitionSubType::CORNERSOUT:
@@ -604,6 +617,7 @@ void PowerPointExport::WriteTransition( FSHelperPtr pFS )
pFS->singleElementNS(XML_p14, nTransition14,
XML_isInverted, pInverted,
+ XML_dir, pDirection14,
FSEND );
pFS->endElement(FSNS(XML_p, XML_transition));