1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_slideshow.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <canvas/debug.hxx> 32*cdf0e10cSrcweir #include <tools/diagnose_ex.h> 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir #include <comphelper/anytostring.hxx> 35*cdf0e10cSrcweir #include <cppuhelper/exc_hlp.hxx> 36*cdf0e10cSrcweir #include <basegfx/numeric/ftools.hxx> 37*cdf0e10cSrcweir #include <basegfx/matrix/b2dhommatrix.hxx> 38*cdf0e10cSrcweir #include <basegfx/polygon/b2dpolypolygontools.hxx> 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir #include <com/sun/star/animations/TransitionType.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/animations/TransitionSubType.hpp> 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir #include "transitionfactory.hxx" 44*cdf0e10cSrcweir #include "transitiontools.hxx" 45*cdf0e10cSrcweir #include "parametricpolypolygonfactory.hxx" 46*cdf0e10cSrcweir #include "animationfactory.hxx" 47*cdf0e10cSrcweir #include "clippingfunctor.hxx" 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir #include <boost/bind.hpp> 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir using namespace ::com::sun::star; 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir namespace slideshow { 55*cdf0e10cSrcweir namespace internal { 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir /*************************************************** 58*cdf0e10cSrcweir *** *** 59*cdf0e10cSrcweir *** Shape Transition Effects *** 60*cdf0e10cSrcweir *** *** 61*cdf0e10cSrcweir ***************************************************/ 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir namespace { 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir class ClippingAnimation : public NumberAnimation 66*cdf0e10cSrcweir { 67*cdf0e10cSrcweir public: 68*cdf0e10cSrcweir ClippingAnimation( 69*cdf0e10cSrcweir const ParametricPolyPolygonSharedPtr& rPolygon, 70*cdf0e10cSrcweir const ShapeManagerSharedPtr& rShapeManager, 71*cdf0e10cSrcweir const TransitionInfo& rTransitionInfo, 72*cdf0e10cSrcweir bool bDirectionForward, 73*cdf0e10cSrcweir bool bModeIn ); 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir ~ClippingAnimation(); 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir // Animation interface 78*cdf0e10cSrcweir // ------------------- 79*cdf0e10cSrcweir virtual void prefetch( const AnimatableShapeSharedPtr& rShape, 80*cdf0e10cSrcweir const ShapeAttributeLayerSharedPtr& rAttrLayer ); 81*cdf0e10cSrcweir virtual void start( const AnimatableShapeSharedPtr& rShape, 82*cdf0e10cSrcweir const ShapeAttributeLayerSharedPtr& rAttrLayer ); 83*cdf0e10cSrcweir virtual void end(); 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir // NumberAnimation interface 86*cdf0e10cSrcweir // ----------------------- 87*cdf0e10cSrcweir virtual bool operator()( double nValue ); 88*cdf0e10cSrcweir virtual double getUnderlyingValue() const; 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir private: 91*cdf0e10cSrcweir void end_(); 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir AnimatableShapeSharedPtr mpShape; 94*cdf0e10cSrcweir ShapeAttributeLayerSharedPtr mpAttrLayer; 95*cdf0e10cSrcweir ShapeManagerSharedPtr mpShapeManager; 96*cdf0e10cSrcweir ClippingFunctor maClippingFunctor; 97*cdf0e10cSrcweir bool mbSpriteActive; 98*cdf0e10cSrcweir }; 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir ClippingAnimation::ClippingAnimation( 101*cdf0e10cSrcweir const ParametricPolyPolygonSharedPtr& rPolygon, 102*cdf0e10cSrcweir const ShapeManagerSharedPtr& rShapeManager, 103*cdf0e10cSrcweir const TransitionInfo& rTransitionInfo, 104*cdf0e10cSrcweir bool bDirectionForward, 105*cdf0e10cSrcweir bool bModeIn ) : 106*cdf0e10cSrcweir mpShape(), 107*cdf0e10cSrcweir mpAttrLayer(), 108*cdf0e10cSrcweir mpShapeManager( rShapeManager ), 109*cdf0e10cSrcweir maClippingFunctor( rPolygon, 110*cdf0e10cSrcweir rTransitionInfo, 111*cdf0e10cSrcweir bDirectionForward, 112*cdf0e10cSrcweir bModeIn ), 113*cdf0e10cSrcweir mbSpriteActive(false) 114*cdf0e10cSrcweir { 115*cdf0e10cSrcweir ENSURE_OR_THROW( 116*cdf0e10cSrcweir rShapeManager, 117*cdf0e10cSrcweir "ClippingAnimation::ClippingAnimation(): Invalid ShapeManager" ); 118*cdf0e10cSrcweir } 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir ClippingAnimation::~ClippingAnimation() 121*cdf0e10cSrcweir { 122*cdf0e10cSrcweir try 123*cdf0e10cSrcweir { 124*cdf0e10cSrcweir end_(); 125*cdf0e10cSrcweir } 126*cdf0e10cSrcweir catch (uno::Exception &) 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir OSL_ENSURE( false, rtl::OUStringToOString( 129*cdf0e10cSrcweir comphelper::anyToString( 130*cdf0e10cSrcweir cppu::getCaughtException() ), 131*cdf0e10cSrcweir RTL_TEXTENCODING_UTF8 ).getStr() ); 132*cdf0e10cSrcweir } 133*cdf0e10cSrcweir } 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir void ClippingAnimation::prefetch( const AnimatableShapeSharedPtr&, 136*cdf0e10cSrcweir const ShapeAttributeLayerSharedPtr& ) 137*cdf0e10cSrcweir { 138*cdf0e10cSrcweir } 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir void ClippingAnimation::start( const AnimatableShapeSharedPtr& rShape, 141*cdf0e10cSrcweir const ShapeAttributeLayerSharedPtr& rAttrLayer ) 142*cdf0e10cSrcweir { 143*cdf0e10cSrcweir OSL_ENSURE( !mpShape, 144*cdf0e10cSrcweir "ClippingAnimation::start(): Shape already set" ); 145*cdf0e10cSrcweir OSL_ENSURE( !mpAttrLayer, 146*cdf0e10cSrcweir "ClippingAnimation::start(): Attribute layer already set" ); 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir mpShape = rShape; 149*cdf0e10cSrcweir mpAttrLayer = rAttrLayer; 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir ENSURE_OR_THROW( rShape, 152*cdf0e10cSrcweir "ClippingAnimation::start(): Invalid shape" ); 153*cdf0e10cSrcweir ENSURE_OR_THROW( rAttrLayer, 154*cdf0e10cSrcweir "ClippingAnimation::start(): Invalid attribute layer" ); 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir mpShape = rShape; 157*cdf0e10cSrcweir mpAttrLayer = rAttrLayer; 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir if( !mbSpriteActive ) 160*cdf0e10cSrcweir { 161*cdf0e10cSrcweir mpShapeManager->enterAnimationMode( mpShape ); 162*cdf0e10cSrcweir mbSpriteActive = true; 163*cdf0e10cSrcweir } 164*cdf0e10cSrcweir } 165*cdf0e10cSrcweir 166*cdf0e10cSrcweir void ClippingAnimation::end() 167*cdf0e10cSrcweir { 168*cdf0e10cSrcweir end_(); 169*cdf0e10cSrcweir } 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir void ClippingAnimation::end_() 172*cdf0e10cSrcweir { 173*cdf0e10cSrcweir if( mbSpriteActive ) 174*cdf0e10cSrcweir { 175*cdf0e10cSrcweir mbSpriteActive = false; 176*cdf0e10cSrcweir mpShapeManager->leaveAnimationMode( mpShape ); 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir if( mpShape->isContentChanged() ) 179*cdf0e10cSrcweir mpShapeManager->notifyShapeUpdate( mpShape ); 180*cdf0e10cSrcweir } 181*cdf0e10cSrcweir } 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir bool ClippingAnimation::operator()( double nValue ) 184*cdf0e10cSrcweir { 185*cdf0e10cSrcweir ENSURE_OR_RETURN_FALSE( 186*cdf0e10cSrcweir mpAttrLayer && mpShape, 187*cdf0e10cSrcweir "ClippingAnimation::operator(): Invalid ShapeAttributeLayer" ); 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir // set new clip 190*cdf0e10cSrcweir mpAttrLayer->setClip( maClippingFunctor( nValue, 191*cdf0e10cSrcweir mpShape->getDomBounds().getRange() ) ); 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir if( mpShape->isContentChanged() ) 194*cdf0e10cSrcweir mpShapeManager->notifyShapeUpdate( mpShape ); 195*cdf0e10cSrcweir 196*cdf0e10cSrcweir return true; 197*cdf0e10cSrcweir } 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir double ClippingAnimation::getUnderlyingValue() const 200*cdf0e10cSrcweir { 201*cdf0e10cSrcweir ENSURE_OR_THROW( 202*cdf0e10cSrcweir mpAttrLayer, 203*cdf0e10cSrcweir "ClippingAnimation::getUnderlyingValue(): Invalid ShapeAttributeLayer" ); 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir return 0.0; // though this should be used in concert with 206*cdf0e10cSrcweir // ActivitiesFactory::createSimpleActivity, better 207*cdf0e10cSrcweir // explicitely name our start value. 208*cdf0e10cSrcweir // Permissible range for operator() above is [0,1] 209*cdf0e10cSrcweir } 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir } // anon namespace 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir AnimationActivitySharedPtr TransitionFactory::createShapeTransition( 215*cdf0e10cSrcweir const ActivitiesFactory::CommonParameters& rParms, 216*cdf0e10cSrcweir const AnimatableShapeSharedPtr& rShape, 217*cdf0e10cSrcweir const ShapeManagerSharedPtr& rShapeManager, 218*cdf0e10cSrcweir const ::basegfx::B2DVector& rSlideSize, 219*cdf0e10cSrcweir uno::Reference< animations::XTransitionFilter > const& xTransition ) 220*cdf0e10cSrcweir { 221*cdf0e10cSrcweir return createShapeTransition( rParms, 222*cdf0e10cSrcweir rShape, 223*cdf0e10cSrcweir rShapeManager, 224*cdf0e10cSrcweir rSlideSize, 225*cdf0e10cSrcweir xTransition, 226*cdf0e10cSrcweir xTransition->getTransition(), 227*cdf0e10cSrcweir xTransition->getSubtype() ); 228*cdf0e10cSrcweir } 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir AnimationActivitySharedPtr TransitionFactory::createShapeTransition( 231*cdf0e10cSrcweir const ActivitiesFactory::CommonParameters& rParms, 232*cdf0e10cSrcweir const AnimatableShapeSharedPtr& rShape, 233*cdf0e10cSrcweir const ShapeManagerSharedPtr& rShapeManager, 234*cdf0e10cSrcweir const ::basegfx::B2DVector& rSlideSize, 235*cdf0e10cSrcweir ::com::sun::star::uno::Reference< 236*cdf0e10cSrcweir ::com::sun::star::animations::XTransitionFilter > const& xTransition, 237*cdf0e10cSrcweir sal_Int16 nType, 238*cdf0e10cSrcweir sal_Int16 nSubType ) 239*cdf0e10cSrcweir { 240*cdf0e10cSrcweir ENSURE_OR_THROW( 241*cdf0e10cSrcweir xTransition.is(), 242*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Invalid XTransition" ); 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir const TransitionInfo* pTransitionInfo( 245*cdf0e10cSrcweir getTransitionInfo( nType, nSubType ) ); 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir AnimationActivitySharedPtr pGeneratedActivity; 248*cdf0e10cSrcweir if( pTransitionInfo != NULL ) 249*cdf0e10cSrcweir { 250*cdf0e10cSrcweir switch( pTransitionInfo->meTransitionClass ) 251*cdf0e10cSrcweir { 252*cdf0e10cSrcweir default: 253*cdf0e10cSrcweir case TransitionInfo::TRANSITION_INVALID: 254*cdf0e10cSrcweir OSL_ENSURE( false, 255*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Invalid transition type. " 256*cdf0e10cSrcweir "Don't ask me for a 0 TransitionType, have no XTransitionFilter node instead!" ); 257*cdf0e10cSrcweir return AnimationActivitySharedPtr(); 258*cdf0e10cSrcweir 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir case TransitionInfo::TRANSITION_CLIP_POLYPOLYGON: 261*cdf0e10cSrcweir { 262*cdf0e10cSrcweir // generate parametric poly-polygon 263*cdf0e10cSrcweir ParametricPolyPolygonSharedPtr pPoly( 264*cdf0e10cSrcweir ParametricPolyPolygonFactory::createClipPolyPolygon( 265*cdf0e10cSrcweir nType, nSubType ) ); 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir // create a clip activity from that 268*cdf0e10cSrcweir pGeneratedActivity = ActivitiesFactory::createSimpleActivity( 269*cdf0e10cSrcweir rParms, 270*cdf0e10cSrcweir NumberAnimationSharedPtr( 271*cdf0e10cSrcweir new ClippingAnimation( 272*cdf0e10cSrcweir pPoly, 273*cdf0e10cSrcweir rShapeManager, 274*cdf0e10cSrcweir *pTransitionInfo, 275*cdf0e10cSrcweir xTransition->getDirection(), 276*cdf0e10cSrcweir xTransition->getMode() ) ), 277*cdf0e10cSrcweir true ); 278*cdf0e10cSrcweir } 279*cdf0e10cSrcweir break; 280*cdf0e10cSrcweir 281*cdf0e10cSrcweir case TransitionInfo::TRANSITION_SPECIAL: 282*cdf0e10cSrcweir { 283*cdf0e10cSrcweir switch( nType ) 284*cdf0e10cSrcweir { 285*cdf0e10cSrcweir case animations::TransitionType::RANDOM: 286*cdf0e10cSrcweir { 287*cdf0e10cSrcweir // select randomly one of the effects from the 288*cdf0e10cSrcweir // TransitionFactoryTable 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir const TransitionInfo* pRandomTransitionInfo( getRandomTransitionInfo() ); 291*cdf0e10cSrcweir 292*cdf0e10cSrcweir ENSURE_OR_THROW( pRandomTransitionInfo != NULL, 293*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Got invalid random transition info" ); 294*cdf0e10cSrcweir 295*cdf0e10cSrcweir ENSURE_OR_THROW( pRandomTransitionInfo->mnTransitionType != animations::TransitionType::RANDOM, 296*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Got random again for random input!" ); 297*cdf0e10cSrcweir 298*cdf0e10cSrcweir // and recurse 299*cdf0e10cSrcweir pGeneratedActivity = createShapeTransition( rParms, 300*cdf0e10cSrcweir rShape, 301*cdf0e10cSrcweir rShapeManager, 302*cdf0e10cSrcweir rSlideSize, 303*cdf0e10cSrcweir xTransition, 304*cdf0e10cSrcweir pRandomTransitionInfo->mnTransitionType, 305*cdf0e10cSrcweir pRandomTransitionInfo->mnTransitionSubType ); 306*cdf0e10cSrcweir } 307*cdf0e10cSrcweir break; 308*cdf0e10cSrcweir 309*cdf0e10cSrcweir // TODO(F3): Implement slidewipe for shape 310*cdf0e10cSrcweir case animations::TransitionType::SLIDEWIPE: 311*cdf0e10cSrcweir { 312*cdf0e10cSrcweir sal_Int16 nBarWipeSubType(0); 313*cdf0e10cSrcweir bool bDirectionForward(true); 314*cdf0e10cSrcweir 315*cdf0e10cSrcweir // map slidewipe to BARWIPE, for now 316*cdf0e10cSrcweir switch( nSubType ) 317*cdf0e10cSrcweir { 318*cdf0e10cSrcweir case animations::TransitionSubType::FROMLEFT: 319*cdf0e10cSrcweir nBarWipeSubType = animations::TransitionSubType::LEFTTORIGHT; 320*cdf0e10cSrcweir bDirectionForward = true; 321*cdf0e10cSrcweir break; 322*cdf0e10cSrcweir 323*cdf0e10cSrcweir case animations::TransitionSubType::FROMRIGHT: 324*cdf0e10cSrcweir nBarWipeSubType = animations::TransitionSubType::LEFTTORIGHT; 325*cdf0e10cSrcweir bDirectionForward = false; 326*cdf0e10cSrcweir break; 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir case animations::TransitionSubType::FROMTOP: 329*cdf0e10cSrcweir nBarWipeSubType = animations::TransitionSubType::TOPTOBOTTOM; 330*cdf0e10cSrcweir bDirectionForward = true; 331*cdf0e10cSrcweir break; 332*cdf0e10cSrcweir 333*cdf0e10cSrcweir case animations::TransitionSubType::FROMBOTTOM: 334*cdf0e10cSrcweir nBarWipeSubType = animations::TransitionSubType::TOPTOBOTTOM; 335*cdf0e10cSrcweir bDirectionForward = false; 336*cdf0e10cSrcweir break; 337*cdf0e10cSrcweir 338*cdf0e10cSrcweir default: 339*cdf0e10cSrcweir ENSURE_OR_THROW( false, 340*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Unexpected subtype for SLIDEWIPE" ); 341*cdf0e10cSrcweir break; 342*cdf0e10cSrcweir } 343*cdf0e10cSrcweir 344*cdf0e10cSrcweir // generate parametric poly-polygon 345*cdf0e10cSrcweir ParametricPolyPolygonSharedPtr pPoly( 346*cdf0e10cSrcweir ParametricPolyPolygonFactory::createClipPolyPolygon( 347*cdf0e10cSrcweir animations::TransitionType::BARWIPE, 348*cdf0e10cSrcweir nBarWipeSubType ) ); 349*cdf0e10cSrcweir 350*cdf0e10cSrcweir // create a clip activity from that 351*cdf0e10cSrcweir pGeneratedActivity = ActivitiesFactory::createSimpleActivity( 352*cdf0e10cSrcweir rParms, 353*cdf0e10cSrcweir NumberAnimationSharedPtr( 354*cdf0e10cSrcweir new ClippingAnimation( 355*cdf0e10cSrcweir pPoly, 356*cdf0e10cSrcweir rShapeManager, 357*cdf0e10cSrcweir *getTransitionInfo( animations::TransitionType::BARWIPE, 358*cdf0e10cSrcweir nBarWipeSubType ), 359*cdf0e10cSrcweir bDirectionForward, 360*cdf0e10cSrcweir xTransition->getMode() ) ), 361*cdf0e10cSrcweir true ); 362*cdf0e10cSrcweir } 363*cdf0e10cSrcweir break; 364*cdf0e10cSrcweir 365*cdf0e10cSrcweir default: 366*cdf0e10cSrcweir { 367*cdf0e10cSrcweir // TODO(F1): Check whether there's anything left, anyway, 368*cdf0e10cSrcweir // for _shape_ transitions. AFAIK, there are no special 369*cdf0e10cSrcweir // effects for shapes... 370*cdf0e10cSrcweir 371*cdf0e10cSrcweir // for now, map all to fade effect 372*cdf0e10cSrcweir pGeneratedActivity = ActivitiesFactory::createSimpleActivity( 373*cdf0e10cSrcweir rParms, 374*cdf0e10cSrcweir AnimationFactory::createNumberPropertyAnimation( 375*cdf0e10cSrcweir ::rtl::OUString( 376*cdf0e10cSrcweir RTL_CONSTASCII_USTRINGPARAM("Opacity") ), 377*cdf0e10cSrcweir rShape, 378*cdf0e10cSrcweir rShapeManager, 379*cdf0e10cSrcweir rSlideSize ), 380*cdf0e10cSrcweir xTransition->getMode() ); 381*cdf0e10cSrcweir } 382*cdf0e10cSrcweir break; 383*cdf0e10cSrcweir } 384*cdf0e10cSrcweir } 385*cdf0e10cSrcweir break; 386*cdf0e10cSrcweir } 387*cdf0e10cSrcweir } 388*cdf0e10cSrcweir 389*cdf0e10cSrcweir if( !pGeneratedActivity ) 390*cdf0e10cSrcweir { 391*cdf0e10cSrcweir // No animation generated, maybe no table entry for given 392*cdf0e10cSrcweir // transition? 393*cdf0e10cSrcweir OSL_TRACE( 394*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Unknown type/subtype (%d/%d) " 395*cdf0e10cSrcweir "combination encountered", 396*cdf0e10cSrcweir xTransition->getTransition(), 397*cdf0e10cSrcweir xTransition->getSubtype() ); 398*cdf0e10cSrcweir OSL_ENSURE( 399*cdf0e10cSrcweir false, 400*cdf0e10cSrcweir "TransitionFactory::createShapeTransition(): Unknown type/subtype " 401*cdf0e10cSrcweir "combination encountered" ); 402*cdf0e10cSrcweir } 403*cdf0e10cSrcweir 404*cdf0e10cSrcweir return pGeneratedActivity; 405*cdf0e10cSrcweir } 406*cdf0e10cSrcweir 407*cdf0e10cSrcweir } 408*cdf0e10cSrcweir } 409