20#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_EFFECTREWINDER_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_EFFECTREWINDER_HXX
24#include <eventhandler.hxx>
28#include <com/sun/star/drawing/XDrawPage.hpp>
35class EventMultiplexer;
68 const css::uno::Reference<css::animations::XAnimationNode>& xRootNode);
73 const css::uno::Reference<css::drawing::XDrawPage>& xSlide);
96 const ::std::shared_ptr<ScreenUpdater::UpdateLock>& rpPaintLock,
97 const ::std::function<
void ()>& rSlideRewindFunctor,
98 const ::std::function<
void ()>& rPreviousSlideFunctor);
159 sal_Int32 nEffectCount,
160 const bool bRedisplayCurrentSlide,
161 const ::std::function<
void ()>& rSlideRewindFunctor);
169 const ::std::function<
void ()>& rPreviousSlideFunctor);
Rewind single effects of the main effect sequence.
void asynchronousRewindToPreviousSlide(const ::std::function< void()> &rPreviousSlideFunctor)
Go to the previous slide and replay all of its main sequence effects (or effect groups).
bool mbNonUserTriggeredMainSequenceEffectSeen
EventHandlerSharedPtr mpSlideEndHandler
sal_Int32 countMainSequenceEffects()
Count the number of effects (or effect groups) in the main effect sequence.
void skipSingleMainSequenceEffects()
Skip the next main sequence effect.
css::uno::Reference< css::animations::XAnimationNode > mxCurrentAnimationRootNode
void asynchronousRewind(sal_Int32 nEffectCount, const bool bRedisplayCurrentSlide, const ::std::function< void()> &rSlideRewindFunctor)
Rewind the last effect of the main effect sequence by replaying all previous effects.
bool mbHasAdvancedTimeSetting
EventQueue & mrEventQueue
void setRootAnimationNode(const css::uno::Reference< css::animations::XAnimationNode > &xRootNode)
Store the root node of the animation tree.
sal_Int32 mnMainSequenceEffectCount
The number off main sequence effects so far.
css::uno::Reference< css::drawing::XDrawPage > mxCurrentSlide
bool notifyAnimationStart(const AnimationNodeSharedPtr &rpNode)
Called by listeners when an animation (not necessarily of a main sequence effect) starts.
void dispose()
Call Dispose() before the owner of an EffectRewinder object dies so that the EffectRewinder can relea...
void skipAllMainSequenceEffects()
Call this method after gotoPreviousEffect() triggered a slide change to the previous slide.
EffectRewinder(EventMultiplexer &rEventMultiplexer, EventQueue &rEventQueue, UserEventQueue &rUserEventQueue)
AnimationEventHandlerSharedPtr mpAnimationStartHandler
void setCurrentSlide(const css::uno::Reference< css::drawing::XDrawPage > &xSlide)
Store the XDrawPage to reach specific slide properties.
UserEventQueue & mrUserEventQueue
EventMultiplexer & mrEventMultiplexer
EventHandlerSharedPtr mpSlideStartHandler
EventSharedPtr mpAsynchronousRewindEvent
This is the currently scheduled event that executes the asynchronous part of the effect rewinding.
bool rewind(const ::std::shared_ptr< ScreenUpdater::UpdateLock > &rpPaintLock, const ::std::function< void()> &rSlideRewindFunctor, const ::std::function< void()> &rPreviousSlideFunctor)
Rewind one effect of the main effect sequence.
::std::shared_ptr< ScreenUpdater::UpdateLock > mpPaintLock
This class multiplexes user-activated and slide-show global events.
This class handles events in a presentation.
This class schedules user-activated events.
::std::shared_ptr< EventHandler > EventHandlerSharedPtr
::std::shared_ptr< AnimationNode > AnimationNodeSharedPtr
::std::shared_ptr< Event > EventSharedPtr
::std::shared_ptr< AnimationEventHandler > AnimationEventHandlerSharedPtr