2005-03-18 16:11:34 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 23:42:23 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2005-03-18 16:11:34 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2005-03-18 16:11:34 +00:00
|
|
|
*
|
2008-04-10 23:42:23 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2005-03-18 16:11:34 +00:00
|
|
|
*
|
2008-04-10 23:42:23 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2005-03-18 16:11:34 +00:00
|
|
|
*
|
2008-04-10 23:42:23 +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:34 +00:00
|
|
|
*
|
2008-04-10 23:42:23 +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:34 +00:00
|
|
|
*
|
2008-04-10 23:42:23 +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:34 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
2006-07-26 06:31:06 +00:00
|
|
|
#ifndef INCLUDED_SLIDESHOW_ANIMATIONCOMMANDNODE_HXX
|
|
|
|
#define INCLUDED_SLIDESHOW_ANIMATIONCOMMANDNODE_HXX
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
#include "basecontainernode.hxx"
|
2009-01-06 08:40:41 +00:00
|
|
|
#include "externalmediashape.hxx"
|
2006-07-26 06:31:06 +00:00
|
|
|
#include "soundplayer.hxx"
|
|
|
|
#include "com/sun/star/animations/XCommand.hpp"
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-12-13 14:29:42 +00:00
|
|
|
namespace slideshow {
|
2006-07-26 06:31:06 +00:00
|
|
|
namespace internal {
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
/** Command node.
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2009-01-06 08:40:41 +00:00
|
|
|
This animation node encapsulates a command. Not yet implemented:
|
|
|
|
verb & custom.
|
2006-07-26 06:31:06 +00:00
|
|
|
*/
|
|
|
|
class AnimationCommandNode : public BaseNode
|
2005-03-18 16:11:34 +00:00
|
|
|
{
|
2006-07-26 06:31:06 +00:00
|
|
|
public:
|
|
|
|
AnimationCommandNode(
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::animations::XAnimationNode> const& xNode,
|
|
|
|
::boost::shared_ptr<BaseContainerNode> const& pParent,
|
2009-01-06 08:40:41 +00:00
|
|
|
NodeContext const& rContext );
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
protected:
|
|
|
|
virtual void dispose();
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
private:
|
2009-01-06 08:40:41 +00:00
|
|
|
virtual void activate_st();
|
2006-07-26 06:31:06 +00:00
|
|
|
virtual bool hasPendingAnimation() const;
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
private:
|
2009-01-06 08:40:41 +00:00
|
|
|
ExternalMediaShapeSharedPtr mpShape;
|
2006-07-26 06:31:06 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::animations::XCommand > mxCommandNode;
|
2009-01-06 08:40:41 +00:00
|
|
|
bool mbIsPaused;
|
2006-07-26 06:31:06 +00:00
|
|
|
};
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
} // namespace internal
|
2006-12-13 14:29:42 +00:00
|
|
|
} // namespace slideshow
|
2005-03-18 16:11:34 +00:00
|
|
|
|
2006-07-26 06:31:06 +00:00
|
|
|
#endif /* INCLUDED_SLIDESHOW_ANIMATIONAUDIONODE_HXX */
|