LibreOffice Module slideshow (master) 1
|
Command node. More...
#include <animationcommandnode.hxx>
Public Member Functions | |
AnimationCommandNode (css::uno::Reference< css::animations::XAnimationNode > const &xNode, ::std::shared_ptr< BaseContainerNode > const &pParent, NodeContext const &rContext) | |
Public Member Functions inherited from slideshow::internal::BaseNode | |
BaseNode (css::uno::Reference< css::animations::XAnimationNode > const &xNode, BaseContainerNodeSharedPtr pParent, NodeContext const &rContext) | |
BaseNode (const BaseNode &)=delete | |
BaseNode & | operator= (const BaseNode &)=delete |
void | setSelf (const BaseNodeSharedPtr &rSelf) |
Provide the node with a shared_ptr to itself. More... | |
virtual void | showState () const |
virtual const char * | getDescription () const |
const ::std::shared_ptr< BaseContainerNode > & | getParentNode () const |
virtual void | dispose () override |
Dispose all object references. More... | |
virtual bool | init () override |
Init this node. More... | |
virtual bool | resolve () override |
Resolve node start time. More... | |
virtual void | activate () override |
Immediately start this node. More... | |
virtual void | deactivate () override |
Immediately stop this node. More... | |
virtual void | end () override |
End the animation on this node. More... | |
virtual css::uno::Reference< css::animations::XAnimationNode > | getXAnimationNode () const override |
Query the corresponding XAnimationNode. More... | |
virtual NodeState | getState () const override |
Query node state. More... | |
virtual bool | registerDeactivatingListener (const AnimationNodeSharedPtr &rNotifee) override |
Register a deactivating listener. More... | |
virtual void | notifyDeactivating (const AnimationNodeSharedPtr &rNotifier) override |
Called to notify another AnimationNode's deactivation. More... | |
bool | isMainSequenceRootNode () const |
sal_Int16 | getFillMode () |
Get the node's fill mode. More... | |
virtual void | removeEffect () override |
Called by the container to remove the animation effect to make the painted shape correct if it restart because of repeat or rewind ( fill mode is AnimationFill::REMOVE ) to start state. More... | |
virtual css::uno::Reference< css::animations::XAnimationNode > | getXAnimationNode () const =0 |
Query the corresponding XAnimationNode. More... | |
virtual bool | init ()=0 |
Init this node. More... | |
virtual bool | resolve ()=0 |
Resolve node start time. More... | |
virtual void | activate ()=0 |
Immediately start this node. More... | |
virtual void | deactivate ()=0 |
Immediately stop this node. More... | |
virtual void | end ()=0 |
End the animation on this node. More... | |
virtual NodeState | getState () const =0 |
Query node state. More... | |
virtual bool | registerDeactivatingListener (const AnimationNodeSharedPtr &rNotifee)=0 |
Register a deactivating listener. More... | |
virtual void | notifyDeactivating (const AnimationNodeSharedPtr &rNotifier)=0 |
Called to notify another AnimationNode's deactivation. More... | |
virtual void | removeEffect ()=0 |
Called by the container to remove the animation effect to make the painted shape correct if it restart because of repeat or rewind ( fill mode is AnimationFill::REMOVE ) to start state. More... | |
virtual bool | hasPendingAnimation () const =0 |
Query node whether it has an animation pending. More... | |
Public Member Functions inherited from slideshow::internal::Disposable | |
virtual | ~Disposable () |
virtual void | dispose ()=0 |
Dispose all object references. More... | |
Static Public Member Functions | |
static bool | GetLoopingFromAnimation (const css::uno::Reference< css::animations::XCommand > &xCommandNode, const css::uno::Reference< css::drawing::XShape > &xShape) |
Assuming that xCommandNode is a play command, determines if an audio node wants looping when xShape plays. More... | |
Protected Member Functions | |
virtual void | dispose () override |
Dispose all object references. More... | |
Protected Member Functions inherited from slideshow::internal::BaseNode | |
void | scheduleDeactivationEvent (EventSharedPtr const &pEvent=EventSharedPtr()) |
SlideShowContext const & | getContext () const |
::std::shared_ptr< BaseNode > const & | getSelf () const |
bool | checkValidNode () const |
Private Member Functions | |
virtual void | activate_st () override |
virtual bool | hasPendingAnimation () const override |
Query node whether it has an animation pending. More... | |
Private Attributes | |
IExternalMediaShapeBaseSharedPtr | mpShape |
css::uno::Reference< css::animations::XCommand > | mxCommandNode |
css::uno::Reference< css::drawing::XShape > | mxShape |
Additional Inherited Members | |
Public Types inherited from slideshow::internal::AnimationNode | |
enum | NodeState { INVALID = 0 , UNRESOLVED = 1 , RESOLVED = 2 , ACTIVE = 4 , FROZEN = 8 , ENDED = 16 } |
The current state of this AnimationNode. More... | |
Command node.
This animation node encapsulates a command. Not yet implemented: verb & custom.
Definition at line 35 of file animationcommandnode.hxx.
slideshow::internal::AnimationCommandNode::AnimationCommandNode | ( | css::uno::Reference< css::animations::XAnimationNode > const & | xNode, |
::std::shared_ptr< BaseContainerNode > const & | pParent, | ||
NodeContext const & | rContext | ||
) |
Definition at line 87 of file animationcommandnode.cxx.
References slideshow::internal::BaseNode::getContext(), mpShape, mpSubsettableShapeManager, mxCommandNode, and mxShape.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 144 of file animationcommandnode.cxx.
References slideshow::internal::BaseNode::getContext(), GetLoopingFromAnimation(), slideshow::internal::BaseNode::getSelf(), makeEvent, mpShape, slideshow::internal::SlideShowContext::mrEventMultiplexer, mxCommandNode, mxShape, slideshow::internal::EventMultiplexer::notifyCommandStopAudio(), and slideshow::internal::BaseNode::scheduleDeactivationEvent().
|
overrideprotectedvirtual |
Dispose all object references.
An implementor of this method must first call dispose() on any of its external references, and release them after that.
Reimplemented from slideshow::internal::BaseNode.
Definition at line 101 of file animationcommandnode.cxx.
References slideshow::internal::BaseNode::dispose(), mpShape, and mxCommandNode.
|
static |
Assuming that xCommandNode is a play command, determines if an audio node wants looping when xShape plays.
Definition at line 108 of file animationcommandnode.cxx.
Referenced by activate_st().
|
overrideprivatevirtual |
Query node whether it has an animation pending.
Implements slideshow::internal::AnimationNode.
Definition at line 207 of file animationcommandnode.cxx.
References mpShape, and mxCommandNode.
|
private |
Definition at line 57 of file animationcommandnode.hxx.
Referenced by activate_st(), AnimationCommandNode(), dispose(), and hasPendingAnimation().
|
private |
Definition at line 58 of file animationcommandnode.hxx.
Referenced by activate_st(), AnimationCommandNode(), dispose(), and hasPendingAnimation().
|
private |
Definition at line 59 of file animationcommandnode.hxx.
Referenced by activate_st(), and AnimationCommandNode().