LibreOffice Module slideshow (master) 1
|
This interface extends BaseNode with child handling methods. More...
#include <basecontainernode.hxx>
Public Member Functions | |
BaseContainerNode (css::uno::Reference< css::animations::XAnimationNode > const &xNode, BaseContainerNodeSharedPtr const &pParent, NodeContext const &rContext) | |
void | appendChildNode (AnimationNodeSharedPtr const &pNode) |
Add given child node to this container. More... | |
virtual void | showState () const override |
virtual const char * | getDescription () const override |
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... | |
Protected Types | |
typedef ::std::vector< AnimationNodeSharedPtr > | VectorOfNodes |
Protected Member Functions | |
virtual void | dispose () override |
Dispose all object references. More... | |
bool | isDurationIndefinite () const |
bool | isChildNode (AnimationNodeSharedPtr const &pNode) const |
bool | notifyDeactivatedChild (AnimationNodeSharedPtr const &pChildNode) |
void | repeat () |
template<typename FuncT > | |
void | forEachChildNode (FuncT func, int nodeStateMask) const |
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 |
Protected Attributes | |
VectorOfNodes | maChildren |
::std::size_t | mnFinishedChildren |
double | mnLeftIterations |
Private Member Functions | |
virtual bool | init_st () override |
bool | init_children () |
virtual void | deactivate_st (NodeState eDestState) override |
virtual bool | hasPendingAnimation () const override |
Query node whether it has an animation pending. More... | |
virtual void | activate_st () override=0 |
virtual void | notifyDeactivating (AnimationNodeSharedPtr const &rNotifier) override=0 |
Called to notify another AnimationNode's deactivation. More... | |
Private Attributes | |
const bool | mbRepeatIndefinite |
const bool | mbRestart |
const bool | mbDurationIndefinite |
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... | |
This interface extends BaseNode with child handling methods.
Used for XAnimationNode objects which have children
Definition at line 33 of file basecontainernode.hxx.
|
protected |
Definition at line 85 of file basecontainernode.hxx.
slideshow::internal::BaseContainerNode::BaseContainerNode | ( | css::uno::Reference< css::animations::XAnimationNode > const & | xNode, |
BaseContainerNodeSharedPtr const & | pParent, | ||
NodeContext const & | rContext | ||
) |
Definition at line 50 of file basecontainernode.cxx.
References maChildren.
|
overrideprivatepure virtual |
Reimplemented from slideshow::internal::BaseNode.
Implemented in slideshow::internal::ParallelTimeContainer, and slideshow::internal::SequentialTimeContainer.
Referenced by repeat().
void slideshow::internal::BaseContainerNode::appendChildNode | ( | AnimationNodeSharedPtr const & | pNode | ) |
Add given child node to this container.
Definition at line 114 of file basecontainernode.cxx.
References slideshow::internal::BaseNode::checkValidNode(), slideshow::internal::BaseNode::getSelf(), and maChildren.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 90 of file basecontainernode.cxx.
References slideshow::internal::AnimationNode::deactivate(), slideshow::internal::AnimationNode::end(), slideshow::internal::AnimationNode::ENDED, forEachChildNode(), slideshow::internal::AnimationNode::FROZEN, and mnLeftIterations.
|
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.
Reimplemented in slideshow::internal::SequentialTimeContainer.
Definition at line 65 of file basecontainernode.cxx.
References slideshow::internal::BaseNode::dispose(), slideshow::internal::Disposable::dispose(), forEachChildNode(), and maChildren.
Referenced by slideshow::internal::SequentialTimeContainer::dispose().
|
inlineprotected |
Definition at line 75 of file basecontainernode.hxx.
References maChildren.
Referenced by deactivate_st(), dispose(), notifyDeactivatedChild(), and repeat().
|
inlineoverridevirtual |
Reimplemented from slideshow::internal::BaseNode.
Reimplemented in slideshow::internal::ParallelTimeContainer, and slideshow::internal::SequentialTimeContainer.
Definition at line 47 of file basecontainernode.hxx.
|
overrideprivatevirtual |
Query node whether it has an animation pending.
Implements slideshow::internal::AnimationNode.
Definition at line 104 of file basecontainernode.cxx.
References slideshow::internal::AnimationNode::hasPendingAnimation(), and maChildren.
|
private |
Definition at line 79 of file basecontainernode.cxx.
References slideshow::internal::AnimationNode::init(), maChildren, o3tl::make_unsigned(), and mnFinishedChildren.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 72 of file basecontainernode.cxx.
References slideshow::internal::BaseNode::getXAnimationNode(), init_children(), and mnLeftIterations.
|
protected |
Definition at line 127 of file basecontainernode.cxx.
References maChildren.
Referenced by notifyDeactivatedChild(), and slideshow::internal::SequentialTimeContainer::skipEffect().
|
inlineprotected |
Definition at line 65 of file basecontainernode.hxx.
References mbDurationIndefinite.
Referenced by slideshow::internal::ParallelTimeContainer::activate_st(), slideshow::internal::SequentialTimeContainer::activate_st(), and notifyDeactivatedChild().
|
protected |
Definition at line 136 of file basecontainernode.cxx.
References slideshow::internal::EventQueue::addEvent(), slideshow::internal::BaseNode::deactivate(), slideshow::internal::AnimationNode::ENDED, forEachChildNode(), slideshow::internal::AnimationNode::FROZEN, slideshow::internal::BaseNode::getContext(), slideshow::internal::BaseNode::getFillMode(), slideshow::internal::BaseNode::getState(), slideshow::internal::AnimationNode::INVALID, isChildNode(), isDurationIndefinite(), maChildren, makeDelay, mbRepeatIndefinite, mbRestart, mnFinishedChildren, mnLeftIterations, slideshow::internal::SlideShowContext::mrEventQueue, slideshow::internal::AnimationNode::removeEffect(), and repeat().
Referenced by slideshow::internal::ParallelTimeContainer::notifyDeactivating(), and slideshow::internal::SequentialTimeContainer::notifyDeactivating().
|
overrideprivatepure virtual |
Called to notify another AnimationNode's deactivation.
rNotifier | The instance who calls this method. |
Reimplemented from slideshow::internal::BaseNode.
Implemented in slideshow::internal::ParallelTimeContainer, and slideshow::internal::SequentialTimeContainer.
|
protected |
Definition at line 189 of file basecontainernode.cxx.
References activate_st(), slideshow::internal::AnimationNode::end(), slideshow::internal::AnimationNode::ENDED, forEachChildNode(), slideshow::internal::AnimationNode::FROZEN, slideshow::internal::BaseNode::getState(), and init_children().
Referenced by notifyDeactivatedChild().
|
overridevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 202 of file basecontainernode.cxx.
References slideshow::internal::debugGetNodeName(), i, maChildren, SAL_INFO, and slideshow::internal::BaseNode::showState().
|
protected |
Definition at line 86 of file basecontainernode.hxx.
Referenced by slideshow::internal::ParallelTimeContainer::activate_st(), slideshow::internal::SequentialTimeContainer::activate_st(), appendChildNode(), dispose(), forEachChildNode(), hasPendingAnimation(), init_children(), isChildNode(), notifyDeactivatedChild(), slideshow::internal::SequentialTimeContainer::notifyDeactivating(), slideshow::internal::SequentialTimeContainer::resolveChild(), and showState().
|
private |
Definition at line 93 of file basecontainernode.hxx.
Referenced by isDurationIndefinite().
|
private |
Definition at line 91 of file basecontainernode.hxx.
Referenced by notifyDeactivatedChild().
|
private |
Definition at line 92 of file basecontainernode.hxx.
Referenced by notifyDeactivatedChild().
|
protected |
Definition at line 87 of file basecontainernode.hxx.
Referenced by slideshow::internal::SequentialTimeContainer::activate_st(), init_children(), notifyDeactivatedChild(), slideshow::internal::SequentialTimeContainer::notifyDeactivating(), and slideshow::internal::SequentialTimeContainer::resolveChild().
|
protected |
Definition at line 88 of file basecontainernode.hxx.
Referenced by deactivate_st(), init_st(), and notifyDeactivatedChild().