LibreOffice Module slideshow (master) 1
propertyanimationnode.cxx
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
22#include <animationfactory.hxx>
23
24using namespace com::sun::star;
25
26namespace slideshow::internal {
27
29{
30 // Create AnimationActivity from common XAnimate parameters:
33 OUString const attrName( xAnimateNode->getAttributeName() );
34 AttributableShapeSharedPtr const pShape( getShape() );
35
37 default:
40 false,
41 "Unexpected attribute class (unknown or empty attribute name)" );
42 break;
43
46 aParms,
49 pShape,
53 xAnimateNode );
54
57 aParms,
60 pShape,
64 xAnimateNode );
65
68 aParms,
71 pShape,
75 xAnimateNode );
76
79 aParms,
82 pShape,
86 xAnimateNode );
87
90 aParms,
93 pShape,
97 xAnimateNode );
98 }
99
101}
102
103} // namespace slideshow::internal
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
box2d::utils::Box2DWorldSharedPtr mpBox2DWorld
AttributableShapeSharedPtr const & getShape() const
::basegfx::B2DVector const & getSlideSize() const
css::uno::Reference< css::animations::XAnimate > const & getXAnimateNode() const
ActivitiesFactory::CommonParameters fillCommonParameters() const
Create parameter struct for ActivitiesFactory.
SlideShowContext const & getContext() const
Definition: basenode.hxx:135
virtual AnimationActivitySharedPtr createActivity() const override
#define ENSURE_OR_THROW(c, m)
const char * attrName
AnimationActivitySharedPtr createAnimateActivity(const CommonParameters &rParms, const NumberAnimationSharedPtr &rAnimator, const css::uno::Reference< css::animations::XAnimate > &xNode)
Create an activity from an XAnimate node.
NumberAnimationSharedPtr createNumberPropertyAnimation(const OUString &rAttrName, const AnimatableShapeSharedPtr &rShape, const ShapeManagerSharedPtr &rShapeManager, const ::basegfx::B2DVector &rSlideSize, const box2d::utils::Box2DWorldSharedPtr &pBox2DWorld, int nFlags=0)
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)
@ 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< AnimationActivity > AnimationActivitySharedPtr
::std::shared_ptr< AttributableShape > AttributableShapeSharedPtr
std::shared_ptr< SubsettableShapeManager > mpSubsettableShapeManager
Definition: slideimpl.cxx:199