LibreOffice Module slideshow (master) 1
animationpathmotionnode.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
24namespace slideshow::internal {
25
27{
28 mxPathMotionNode.clear();
30}
31
33{
34 OUString aString;
35 ENSURE_OR_THROW( (mxPathMotionNode->getPath() >>= aString),
36 "no string-based SVG:d path found" );
37
40 aParms,
42 aString,
43 mxPathMotionNode->getAdditive(),
44 getShape(),
48 true );
49}
50
51} // namespace slideshow::internal
52
53/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
box2d::utils::Box2DWorldSharedPtr mpBox2DWorld
AttributableShapeSharedPtr const & getShape() const
::basegfx::B2DVector const & getSlideSize() const
virtual void dispose() override
Dispose all object references.
ActivitiesFactory::CommonParameters fillCommonParameters() const
Create parameter struct for ActivitiesFactory.
virtual AnimationActivitySharedPtr createActivity() const override
css::uno::Reference< css::animations::XAnimateMotion > mxPathMotionNode
virtual void dispose() override
Dispose all object references.
SlideShowContext const & getContext() const
Definition: basenode.hxx:135
#define ENSURE_OR_THROW(c, m)
AnimationActivitySharedPtr createSimpleActivity(const CommonParameters &rParms, const NumberAnimationSharedPtr &rAnimator, bool bDirectionForward)
Create a simple activity for the given animator.
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)
::std::shared_ptr< AnimationActivity > AnimationActivitySharedPtr
std::shared_ptr< SubsettableShapeManager > mpSubsettableShapeManager
Definition: slideimpl.cxx:199