1*ca5ec200SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ca5ec200SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ca5ec200SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ca5ec200SAndrew Rist * distributed with this work for additional information 6*ca5ec200SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ca5ec200SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ca5ec200SAndrew Rist * "License"); you may not use this file except in compliance 9*ca5ec200SAndrew Rist * with the License. You may obtain a copy of the License at 10*ca5ec200SAndrew Rist * 11*ca5ec200SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ca5ec200SAndrew Rist * 13*ca5ec200SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ca5ec200SAndrew Rist * software distributed under the License is distributed on an 15*ca5ec200SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ca5ec200SAndrew Rist * KIND, either express or implied. See the License for the 17*ca5ec200SAndrew Rist * specific language governing permissions and limitations 18*ca5ec200SAndrew Rist * under the License. 19*ca5ec200SAndrew Rist * 20*ca5ec200SAndrew Rist *************************************************************/ 21*ca5ec200SAndrew Rist 22*ca5ec200SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include "oox/ppt/slidetransition.hxx" 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <com/sun/star/uno/Any.hxx> 27cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 28cdf0e10cSrcweir #include <com/sun/star/presentation/AnimationSpeed.hpp> 29cdf0e10cSrcweir #include <com/sun/star/animations/TransitionType.hpp> 30cdf0e10cSrcweir #include <com/sun/star/animations/TransitionSubType.hpp> 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include "oox/helper/helper.hxx" 33cdf0e10cSrcweir #include "oox/helper/propertymap.hxx" 34cdf0e10cSrcweir #include "oox/token/namespaces.hxx" 35cdf0e10cSrcweir #include "oox/token/tokens.hxx" 36cdf0e10cSrcweir #include "pptfilterhelpers.hxx" 37cdf0e10cSrcweir 38cdf0e10cSrcweir using rtl::OUString; 39cdf0e10cSrcweir using namespace ::com::sun::star::uno; 40cdf0e10cSrcweir using namespace ::com::sun::star::beans; 41cdf0e10cSrcweir using namespace ::com::sun::star::animations; 42cdf0e10cSrcweir using namespace ::com::sun::star::presentation; 43cdf0e10cSrcweir 44cdf0e10cSrcweir namespace oox { namespace ppt { 45cdf0e10cSrcweir 46cdf0e10cSrcweir SlideTransition()47cdf0e10cSrcweir SlideTransition::SlideTransition() 48cdf0e10cSrcweir : mnTransitionType( 0 ) 49cdf0e10cSrcweir , mnTransitionSubType( 0 ) 50cdf0e10cSrcweir , mbTransitionDirectionNormal( true ) 51cdf0e10cSrcweir , mnAnimationSpeed( AnimationSpeed_FAST ) 52cdf0e10cSrcweir , mnFadeColor( 0 ) 53cdf0e10cSrcweir , mbMode( true ) 54cdf0e10cSrcweir { 55cdf0e10cSrcweir 56cdf0e10cSrcweir } 57cdf0e10cSrcweir 58cdf0e10cSrcweir SlideTransition(const OUString & sFilterName)59cdf0e10cSrcweir SlideTransition::SlideTransition(const OUString & sFilterName) 60cdf0e10cSrcweir : mnTransitionType( 0 ) 61cdf0e10cSrcweir , mnTransitionSubType( 0 ) 62cdf0e10cSrcweir , mbTransitionDirectionNormal( true ) 63cdf0e10cSrcweir , mnAnimationSpeed( AnimationSpeed_FAST ) 64cdf0e10cSrcweir , mnFadeColor( 0 ) 65cdf0e10cSrcweir , mbMode( true ) 66cdf0e10cSrcweir { 67cdf0e10cSrcweir const transition *p = transition::find( sFilterName ); 68cdf0e10cSrcweir if( p ) 69cdf0e10cSrcweir { 70cdf0e10cSrcweir mnTransitionType = p->mnType; 71cdf0e10cSrcweir mnTransitionSubType = p->mnSubType; 72cdf0e10cSrcweir mbTransitionDirectionNormal = p->mbDirection; 73cdf0e10cSrcweir } 74cdf0e10cSrcweir } 75cdf0e10cSrcweir 76cdf0e10cSrcweir setSlideProperties(PropertyMap & aProps)77cdf0e10cSrcweir void SlideTransition::setSlideProperties( PropertyMap & aProps ) 78cdf0e10cSrcweir { 79cdf0e10cSrcweir try 80cdf0e10cSrcweir { 81cdf0e10cSrcweir aProps[ PROP_TransitionType ] <<= mnTransitionType; 82cdf0e10cSrcweir aProps[ PROP_TransitionSubtype ] <<= mnTransitionSubType; 83cdf0e10cSrcweir aProps[ PROP_TransitionDirection ] <<= mbTransitionDirectionNormal; 84cdf0e10cSrcweir aProps[ PROP_Speed ] <<= mnAnimationSpeed; 85cdf0e10cSrcweir aProps[ PROP_TransitionFadeColor ] <<= mnFadeColor; 86cdf0e10cSrcweir } 87cdf0e10cSrcweir catch( Exception& ) 88cdf0e10cSrcweir { 89cdf0e10cSrcweir // should not happen 90cdf0e10cSrcweir OSL_ENSURE( false, "exception raised" ); 91cdf0e10cSrcweir } 92cdf0e10cSrcweir } 93cdf0e10cSrcweir setTransitionFilterProperties(const Reference<XTransitionFilter> & xFilter)94cdf0e10cSrcweir void SlideTransition::setTransitionFilterProperties( const Reference< XTransitionFilter > & xFilter ) 95cdf0e10cSrcweir { 96cdf0e10cSrcweir try 97cdf0e10cSrcweir { 98cdf0e10cSrcweir xFilter->setTransition( mnTransitionType ); 99cdf0e10cSrcweir xFilter->setSubtype( mnTransitionSubType ); 100cdf0e10cSrcweir xFilter->setDirection( mbTransitionDirectionNormal ); 101cdf0e10cSrcweir xFilter->setFadeColor( mnFadeColor ); 102cdf0e10cSrcweir xFilter->setMode( mbMode ); 103cdf0e10cSrcweir } 104cdf0e10cSrcweir catch( Exception& ) 105cdf0e10cSrcweir { 106cdf0e10cSrcweir // should not happen 107cdf0e10cSrcweir OSL_ENSURE( false, "exception raised" ); 108cdf0e10cSrcweir } 109cdf0e10cSrcweir } 110cdf0e10cSrcweir 111cdf0e10cSrcweir setOoxTransitionSpeed(sal_Int32 nToken)112cdf0e10cSrcweir void SlideTransition::setOoxTransitionSpeed( sal_Int32 nToken) 113cdf0e10cSrcweir { 114cdf0e10cSrcweir switch( nToken ) 115cdf0e10cSrcweir { 116cdf0e10cSrcweir /* In case you want to use time values in second, 117cdf0e10cSrcweir * the speed values are located in the PPT97 importer 118cdf0e10cSrcweir * sd/source/filter/ppt/ppt97animations.cxx:664 119cdf0e10cSrcweir * (void Ppt97Animation::UpdateCacheData() const) 120cdf0e10cSrcweir */ 121cdf0e10cSrcweir case XML_fast: 122cdf0e10cSrcweir mnAnimationSpeed = AnimationSpeed_FAST; 123cdf0e10cSrcweir break; 124cdf0e10cSrcweir case XML_med: 125cdf0e10cSrcweir mnAnimationSpeed = AnimationSpeed_MEDIUM; 126cdf0e10cSrcweir break; 127cdf0e10cSrcweir case XML_slow: 128cdf0e10cSrcweir mnAnimationSpeed = AnimationSpeed_SLOW; 129cdf0e10cSrcweir break; 130cdf0e10cSrcweir default: 131cdf0e10cSrcweir // should not happen. just ignore 132cdf0e10cSrcweir break; 133cdf0e10cSrcweir } 134cdf0e10cSrcweir } 135cdf0e10cSrcweir 136cdf0e10cSrcweir 137cdf0e10cSrcweir ooxToOdpEightDirections(::sal_Int32 nOoxType)138cdf0e10cSrcweir sal_Int16 SlideTransition::ooxToOdpEightDirections( ::sal_Int32 nOoxType ) 139cdf0e10cSrcweir { 140cdf0e10cSrcweir sal_Int16 nOdpDirection; 141cdf0e10cSrcweir nOdpDirection = ooxToOdpBorderDirections( nOoxType ); 142cdf0e10cSrcweir if( nOdpDirection == 0 ) 143cdf0e10cSrcweir { 144cdf0e10cSrcweir nOdpDirection = ooxToOdpCornerDirections( nOoxType ); 145cdf0e10cSrcweir } 146cdf0e10cSrcweir return nOdpDirection; 147cdf0e10cSrcweir } 148cdf0e10cSrcweir 149cdf0e10cSrcweir ooxToOdpBorderDirections(::sal_Int32 nOoxType)150cdf0e10cSrcweir sal_Int16 SlideTransition::ooxToOdpBorderDirections( ::sal_Int32 nOoxType ) 151cdf0e10cSrcweir { 152cdf0e10cSrcweir sal_Int16 nOdpDirection; 153cdf0e10cSrcweir switch( nOoxType ) 154cdf0e10cSrcweir { 155cdf0e10cSrcweir case XML_d: 156cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMTOP; 157cdf0e10cSrcweir break; 158cdf0e10cSrcweir case XML_l: 159cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMLEFT; 160cdf0e10cSrcweir break; 161cdf0e10cSrcweir case XML_r: 162cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMRIGHT; 163cdf0e10cSrcweir break; 164cdf0e10cSrcweir case XML_u: 165cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMBOTTOM; 166cdf0e10cSrcweir break; 167cdf0e10cSrcweir default: 168cdf0e10cSrcweir nOdpDirection= 0; 169cdf0e10cSrcweir break; 170cdf0e10cSrcweir } 171cdf0e10cSrcweir return nOdpDirection; 172cdf0e10cSrcweir } 173cdf0e10cSrcweir ooxToOdpSideDirections(::sal_Int32 nOoxType)174cdf0e10cSrcweir sal_Int16 SlideTransition::ooxToOdpSideDirections( ::sal_Int32 nOoxType ) 175cdf0e10cSrcweir { 176cdf0e10cSrcweir sal_Int16 nOdpDirection; 177cdf0e10cSrcweir switch( nOoxType ) 178cdf0e10cSrcweir { 179cdf0e10cSrcweir case XML_d: 180cdf0e10cSrcweir case XML_u: 181cdf0e10cSrcweir nOdpDirection = TransitionSubType::TOPTOBOTTOM; 182cdf0e10cSrcweir break; 183cdf0e10cSrcweir case XML_l: 184cdf0e10cSrcweir case XML_r: 185cdf0e10cSrcweir nOdpDirection = TransitionSubType::LEFTTORIGHT; 186cdf0e10cSrcweir break; 187cdf0e10cSrcweir default: 188cdf0e10cSrcweir nOdpDirection= 0; 189cdf0e10cSrcweir break; 190cdf0e10cSrcweir } 191cdf0e10cSrcweir return nOdpDirection; 192cdf0e10cSrcweir } 193cdf0e10cSrcweir ooxToOdpSideDirectionsDirectionNormal(::sal_Int32 nOoxType)194cdf0e10cSrcweir sal_Bool SlideTransition::ooxToOdpSideDirectionsDirectionNormal( ::sal_Int32 nOoxType ) 195cdf0e10cSrcweir { 196cdf0e10cSrcweir sal_Bool nOdpDirection = true; 197cdf0e10cSrcweir switch( nOoxType ) 198cdf0e10cSrcweir { 199cdf0e10cSrcweir case XML_u: 200cdf0e10cSrcweir case XML_l: 201cdf0e10cSrcweir nOdpDirection = false; 202cdf0e10cSrcweir break; 203cdf0e10cSrcweir } 204cdf0e10cSrcweir return nOdpDirection; 205cdf0e10cSrcweir } 206cdf0e10cSrcweir ooxToOdpCornerDirections(::sal_Int32 nOoxType)207cdf0e10cSrcweir sal_Int16 SlideTransition::ooxToOdpCornerDirections( ::sal_Int32 nOoxType ) 208cdf0e10cSrcweir { 209cdf0e10cSrcweir sal_Int16 nOdpDirection; 210cdf0e10cSrcweir switch( nOoxType ) 211cdf0e10cSrcweir { 212cdf0e10cSrcweir case XML_lu: 213cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMBOTTOMRIGHT; 214cdf0e10cSrcweir break; 215cdf0e10cSrcweir case XML_ru: 216cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMBOTTOMLEFT; 217cdf0e10cSrcweir break; 218cdf0e10cSrcweir case XML_ld: 219cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMTOPRIGHT; 220cdf0e10cSrcweir break; 221cdf0e10cSrcweir case XML_rd: 222cdf0e10cSrcweir nOdpDirection = TransitionSubType::FROMTOPLEFT; 223cdf0e10cSrcweir break; 224cdf0e10cSrcweir default: 225cdf0e10cSrcweir nOdpDirection = 0; 226cdf0e10cSrcweir break; 227cdf0e10cSrcweir } 228cdf0e10cSrcweir return nOdpDirection; 229cdf0e10cSrcweir } 230cdf0e10cSrcweir 231cdf0e10cSrcweir ooxToOdpDirection(::sal_Int32 nOoxType)232cdf0e10cSrcweir sal_Int16 SlideTransition::ooxToOdpDirection( ::sal_Int32 nOoxType ) 233cdf0e10cSrcweir { 234cdf0e10cSrcweir sal_Int16 nOdpDir; 235cdf0e10cSrcweir switch( nOoxType ) 236cdf0e10cSrcweir { 237cdf0e10cSrcweir case XML_vert: 238cdf0e10cSrcweir nOdpDir = TransitionSubType::VERTICAL; 239cdf0e10cSrcweir break; 240cdf0e10cSrcweir case XML_horz: 241cdf0e10cSrcweir nOdpDir = TransitionSubType::HORIZONTAL; 242cdf0e10cSrcweir break; 243cdf0e10cSrcweir default: 244cdf0e10cSrcweir nOdpDir = 0; 245cdf0e10cSrcweir break; 246cdf0e10cSrcweir } 247cdf0e10cSrcweir return nOdpDir; 248cdf0e10cSrcweir } 249cdf0e10cSrcweir setOoxTransitionType(::sal_Int32 OoxType,::sal_Int32 param1,::sal_Int32 param2)250cdf0e10cSrcweir void SlideTransition::setOoxTransitionType( ::sal_Int32 OoxType, ::sal_Int32 param1, ::sal_Int32 param2 ) 251cdf0e10cSrcweir { 252cdf0e10cSrcweir switch( OoxType ) 253cdf0e10cSrcweir { 254cdf0e10cSrcweir case PPT_TOKEN( blinds ): 255cdf0e10cSrcweir mnTransitionType = TransitionType::BLINDSWIPE; 256cdf0e10cSrcweir mnTransitionSubType = ooxToOdpDirection( param1 ); 257cdf0e10cSrcweir break; 258cdf0e10cSrcweir case PPT_TOKEN( checker ): 259cdf0e10cSrcweir mnTransitionType = TransitionType::CHECKERBOARDWIPE; 260cdf0e10cSrcweir switch ( param1 ) 261cdf0e10cSrcweir { 262cdf0e10cSrcweir case XML_vert: 263cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::DOWN; 264cdf0e10cSrcweir break; 265cdf0e10cSrcweir case XML_horz: 266cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::ACROSS; 267cdf0e10cSrcweir break; 268cdf0e10cSrcweir default: 269cdf0e10cSrcweir break; 270cdf0e10cSrcweir } 271cdf0e10cSrcweir break; 272cdf0e10cSrcweir case PPT_TOKEN( comb ): 273cdf0e10cSrcweir mnTransitionType = TransitionType::PUSHWIPE; 274cdf0e10cSrcweir switch( param1 ) 275cdf0e10cSrcweir { 276cdf0e10cSrcweir case XML_vert: 277cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::COMBVERTICAL; 278cdf0e10cSrcweir break; 279cdf0e10cSrcweir case XML_horz: 280cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::COMBHORIZONTAL; 281cdf0e10cSrcweir break; 282cdf0e10cSrcweir default: 283cdf0e10cSrcweir break; 284cdf0e10cSrcweir } 285cdf0e10cSrcweir break; 286cdf0e10cSrcweir case PPT_TOKEN( cover ): 287cdf0e10cSrcweir mnTransitionType = TransitionType::SLIDEWIPE; 288cdf0e10cSrcweir mnTransitionSubType = ooxToOdpEightDirections( param1 ); 289cdf0e10cSrcweir break; 290cdf0e10cSrcweir case PPT_TOKEN( pull ): // uncover 291cdf0e10cSrcweir mnTransitionType = TransitionType::SLIDEWIPE; 292cdf0e10cSrcweir mnTransitionSubType = ooxToOdpEightDirections( param1 ); 293cdf0e10cSrcweir mbTransitionDirectionNormal = false; 294cdf0e10cSrcweir break; 295cdf0e10cSrcweir case PPT_TOKEN( cut ): 296cdf0e10cSrcweir // The binfilter seems to ignore this transition. 297cdf0e10cSrcweir // Fade to black instead if thrBlk is true. 298cdf0e10cSrcweir if( param1 ) 299cdf0e10cSrcweir { 300cdf0e10cSrcweir mnTransitionType = TransitionType::FADE; 301cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::FADEOVERCOLOR; 302cdf0e10cSrcweir } 303cdf0e10cSrcweir OSL_TRACE( "OOX: cut transition fallback." ); 304cdf0e10cSrcweir break; 305cdf0e10cSrcweir case PPT_TOKEN( fade ): 306cdf0e10cSrcweir mnTransitionType = TransitionType::FADE; 307cdf0e10cSrcweir if( param1 ) 308cdf0e10cSrcweir { 309cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::FADEOVERCOLOR; 310cdf0e10cSrcweir } 311cdf0e10cSrcweir else 312cdf0e10cSrcweir { 313cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::CROSSFADE; 314cdf0e10cSrcweir } 315cdf0e10cSrcweir break; 316cdf0e10cSrcweir case PPT_TOKEN( push ): 317cdf0e10cSrcweir mnTransitionType = TransitionType::PUSHWIPE; 318cdf0e10cSrcweir mnTransitionSubType = ooxToOdpBorderDirections( param1 ); 319cdf0e10cSrcweir break; 320cdf0e10cSrcweir case PPT_TOKEN( wipe ): 321cdf0e10cSrcweir mnTransitionType = TransitionType::BARWIPE; 322cdf0e10cSrcweir mnTransitionSubType = ooxToOdpSideDirections( param1 ); 323cdf0e10cSrcweir mbTransitionDirectionNormal = ooxToOdpSideDirectionsDirectionNormal( param1 ); 324cdf0e10cSrcweir break; 325cdf0e10cSrcweir case PPT_TOKEN( split ): 326cdf0e10cSrcweir mnTransitionType = TransitionType::BARNDOORWIPE; 327cdf0e10cSrcweir mnTransitionSubType = ooxToOdpDirection( param1 ); 328cdf0e10cSrcweir if( param2 == XML_in ) 329cdf0e10cSrcweir { 330cdf0e10cSrcweir // reverse 331cdf0e10cSrcweir mbTransitionDirectionNormal = false; 332cdf0e10cSrcweir } 333cdf0e10cSrcweir break; 334cdf0e10cSrcweir case PPT_TOKEN( wheel ): 335cdf0e10cSrcweir mnTransitionType = TransitionType::PINWHEELWIPE; 336cdf0e10cSrcweir switch( param1 ) 337cdf0e10cSrcweir { 338cdf0e10cSrcweir case 1: 339cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::ONEBLADE; 340cdf0e10cSrcweir break; 341cdf0e10cSrcweir case 2: 342cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::TWOBLADEVERTICAL; 343cdf0e10cSrcweir break; 344cdf0e10cSrcweir case 3: 345cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::THREEBLADE; 346cdf0e10cSrcweir break; 347cdf0e10cSrcweir case 4: 348cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::FOURBLADE; 349cdf0e10cSrcweir break; 350cdf0e10cSrcweir case 8: 351cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::EIGHTBLADE; 352cdf0e10cSrcweir break; 353cdf0e10cSrcweir default: 354cdf0e10cSrcweir OSL_TRACE( "OOX: strange number of blades for thw wheel-wipe %d", param1 ); 355cdf0e10cSrcweir if( param1 > 8 ) 356cdf0e10cSrcweir { 357cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::EIGHTBLADE; 358cdf0e10cSrcweir } 359cdf0e10cSrcweir else if( param1 > 4 ) 360cdf0e10cSrcweir { 361cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::FOURBLADE; 362cdf0e10cSrcweir } 363cdf0e10cSrcweir else if( param1 == 0) 364cdf0e10cSrcweir { 365cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::ONEBLADE; 366cdf0e10cSrcweir } 367cdf0e10cSrcweir break; 368cdf0e10cSrcweir } 369cdf0e10cSrcweir break; 370cdf0e10cSrcweir case PPT_TOKEN( randomBar ): 371cdf0e10cSrcweir mnTransitionType = TransitionType::RANDOMBARWIPE; 372cdf0e10cSrcweir mnTransitionSubType = ooxToOdpDirection( param1 ); 373cdf0e10cSrcweir break; 374cdf0e10cSrcweir case PPT_TOKEN( circle ): 375cdf0e10cSrcweir mnTransitionType = TransitionType::ELLIPSEWIPE; 376cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::CIRCLE; 377cdf0e10cSrcweir break; 378cdf0e10cSrcweir case PPT_TOKEN( diamond ): 379cdf0e10cSrcweir mnTransitionType = TransitionType::IRISWIPE; 380cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::DIAMOND; 381cdf0e10cSrcweir break; 382cdf0e10cSrcweir case PPT_TOKEN( dissolve ): 383cdf0e10cSrcweir mnTransitionType = TransitionType::DISSOLVE; 384cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::DEFAULT; 385cdf0e10cSrcweir break; 386cdf0e10cSrcweir case PPT_TOKEN( newsflash ): 387cdf0e10cSrcweir // this is what the PPT binary filter does.... not sure I agree. 388cdf0e10cSrcweir mnTransitionType = TransitionType::FOURBOXWIPE; 389cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::CORNERSOUT; 390cdf0e10cSrcweir break; 391cdf0e10cSrcweir case PPT_TOKEN( plus ): 392cdf0e10cSrcweir mnTransitionType = TransitionType::FOURBOXWIPE; 393cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::CORNERSOUT; 394cdf0e10cSrcweir break; 395cdf0e10cSrcweir case PPT_TOKEN( random ): 396cdf0e10cSrcweir mnTransitionType = TransitionType::RANDOM; 397cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::DEFAULT; 398cdf0e10cSrcweir break; 399cdf0e10cSrcweir case PPT_TOKEN( wedge ): 400cdf0e10cSrcweir mnTransitionType = TransitionType::FANWIPE; 401cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::CENTERTOP; 402cdf0e10cSrcweir break; 403cdf0e10cSrcweir case PPT_TOKEN( zoom ): 404cdf0e10cSrcweir mnTransitionType = TransitionType::ZOOM; 405cdf0e10cSrcweir mnTransitionSubType = TransitionSubType::DEFAULT; 406cdf0e10cSrcweir break; 407cdf0e10cSrcweir default: 408cdf0e10cSrcweir mnTransitionType = 0; 409cdf0e10cSrcweir break; 410cdf0e10cSrcweir } 411cdf0e10cSrcweir } 412cdf0e10cSrcweir 413cdf0e10cSrcweir 414cdf0e10cSrcweir } } 415