LibreOffice Module slideshow (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
slideshow::internal::AnimationCommandNode Class Reference

Command node. More...

#include <animationcommandnode.hxx>

Inheritance diagram for slideshow::internal::AnimationCommandNode:
[legend]
Collaboration diagram for slideshow::internal::AnimationCommandNode:
[legend]

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
 
BaseNodeoperator= (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...
 

Detailed Description

Command node.

This animation node encapsulates a command. Not yet implemented: verb & custom.

Definition at line 35 of file animationcommandnode.hxx.

Constructor & Destructor Documentation

◆ AnimationCommandNode()

slideshow::internal::AnimationCommandNode::AnimationCommandNode ( css::uno::Reference< css::animations::XAnimationNode > const &  xNode,
::std::shared_ptr< BaseContainerNode > const &  pParent,
NodeContext const &  rContext 
)

Member Function Documentation

◆ activate_st()

void slideshow::internal::AnimationCommandNode::activate_st ( )
overrideprivatevirtual

◆ dispose()

void slideshow::internal::AnimationCommandNode::dispose ( )
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.

◆ GetLoopingFromAnimation()

bool slideshow::internal::AnimationCommandNode::GetLoopingFromAnimation ( const css::uno::Reference< css::animations::XCommand > &  xCommandNode,
const css::uno::Reference< css::drawing::XShape > &  xShape 
)
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().

◆ hasPendingAnimation()

bool slideshow::internal::AnimationCommandNode::hasPendingAnimation ( ) const
overrideprivatevirtual

Query node whether it has an animation pending.

Returns
true, if this node (or at least one of its children) has an animation pending. Used to determine if the main sequence is actually empty, or contains effects

Implements slideshow::internal::AnimationNode.

Definition at line 207 of file animationcommandnode.cxx.

References mpShape, and mxCommandNode.

Member Data Documentation

◆ mpShape

IExternalMediaShapeBaseSharedPtr slideshow::internal::AnimationCommandNode::mpShape
private

◆ mxCommandNode

css::uno::Reference<css::animations::XCommand > slideshow::internal::AnimationCommandNode::mxCommandNode
private

◆ mxShape

css::uno::Reference<css::drawing::XShape> slideshow::internal::AnimationCommandNode::mxShape
private

Definition at line 59 of file animationcommandnode.hxx.

Referenced by activate_st(), and AnimationCommandNode().


The documentation for this class was generated from the following files: