diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2009-01-06 08:40:41 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2009-01-06 08:40:41 +0000 |
commit | 5d06990ec5f71b3c6c462ca55f46ec0a4d2ccd96 (patch) | |
tree | ff4ef820dd70bca6de20f2dc2e6b28538a0136f1 /slideshow/source/engine/shapes/appletshape.cxx | |
parent | 4774bcff020f1b9bf79141f6d7fb630fa2b724cd (diff) |
CWS-TOOLING: integrate CWS impress147
2008-12-16 15:51:15 +0100 wg r265553 : i96805
2008-12-03 12:32:33 +0100 wg r264766 : 96805
2008-12-03 11:40:11 +0100 wg r264761 : 96805
2008-11-20 15:39:56 +0100 cl r264062 : migrated cws from cvs to svn
2008-11-19 14:16:40 +0100 cl r263992 : CWS-TOOLING: rebase CWS impress147 to trunk@263288 (milestone: DEV300:m35)
Diffstat (limited to 'slideshow/source/engine/shapes/appletshape.cxx')
-rw-r--r-- | slideshow/source/engine/shapes/appletshape.cxx | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/slideshow/source/engine/shapes/appletshape.cxx b/slideshow/source/engine/shapes/appletshape.cxx index 49f856478216..94b7db2a0ef2 100644 --- a/slideshow/source/engine/shapes/appletshape.cxx +++ b/slideshow/source/engine/shapes/appletshape.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: appletshape.cxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.3.18.1 $ * * This file is part of OpenOffice.org. * @@ -111,6 +111,9 @@ namespace slideshow virtual void implViewsChanged(); virtual bool implStartIntrinsicAnimation(); virtual bool implEndIntrinsicAnimation(); + virtual bool implPauseIntrinsicAnimation(); + virtual bool implIsIntrinsicAnimationPlaying() const; + virtual void implSetIntrinsicAnimationTime(double); const ::rtl::OUString maServiceName; const char** mpPropCopyTable; @@ -119,6 +122,7 @@ namespace slideshow /// the list of active view shapes (one for each registered view layer) typedef ::std::vector< ViewAppletShapeSharedPtr > ViewAppletShapeVector; ViewAppletShapeVector maViewAppletShapes; + bool mbIsPlaying; }; AppletShape::AppletShape( const uno::Reference< drawing::XShape >& xShape, @@ -131,7 +135,8 @@ namespace slideshow maServiceName( rServiceName ), mpPropCopyTable( pPropCopyTable ), mnNumPropEntries( nNumPropEntries ), - maViewAppletShapes() + maViewAppletShapes(), + mbIsPlaying(false) { } @@ -265,6 +270,7 @@ namespace slideshow ::boost::bind( &ViewAppletShape::startApplet, _1, ::boost::cref( getBounds() ))); + mbIsPlaying = true; return true; } @@ -277,9 +283,34 @@ namespace slideshow maViewAppletShapes.end(), ::boost::mem_fn( &ViewAppletShape::endApplet ) ); + mbIsPlaying = false; + return true; } + // --------------------------------------------------------------------- + + bool AppletShape::implPauseIntrinsicAnimation() + { + // TODO(F1): any way of temporarily disabling/deactivating + // applets? + return true; + } + + // --------------------------------------------------------------------- + + bool AppletShape::implIsIntrinsicAnimationPlaying() const + { + return mbIsPlaying; + } + + // --------------------------------------------------------------------- + + void AppletShape::implSetIntrinsicAnimationTime(double) + { + // No way of doing this, or? + } + boost::shared_ptr<Shape> createAppletShape( const uno::Reference< drawing::XShape >& xShape, double nPrio, |