LibreOffice Module slideshow (master) 1
Enumerations | Functions
slideshow::internal::AnimationFactory Namespace Reference

Factory for Animation objects. More...

Enumerations

enum  AttributeClass {
  CLASS_UNKNOWN_PROPERTY ,
  CLASS_NUMBER_PROPERTY ,
  CLASS_ENUM_PROPERTY ,
  CLASS_COLOR_PROPERTY ,
  CLASS_STRING_PROPERTY ,
  CLASS_BOOL_PROPERTY
}
 Classifies the attribute name. More...
 
enum  FactoryFlags { FLAG_NO_SPRITE = 1 }
 Collection of flags common to all factory methods. More...
 

Functions

AttributeClass classifyAttributeName (const OUString &rAttrName)
 
NumberAnimationSharedPtr createNumberPropertyAnimation (const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags=0)
 
EnumAnimationSharedPtr createEnumPropertyAnimation (const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
 
ColorAnimationSharedPtr createColorPropertyAnimation (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. More...
 
StringAnimationSharedPtr createStringPropertyAnimation (const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
 
BoolAnimationSharedPtr createBoolPropertyAnimation (const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags)
 
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)
 
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)
 

Detailed Description

Factory for Animation objects.

Given a SMIL XAnimate node, this factory generates the appropriate Animation object from that, which will modify the attribute as specified.

Enumeration Type Documentation

◆ AttributeClass

Classifies the attribute name.

This enum maps names to appropriate factory methods.

Enumerator
CLASS_UNKNOWN_PROPERTY 

Unknown, prolly invalid name.

CLASS_NUMBER_PROPERTY 

Use createNumberPropertyAnimation.

CLASS_ENUM_PROPERTY 

Use createEnumPropertyAnimation.

CLASS_COLOR_PROPERTY 

Use createColorPropertyAnimation.

CLASS_STRING_PROPERTY 

Use createStringPropertyAnimation.

CLASS_BOOL_PROPERTY 

Use createBoolPropertyAnimation.

Definition at line 52 of file animationfactory.hxx.

◆ FactoryFlags

Collection of flags common to all factory methods.

Enumerator
FLAG_NO_SPRITE 

Don't call enter/leaveAnimation for the Shape.

            This is useful for set effects

Definition at line 71 of file animationfactory.hxx.

Function Documentation

◆ classifyAttributeName()

AnimationFactory::AttributeClass slideshow::internal::AnimationFactory::classifyAttributeName ( const OUString &  rAttrName)

◆ createBoolPropertyAnimation()

BoolAnimationSharedPtr slideshow::internal::AnimationFactory::createBoolPropertyAnimation ( const OUString &  rAttrName,
const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
const box2d::utils::Box2DWorldSharedPtr pBox2DWorld,
int  nFlags 
)

◆ createColorPropertyAnimation()

ColorAnimationSharedPtr slideshow::internal::AnimationFactory::createColorPropertyAnimation ( const OUString &  rAttrName,
const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
const box2d::utils::Box2DWorldSharedPtr pBox2DWorld,
int  nFlags = 0 
)

Definition at line 1224 of file animationfactory.cxx.

References slideshow::internal::CharColor, slideshow::internal::CharFontName, slideshow::internal::CharHeight, slideshow::internal::CharPosture, slideshow::internal::CharUnderline, slideshow::internal::CharWeight, slideshow::internal::Color, slideshow::internal::DimColor, ENSURE_OR_THROW, slideshow::internal::FillColor, slideshow::internal::FillStyle, slideshow::internal::ShapeAttributeLayer::getCharColor(), slideshow::internal::ShapeAttributeLayer::getDimColor(), slideshow::internal::ShapeAttributeLayer::getFillColor(), slideshow::internal::ShapeAttributeLayer::getLineColor(), slideshow::internal::Height, slideshow::internal::Invalid, slideshow::internal::ShapeAttributeLayer::isCharColorValid(), slideshow::internal::ShapeAttributeLayer::isDimColorValid(), slideshow::internal::ShapeAttributeLayer::isFillColorValid(), slideshow::internal::ShapeAttributeLayer::isLineColorValid(), slideshow::internal::LineColor, slideshow::internal::LineStyle, slideshow::internal::mapAttributeName(), slideshow::internal::Opacity, slideshow::internal::PosX, slideshow::internal::PosY, slideshow::internal::Rotate, slideshow::internal::ShapeAttributeLayer::setCharColor(), slideshow::internal::ShapeAttributeLayer::setDimColor(), slideshow::internal::ShapeAttributeLayer::setFillColor(), slideshow::internal::ShapeAttributeLayer::setLineColor(), slideshow::internal::SkewX, slideshow::internal::SkewY, slideshow::internal::Visibility, and slideshow::internal::Width.

Referenced by slideshow::internal::AnimationColorNode::createActivity(), slideshow::internal::AnimationSetNode::createActivity(), and slideshow::internal::PropertyAnimationNode::createActivity().

◆ createEnumPropertyAnimation()

EnumAnimationSharedPtr slideshow::internal::AnimationFactory::createEnumPropertyAnimation ( const OUString &  rAttrName,
const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
const box2d::utils::Box2DWorldSharedPtr pBox2DWorld,
int  nFlags 
)

Definition at line 1137 of file animationfactory.cxx.

References slideshow::internal::CharColor, slideshow::internal::CharFontName, slideshow::internal::CharHeight, slideshow::internal::CharPosture, slideshow::internal::CharUnderline, slideshow::internal::CharWeight, slideshow::internal::Color, slideshow::internal::DimColor, ENSURE_OR_THROW, slideshow::internal::FillColor, slideshow::internal::FillStyle, slideshow::internal::ShapeAttributeLayer::getCharPosture(), slideshow::internal::ShapeAttributeLayer::getFillStyle(), slideshow::internal::ShapeAttributeLayer::getLineStyle(), slideshow::internal::ShapeAttributeLayer::getUnderlineMode(), slideshow::internal::Height, slideshow::internal::Invalid, slideshow::internal::ShapeAttributeLayer::isCharPostureValid(), slideshow::internal::ShapeAttributeLayer::isFillStyleValid(), slideshow::internal::ShapeAttributeLayer::isLineStyleValid(), slideshow::internal::ShapeAttributeLayer::isUnderlineModeValid(), slideshow::internal::LineColor, slideshow::internal::LineStyle, slideshow::internal::mapAttributeName(), slideshow::internal::Opacity, slideshow::internal::PosX, slideshow::internal::PosY, slideshow::internal::Rotate, slideshow::internal::ShapeAttributeLayer::setCharPosture(), slideshow::internal::ShapeAttributeLayer::setFillStyle(), slideshow::internal::ShapeAttributeLayer::setLineStyle(), slideshow::internal::ShapeAttributeLayer::setUnderlineMode(), slideshow::internal::SkewX, slideshow::internal::SkewY, slideshow::internal::Visibility, and slideshow::internal::Width.

Referenced by slideshow::internal::AnimationSetNode::createActivity(), and slideshow::internal::PropertyAnimationNode::createActivity().

◆ createNumberPropertyAnimation()

NumberAnimationSharedPtr slideshow::internal::AnimationFactory::createNumberPropertyAnimation ( const OUString &  rAttrName,
const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
const box2d::utils::Box2DWorldSharedPtr pBox2DWorld,
int  nFlags = 0 
)

Definition at line 970 of file animationfactory.cxx.

References slideshow::internal::CharColor, slideshow::internal::CharFontName, slideshow::internal::CharHeight, slideshow::internal::CharPosture, slideshow::internal::CharUnderline, slideshow::internal::CharWeight, slideshow::internal::Color, slideshow::internal::DimColor, ENSURE_OR_THROW, slideshow::internal::FillColor, slideshow::internal::FillStyle, slideshow::internal::ShapeAttributeLayer::getAlpha(), slideshow::internal::ShapeAttributeLayer::getCharScale(), slideshow::internal::ShapeAttributeLayer::getCharWeight(), slideshow::internal::ShapeAttributeLayer::getHeight(), slideshow::internal::ShapeAttributeLayer::getPosX(), slideshow::internal::ShapeAttributeLayer::getPosY(), slideshow::internal::ShapeAttributeLayer::getRotationAngle(), slideshow::internal::ShapeAttributeLayer::getShearXAngle(), slideshow::internal::ShapeAttributeLayer::getShearYAngle(), slideshow::internal::ShapeAttributeLayer::getWidth(), slideshow::internal::Height, slideshow::internal::Invalid, slideshow::internal::ShapeAttributeLayer::isAlphaValid(), slideshow::internal::ShapeAttributeLayer::isCharScaleValid(), slideshow::internal::ShapeAttributeLayer::isCharWeightValid(), slideshow::internal::ShapeAttributeLayer::isHeightValid(), slideshow::internal::ShapeAttributeLayer::isPosXValid(), slideshow::internal::ShapeAttributeLayer::isPosYValid(), slideshow::internal::ShapeAttributeLayer::isRotationAngleValid(), slideshow::internal::ShapeAttributeLayer::isShearXAngleValid(), slideshow::internal::ShapeAttributeLayer::isShearYAngleValid(), slideshow::internal::ShapeAttributeLayer::isWidthValid(), slideshow::internal::LineColor, slideshow::internal::LineStyle, slideshow::internal::mapAttributeName(), slideshow::internal::Opacity, slideshow::internal::PosX, slideshow::internal::PosY, slideshow::internal::Rotate, slideshow::internal::ShapeAttributeLayer::setAlpha(), slideshow::internal::ShapeAttributeLayer::setCharScale(), slideshow::internal::ShapeAttributeLayer::setCharWeight(), slideshow::internal::ShapeAttributeLayer::setHeight(), slideshow::internal::ShapeAttributeLayer::setPosX(), slideshow::internal::ShapeAttributeLayer::setPosY(), slideshow::internal::ShapeAttributeLayer::setRotationAngle(), slideshow::internal::ShapeAttributeLayer::setShearXAngle(), slideshow::internal::ShapeAttributeLayer::setShearYAngle(), slideshow::internal::ShapeAttributeLayer::setWidth(), slideshow::internal::SkewX, slideshow::internal::SkewY, slideshow::internal::Visibility, and slideshow::internal::Width.

Referenced by slideshow::internal::AnimationSetNode::createActivity(), slideshow::internal::AnimationTransformNode::createActivity(), and slideshow::internal::PropertyAnimationNode::createActivity().

◆ createPairPropertyAnimation()

PairAnimationSharedPtr slideshow::internal::AnimationFactory::createPairPropertyAnimation ( const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
sal_Int16  nTransformType,
int  nFlags 
)

◆ createPathMotionAnimation()

NumberAnimationSharedPtr slideshow::internal::AnimationFactory::createPathMotionAnimation ( const OUString &  rSVGDPath,
sal_Int16  nAdditive,
const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
const box2d::utils::Box2DWorldSharedPtr pBox2DWorld,
int  nFlags 
)

◆ createPhysicsAnimation()

NumberAnimationSharedPtr slideshow::internal::AnimationFactory::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 
)

◆ createStringPropertyAnimation()

StringAnimationSharedPtr slideshow::internal::AnimationFactory::createStringPropertyAnimation ( const OUString &  rAttrName,
const AnimatableShapeSharedPtr rShape,
const ShapeManagerSharedPtr rShapeManager,
const ::basegfx::B2DVector rSlideSize,
const box2d::utils::Box2DWorldSharedPtr pBox2DWorld,
int  nFlags 
)