Update ooo320-m1
[ooovba.git] / slideshow / source / engine / animationnodes / animationcommandnode.hxx
blob191fe44865a3e415c8dc4406e6383cd2fbe75008
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: animationcommandnode.hxx,v $
10 * $Revision: 1.6.18.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_SLIDESHOW_ANIMATIONCOMMANDNODE_HXX
31 #define INCLUDED_SLIDESHOW_ANIMATIONCOMMANDNODE_HXX
33 #include "basecontainernode.hxx"
34 #include "externalmediashape.hxx"
35 #include "soundplayer.hxx"
36 #include "com/sun/star/animations/XCommand.hpp"
38 namespace slideshow {
39 namespace internal {
41 /** Command node.
43 This animation node encapsulates a command. Not yet implemented:
44 verb & custom.
46 class AnimationCommandNode : public BaseNode
48 public:
49 AnimationCommandNode(
50 ::com::sun::star::uno::Reference<
51 ::com::sun::star::animations::XAnimationNode> const& xNode,
52 ::boost::shared_ptr<BaseContainerNode> const& pParent,
53 NodeContext const& rContext );
55 protected:
56 virtual void dispose();
58 private:
59 virtual void activate_st();
60 virtual bool hasPendingAnimation() const;
62 private:
63 ExternalMediaShapeSharedPtr mpShape;
64 ::com::sun::star::uno::Reference<
65 ::com::sun::star::animations::XCommand > mxCommandNode;
66 bool mbIsPaused;
69 } // namespace internal
70 } // namespace slideshow
72 #endif /* INCLUDED_SLIDESHOW_ANIMATIONAUDIONODE_HXX */