LibreOffice Module slideshow (master) 1
animationfactory.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONFACTORY_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONFACTORY_HXX
22
23
24#include "numberanimation.hxx"
25#include "enumanimation.hxx"
26#include "coloranimation.hxx"
27#include "stringanimation.hxx"
28#include "boolanimation.hxx"
29#include "pairanimation.hxx"
30
31#include "shapemanager.hxx"
32
33namespace box2d::utils { typedef ::std::shared_ptr< class box2DWorld > Box2DWorldSharedPtr; }
34
35/* Definition of AnimationFactory class */
36
37namespace slideshow::internal
38 {
39
46 namespace AnimationFactory
47 {
53 {
66 };
67
68 AttributeClass classifyAttributeName( const OUString& rAttrName );
69
72 {
78 };
79
81 const AnimatableShapeSharedPtr& rShape,
82 const ShapeManagerSharedPtr& rShapeManager,
83 const ::basegfx::B2DVector& rSlideSize,
84 const box2d::utils::Box2DWorldSharedPtr& pBox2DWorld,
85 int nFlags=0 );
86
87 EnumAnimationSharedPtr createEnumPropertyAnimation( const OUString& rAttrName,
88 const AnimatableShapeSharedPtr& rShape,
89 const ShapeManagerSharedPtr& rShapeManager,
90 const ::basegfx::B2DVector& rSlideSize,
91 const box2d::utils::Box2DWorldSharedPtr& pBox2DWorld,
92 int nFlags );
93
95 const AnimatableShapeSharedPtr& rShape,
96 const ShapeManagerSharedPtr& rShapeManager,
97 const ::basegfx::B2DVector& rSlideSize,
98 const box2d::utils::Box2DWorldSharedPtr& pBox2DWorld,
99 int nFlags=0 );
100
109 const ShapeManagerSharedPtr& rShapeManager,
110 const ::basegfx::B2DVector& rSlideSize,
111 sal_Int16 nTransformType,
112 int nFlags );
113
115 const AnimatableShapeSharedPtr& rShape,
116 const ShapeManagerSharedPtr& rShapeManager,
117 const ::basegfx::B2DVector& rSlideSize,
118 const box2d::utils::Box2DWorldSharedPtr& pBox2DWorld,
119 int nFlags );
120
121 BoolAnimationSharedPtr createBoolPropertyAnimation( const OUString& rAttrName,
122 const AnimatableShapeSharedPtr& rShape,
123 const ShapeManagerSharedPtr& rShapeManager,
124 const ::basegfx::B2DVector& rSlideSize,
125 const box2d::utils::Box2DWorldSharedPtr& pBox2DWorld,
126 int nFlags );
127
128 NumberAnimationSharedPtr createPathMotionAnimation( const OUString& rSVGDPath,
129 sal_Int16 nAdditive,
130 const AnimatableShapeSharedPtr& rShape,
131 const ShapeManagerSharedPtr& rShapeManager,
132 const ::basegfx::B2DVector& rSlideSize,
133 const box2d::utils::Box2DWorldSharedPtr& pBox2DWorld,
134 int nFlags );
135
137 const double fDuration,
138 const ShapeManagerSharedPtr& rShapeManager,
139 const ::basegfx::B2DVector& rSlideSize,
140 const ::basegfx::B2DVector& rStartVelocity,
141 const double fDensity,
142 const double fBounciness,
143 int nFlags );
144 }
145
146}
147
148#endif // INCLUDED_SLIDESHOW_SOURCE_INC_ANIMATIONFACTORY_HXX
149
150/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::std::shared_ptr< box2DWorld > Box2DWorldSharedPtr
FactoryFlags
Collection of flags common to all factory methods.
@ FLAG_NO_SPRITE
Don't call enter/leaveAnimation for the Shape.
NumberAnimationSharedPtr createNumberPropertyAnimation(const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags=0)
PairAnimationSharedPtr createPairPropertyAnimation(const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, sal_Int16 nTransformType, int nFlags)
Create scale or move animation.
NumberAnimationSharedPtr createPhysicsAnimation(const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, const double fDuration, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const ::basegfx::B2DVector &rStartVelocity, const double fDensity, const double fBounciness, int nFlags)
AttributeClass classifyAttributeName(const OUString &rAttrName)
ColorAnimationSharedPtr createColorPropertyAnimation(const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags=0)
NumberAnimationSharedPtr createPathMotionAnimation(const OUString &rSVGDPath, sal_Int16 nAdditive, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
AttributeClass
Classifies the attribute name.
@ CLASS_STRING_PROPERTY
Use createStringPropertyAnimation.
@ CLASS_UNKNOWN_PROPERTY
Unknown, prolly invalid name.
@ CLASS_COLOR_PROPERTY
Use createColorPropertyAnimation.
@ CLASS_BOOL_PROPERTY
Use createBoolPropertyAnimation.
@ CLASS_NUMBER_PROPERTY
Use createNumberPropertyAnimation.
@ CLASS_ENUM_PROPERTY
Use createEnumPropertyAnimation.
BoolAnimationSharedPtr createBoolPropertyAnimation(const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
EnumAnimationSharedPtr createEnumPropertyAnimation(const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
StringAnimationSharedPtr createStringPropertyAnimation(const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
::std::shared_ptr< NumberAnimation > NumberAnimationSharedPtr
::std::shared_ptr< AnimatableShape > AnimatableShapeSharedPtr
::std::shared_ptr< PairAnimation > PairAnimationSharedPtr
::std::shared_ptr< BoolAnimation > BoolAnimationSharedPtr
::std::shared_ptr< EnumAnimation > EnumAnimationSharedPtr
::std::shared_ptr< StringAnimation > StringAnimationSharedPtr
std::shared_ptr< ShapeManager > ShapeManagerSharedPtr
Definition: box2dtools.hxx:23
::std::shared_ptr< ColorAnimation > ColorAnimationSharedPtr