2005-03-18 16:11:24 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* $RCSfile: animationcommandnode.cxx,v $
|
|
|
|
* $Revision: 1.9 $
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
2008-04-10 23:40:10 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2005-03-18 16:11:24 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 07:33:51 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_slideshow.hxx"
|
|
|
|
|
2005-03-18 16:11:24 +00:00
|
|
|
// must be first
|
2007-07-17 13:47:16 +00:00
|
|
|
#include <canvas/debug.hxx>
|
|
|
|
#include <canvas/verbosetrace.hxx>
|
|
|
|
#include <com/sun/star/presentation/EffectCommands.hpp>
|
|
|
|
|
2006-07-26 06:30:55 +00:00
|
|
|
#include "animationcommandnode.hxx"
|
|
|
|
#include "delayevent.hxx"
|
|
|
|
#include "tools.hxx"
|
|
|
|
#include "nodetools.hxx"
|
|
|
|
|
2007-07-17 13:47:16 +00:00
|
|
|
#include <boost/bind.hpp>
|
|
|
|
|
2006-12-13 14:29:27 +00:00
|
|
|
namespace slideshow {
|
2006-07-26 06:30:55 +00:00
|
|
|
namespace internal {
|
|
|
|
|
|
|
|
void AnimationCommandNode::dispose()
|
2005-03-18 16:11:24 +00:00
|
|
|
{
|
2006-07-26 06:30:55 +00:00
|
|
|
mxCommandNode.clear();
|
|
|
|
BaseNode::dispose();
|
|
|
|
}
|
2005-03-18 16:11:24 +00:00
|
|
|
|
2006-07-26 06:30:55 +00:00
|
|
|
void AnimationCommandNode::activate_()
|
|
|
|
{
|
|
|
|
namespace EffectCommands = com::sun::star::presentation::EffectCommands;
|
|
|
|
|
|
|
|
switch( mxCommandNode->getCommand() ) {
|
|
|
|
// the command is user defined
|
|
|
|
case EffectCommands::CUSTOM: break;
|
|
|
|
// the command is an ole verb.
|
|
|
|
case EffectCommands::VERB: break;
|
|
|
|
// the command starts playing on a media object
|
|
|
|
case EffectCommands::PLAY: break;
|
|
|
|
// the command toggles the pause status on a media object
|
|
|
|
case EffectCommands::TOGGLEPAUSE: break;
|
|
|
|
// the command stops the animation on a media object
|
|
|
|
case EffectCommands::STOP: break;
|
|
|
|
// the command stops all currently running sound effects
|
|
|
|
case EffectCommands::STOPAUDIO:
|
|
|
|
getContext().mrEventMultiplexer.notifyCommandStopAudio( getSelf() );
|
|
|
|
break;
|
|
|
|
}
|
2005-03-18 16:11:24 +00:00
|
|
|
|
2006-07-26 06:30:55 +00:00
|
|
|
// deactivate ASAP:
|
|
|
|
scheduleDeactivationEvent(
|
|
|
|
makeEvent( boost::bind( &AnimationNode::deactivate, getSelf() ) ) );
|
|
|
|
}
|
2005-03-18 16:11:24 +00:00
|
|
|
|
2006-07-26 06:30:55 +00:00
|
|
|
bool AnimationCommandNode::hasPendingAnimation() const
|
|
|
|
{
|
|
|
|
return false;
|
2005-03-18 16:11:24 +00:00
|
|
|
}
|
2006-07-26 06:30:55 +00:00
|
|
|
|
|
|
|
} // namespace internal
|
2006-12-13 14:29:27 +00:00
|
|
|
} // namespace slideshow
|