1
diff -rup oox-orig/inc/oox/ppt/slidetransition.hxx oox/inc/oox/ppt/slidetransition.hxx
2
--- oox-orig/inc/oox/ppt/slidetransition.hxx 2009-05-14 16:18:57.000000000 +0200
3
+++ oox/inc/oox/ppt/slidetransition.hxx 2009-05-14 16:31:11.000000000 +0200
4
@@ -54,6 +54,8 @@ namespace oox { namespace ppt {
5
{ mnFadeColor = nColor; }
6
void setMode( sal_Bool bMode )
8
+ void setOoxAdvanceTime( sal_Int32 nAdvanceTime )
9
+ { mnAdvanceTime = nAdvanceTime; }
11
static sal_Int16 ooxToOdpDirection( ::sal_Int32 nOoxType );
12
static sal_Int16 ooxToOdpEightDirections( ::sal_Int32 nOoxType );
13
@@ -71,6 +73,7 @@ namespace oox { namespace ppt {
14
::sal_Int16 mnAnimationSpeed;
15
::sal_Int32 mnFadeColor;
16
::sal_Bool mbMode; /**< http://api.openoffice.org/docs/common/ref/com/sun/star/animations/XTransitionFilter.html Mode property */
17
+ ::sal_Int32 mnAdvanceTime;
21
diff -rup oox-orig/source/ppt/slidetransitioncontext.cxx oox/source/ppt/slidetransitioncontext.cxx
22
--- oox-orig/source/ppt/slidetransitioncontext.cxx 2009-05-14 16:18:58.000000000 +0200
23
+++ oox/source/ppt/slidetransitioncontext.cxx 2009-05-14 17:40:17.000000000 +0200
24
@@ -71,12 +71,9 @@ SlideTransitionContext::SlideTransitionC
25
attribs.getBool( XML_advClick, true );
27
// careful. if missing, no auto advance... 0 looks like a valid value
30
if(attribs.hasAttribute( XML_advTm ))
33
- xAttribs->getOptionalValue( XML_advTm );
35
+ maTransition.setOoxAdvanceTime( attribs.getInteger( XML_advTm, -1 ) );
38
SlideTransitionContext::~SlideTransitionContext() throw()
39
diff -rup oox-orig/source/ppt/slidetransition.cxx oox/source/ppt/slidetransition.cxx
40
--- oox-orig/source/ppt/slidetransition.cxx 2009-05-14 16:18:58.000000000 +0200
41
+++ oox/source/ppt/slidetransition.cxx 2009-05-14 17:40:03.000000000 +0200
42
@@ -58,6 +58,7 @@ namespace oox { namespace ppt {
43
, mnAnimationSpeed( AnimationSpeed_FAST )
46
+ , mnAdvanceTime( -1 )
50
@@ -70,6 +71,7 @@ namespace oox { namespace ppt {
51
, mnAnimationSpeed( AnimationSpeed_FAST )
54
+ , mnAdvanceTime( -1 )
56
const transition *p = transition::find( sFilterName );
58
@@ -90,6 +92,10 @@ namespace oox { namespace ppt {
59
aProps[ CREATE_OUSTRING( "TransitionDirection" ) ] = Any( mbTransitionDirectionNormal );
60
aProps[ CREATE_OUSTRING( "Speed" ) ] = Any( mnAnimationSpeed );
61
aProps[ CREATE_OUSTRING( "TransitionFadeColor" ) ] = Any( mnFadeColor );
62
+ if( mnAdvanceTime != -1 ) {
63
+ aProps[ CREATE_OUSTRING( "Duration" ) ] = Any( mnAdvanceTime/1000 );
64
+ aProps[ CREATE_OUSTRING( "Change" ) ] = Any( static_cast<sal_Int32>(1) );
69
@@ -140,8 +146,6 @@ namespace oox { namespace ppt {
75
sal_Int16 SlideTransition::ooxToOdpEightDirections( ::sal_Int32 nOoxType )
77
sal_Int16 nOdpDirection;