LibreOffice Module slideshow (master) 1
animationbasenode.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#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_ANIMATIONBASENODE_HXX
20#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_ANIMATIONBASENODE_HXX
21
22#include <com/sun/star/animations/XAnimate.hpp>
23
24#include <basecontainernode.hxx>
25#include <activitiesfactory.hxx>
27#include <attributableshape.hxx>
28#include <shapesubset.hxx>
29
30namespace slideshow::internal {
31
37{
38public:
40 css::uno::Reference<css::animations::XAnimationNode> const& xNode,
41 BaseContainerNodeSharedPtr const& pParent,
42 NodeContext const& rContext );
43
44#if defined(DBG_UTIL)
45 virtual void showState() const override;
46#endif
47 virtual void removeEffect() override;
48
49protected:
50 virtual void dispose() override;
51
52 css::uno::Reference<css::animations::XAnimate> const& getXAnimateNode() const
53 { return mxAnimateNode; }
54
59
60private:
61 virtual bool hasPendingAnimation() const override;
62 virtual bool enqueueActivity() const;
63
64private: // state transition callbacks
65 virtual bool init_st() override;
66 virtual bool resolve_st() override;
67 virtual void activate_st() override;
68 virtual void deactivate_st( NodeState eDestState ) override;
70
71private:
78
79private:
80 css::uno::Reference<css::animations::XAnimate> mxAnimateNode;
83
91
92protected:
94};
95
96} // namespace presentation::internal
97
98#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_ANIMATIONBASENODE_HXX
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Common base class for all leaf animation nodes.
virtual void showState() const override
virtual void deactivate_st(NodeState eDestState) override
bool isDependentSubsettedShape() const
Returns true, if this is a subset animation, and the subset is autogenerated (e.g.
AttributableShapeSharedPtr const & getShape() const
SubsettableShapeManagerSharedPtr mpSubsetManager
virtual AnimationActivitySharedPtr createActivity() const =0
ShapeSubsetSharedPtr mpShapeSubset
When valid, this is a subsetted target shape.
ShapeAttributeLayerHolder maAttributeLayerHolder
virtual bool hasPendingAnimation() const override
Query node whether it has an animation pending.
::basegfx::B2DVector const & getSlideSize() const
AttributableShapeSharedPtr mpShape
When valid, this node has a plain target shape.
virtual void removeEffect() override
Called by the container to remove the animation effect to make the painted shape correct if it restar...
css::uno::Reference< css::animations::XAnimate > mxAnimateNode
virtual void dispose() override
Dispose all object references.
css::uno::Reference< css::animations::XAnimate > const & getXAnimateNode() const
ActivitiesFactory::CommonParameters fillCommonParameters() const
Create parameter struct for ActivitiesFactory.
AnimationBaseNode(css::uno::Reference< css::animations::XAnimationNode > const &xNode, BaseContainerNodeSharedPtr const &pParent, NodeContext const &rContext)
NodeState
The current state of this AnimationNode.
This interface extends AnimationNode with some file-private accessor methods.
Definition: basenode.hxx:83
Holds a ShapeAttributeLayer, together with the associated Shape.
::std::shared_ptr< SubsettableShapeManager > SubsettableShapeManagerSharedPtr
::std::shared_ptr< ShapeSubset > ShapeSubsetSharedPtr
Definition: shapesubset.hxx:30
::std::shared_ptr< BaseContainerNode > BaseContainerNodeSharedPtr
::std::shared_ptr< AnimationActivity > AnimationActivitySharedPtr
::std::shared_ptr< AttributableShape > AttributableShapeSharedPtr
Context for every node.
Definition: basenode.hxx:45