diff options
-rw-r--r-- | slideshow/source/engine/animationnodes/animationcommandnode.cxx | 22 | ||||
-rw-r--r-- | slideshow/source/engine/animationnodes/animationcommandnode.hxx | 2 |
2 files changed, 0 insertions, 24 deletions
diff --git a/slideshow/source/engine/animationnodes/animationcommandnode.cxx b/slideshow/source/engine/animationnodes/animationcommandnode.cxx index 1b764b1c5a4a..e765f2a5a531 100644 --- a/slideshow/source/engine/animationnodes/animationcommandnode.cxx +++ b/slideshow/source/engine/animationnodes/animationcommandnode.cxx @@ -38,7 +38,6 @@ AnimationCommandNode::AnimationCommandNode( uno::Reference<animations::XAnimatio ::std::shared_ptr<BaseContainerNode> const& pParent, NodeContext const& rContext ) : BaseNode( xNode, pParent, rContext ), - mbToggled(false), mpShape(), mxCommandNode( xNode, css::uno::UNO_QUERY_THROW ) { @@ -87,7 +86,6 @@ void AnimationCommandNode::activate_st() mpShape->pause(); else mpShape->play(); - mbToggled = true; } break; } @@ -111,26 +109,6 @@ void AnimationCommandNode::activate_st() "AnimationCommandNode::deactivate" ) ); } -void AnimationCommandNode::deactivate_st( NodeState /*eDestState*/ ) -{ - switch( mxCommandNode->getCommand() ) { - // the command toggles the pause status on a media object - case EffectCommands::TOGGLEPAUSE: - { - if (mpShape && mbToggled) - { - if( mpShape->isPlaying() ) - mpShape->pause(); - else - mpShape->play(); - mbToggled = false; - } - break; - } - - } -} - bool AnimationCommandNode::hasPendingAnimation() const { return mxCommandNode->getCommand() == EffectCommands::STOPAUDIO || mpShape; diff --git a/slideshow/source/engine/animationnodes/animationcommandnode.hxx b/slideshow/source/engine/animationnodes/animationcommandnode.hxx index 1aacd1b6a071..675da7c3b0e8 100644 --- a/slideshow/source/engine/animationnodes/animationcommandnode.hxx +++ b/slideshow/source/engine/animationnodes/animationcommandnode.hxx @@ -46,11 +46,9 @@ protected: private: virtual void activate_st() override; - virtual void deactivate_st( NodeState eDestState ) override; virtual bool hasPendingAnimation() const override; private: - bool mbToggled; IExternalMediaShapeBaseSharedPtr mpShape; css::uno::Reference<css::animations::XCommand > mxCommandNode; }; |