LibreOffice Module slideshow (master) 1
|
Audio node. More...
#include <animationaudionode.hxx>
Public Member Functions | |
AnimationAudioNode (css::uno::Reference< css::animations::XAnimationNode > const &xNode, BaseContainerNodeSharedPtr 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... | |
Public Member Functions inherited from slideshow::internal::AnimationEventHandler | |
virtual | ~AnimationEventHandler () |
virtual bool | handleAnimationEvent (const AnimationNodeSharedPtr &rNode)=0 |
Handle the event. 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 void | deactivate_st (NodeState eDestState) override |
virtual bool | hasPendingAnimation () const override |
Query node whether it has an animation pending. More... | |
virtual bool | handleAnimationEvent (const AnimationNodeSharedPtr &rNode) override |
overridden, because we need to deal with STOPAUDIO commands More... | |
void | createPlayer () const |
void | resetPlayer () const |
void | checkPlayingStatus () |
Private Attributes | |
css::uno::Reference< css::animations::XAudio > | mxAudioNode |
OUString | maSoundURL |
SoundPlayerSharedPtr | mpPlayer |
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... | |
Audio node.
This animation node contains an audio effect. Duration and start/stop behaviour is affected by the referenced audio file.
Definition at line 35 of file animationaudionode.hxx.
slideshow::internal::AnimationAudioNode::AnimationAudioNode | ( | css::uno::Reference< css::animations::XAnimationNode > const & | xNode, |
BaseContainerNodeSharedPtr const & | pParent, | ||
NodeContext const & | rContext | ||
) |
Definition at line 33 of file animationaudionode.cxx.
References ENSURE_OR_THROW, slideshow::internal::BaseNode::getContext(), maSoundURL, mxAudioNode, and mxComponentContext.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 58 of file animationaudionode.cxx.
References slideshow::internal::EventMultiplexer::addCommandStopAudioHandler(), checkPlayingStatus(), createPlayer(), slideshow::internal::BaseNode::getContext(), slideshow::internal::BaseNode::getSelf(), slideshow::internal::BaseNode::getXAnimationNode(), makeDelay, makeEvent, mpPlayer, slideshow::internal::SlideShowContext::mrEventMultiplexer, and slideshow::internal::BaseNode::scheduleDeactivationEvent().
|
private |
Definition at line 189 of file animationaudionode.cxx.
References slideshow::internal::BaseNode::getSelf(), makeDelay, mpPlayer, and slideshow::internal::BaseNode::scheduleDeactivationEvent().
Referenced by activate_st().
|
private |
Definition at line 150 of file animationaudionode.cxx.
References slideshow::internal::SoundPlayer::create(), slideshow::internal::BaseNode::getContext(), maSoundURL, mpPlayer, mrEventMultiplexer, and mxComponentContext.
Referenced by activate_st().
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 121 of file animationaudionode.cxx.
References slideshow::internal::EventQueue::addEvent(), slideshow::internal::BaseNode::getContext(), slideshow::internal::BaseNode::getSelf(), makeEvent, mpPlayer, mrEventMultiplexer, slideshow::internal::SlideShowContext::mrEventMultiplexer, slideshow::internal::SlideShowContext::mrEventQueue, slideshow::internal::EventMultiplexer::removeCommandStopAudioHandler(), and resetPlayer().
|
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 51 of file animationaudionode.cxx.
References slideshow::internal::BaseNode::dispose(), mxAudioNode, and resetPlayer().
|
overrideprivatevirtual |
overridden, because we need to deal with STOPAUDIO commands
Implements slideshow::internal::AnimationEventHandler.
Definition at line 181 of file animationaudionode.cxx.
References slideshow::internal::BaseNode::deactivate().
|
overrideprivatevirtual |
Query node whether it has an animation pending.
Implements slideshow::internal::AnimationNode.
Definition at line 142 of file animationaudionode.cxx.
|
private |
Definition at line 171 of file animationaudionode.cxx.
References mpPlayer.
Referenced by deactivate_st(), and dispose().
|
private |
Definition at line 56 of file animationaudionode.hxx.
Referenced by AnimationAudioNode(), and createPlayer().
|
mutableprivate |
Definition at line 57 of file animationaudionode.hxx.
Referenced by activate_st(), checkPlayingStatus(), createPlayer(), deactivate_st(), and resetPlayer().
|
private |
Definition at line 55 of file animationaudionode.hxx.
Referenced by AnimationAudioNode(), and dispose().