20#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESFACTORY_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_ACTIVITIESFACTORY_HXX
23#include <com/sun/star/animations/XAnimate.hpp>
24#include <com/sun/star/animations/XAnimateColor.hpp>
54 sal_uInt32 nMinNumberOfFrames,
56 ::std::optional<double>
const& aRepeats,
60 const ::basegfx::B2DVector& rSlideBounds )
149 const css::uno::Reference< css::animations::XAnimate >& xNode );
171 const css::uno::Reference< css::animations::XAnimate >& xNode );
193 const css::uno::Reference< css::animations::XAnimate >& xNode );
215 const css::uno::Reference< css::animations::XAnimateColor >& xNode );
237 const css::uno::Reference< css::animations::XAnimate >& xNode );
259 const css::uno::Reference< css::animations::XAnimate >& xNode );
281 const css::uno::Reference< css::animations::XAnimate >& xNode );
303 bool bDirectionForward );
This class handles the XSprite updates needed for animations, such as moves, scales etc.
This class handles events in a presentation.
AnimationActivitySharedPtr createAnimateActivity(const CommonParameters &rParms, const NumberAnimationSharedPtr &rAnimator, const css::uno::Reference< css::animations::XAnimate > &xNode)
Create an activity from an XAnimate node.
AnimationActivitySharedPtr createSimpleActivity(const CommonParameters &rParms, const NumberAnimationSharedPtr &rAnimator, bool bDirectionForward)
Create a simple activity for the given animator.
::std::shared_ptr< NumberAnimation > NumberAnimationSharedPtr
::std::shared_ptr< AnimationActivity > AnimationActivitySharedPtr
::std::shared_ptr< HSLColorAnimation > HSLColorAnimationSharedPtr
::std::shared_ptr< PairAnimation > PairAnimationSharedPtr
::std::shared_ptr< BoolAnimation > BoolAnimationSharedPtr
::std::shared_ptr< Event > EventSharedPtr
::std::shared_ptr< EnumAnimation > EnumAnimationSharedPtr
::std::shared_ptr< StringAnimation > StringAnimationSharedPtr
::std::shared_ptr< Shape > ShapeSharedPtr
::std::shared_ptr< ColorAnimation > ColorAnimationSharedPtr
Collection of common factory parameters.
EventQueue & mrEventQueue
Event queue to insert the end event into.
bool mbAutoReverse
When true, activity is played reversed after mnDuration.
::std::optional< double > const maRepeats
Number of repeats for the simple duration.
sal_uInt32 mnMinNumberOfFrames
Minimal number of frames for this activity.
ActivitiesQueue & mrActivitiesQueue
Event queue to insert the end event into.
EventSharedPtr mpEndEvent
End event to fire when animation is over.
ShapeSharedPtr mpShape
Shape, to get bounds from.
double mnDeceleration
Fraction of simple time to decelerate animation.
double mnAcceleration
Fraction of simple time to accelerate animation.
::basegfx::B2DVector maSlideBounds
LayerManager, to get page size from.
CommonParameters(EventSharedPtr xEndEvent, EventQueue &rEventQueue, ActivitiesQueue &rActivitiesQueue, double nMinDuration, sal_uInt32 nMinNumberOfFrames, bool bAutoReverse, ::std::optional< double > const &aRepeats, double nAcceleration, double nDeceleration, ShapeSharedPtr xShape, const ::basegfx::B2DVector &rSlideBounds)
double mnMinDuration
Simple duration of the activity.