LibreOffice Module drawinglayer (master) 1
animatedprimitive2d.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#pragma once
21
23
26#include <memory>
27
28// predefines
30{
31class AnimationEntry;
32}
33
34namespace basegfx
35{
36class B2DHomMatrix;
37}
38
40{
55{
56private:
62 std::unique_ptr<animation::AnimationEntry> mpAnimationEntry;
63
68
69protected:
76 void setAnimationEntry(const animation::AnimationEntry& rNew);
77
78public:
81 Primitive2DContainer&& aChildren, bool bIsTextAnimation);
82
84 virtual ~AnimatedSwitchPrimitive2D() override;
85
87 const animation::AnimationEntry& getAnimationEntry() const { return *mpAnimationEntry; }
88 bool isTextAnimation() const { return mbIsTextAnimation; }
89 bool isGraphicAnimation() const { return !isTextAnimation(); }
90
92 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
93
95 virtual sal_uInt32 getPrimitive2DID() const override;
96
101 virtual void
102 get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor,
103 const geometry::ViewInformation2D& rViewInformation) const override;
104};
105
113{
114public:
117 Primitive2DContainer&& aChildren);
118
120 virtual void
121 get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor,
122 const geometry::ViewInformation2D& rViewInformation) const override;
123
125 virtual sal_uInt32 getPrimitive2DID() const override;
126};
127
136{
137private:
139 std::vector<basegfx::utils::B2DHomMatrixBufferedDecompose> maMatrixStack;
140
141public:
143 AnimatedInterpolatePrimitive2D(const std::vector<basegfx::B2DHomMatrix>& rmMatrixStack,
144 const animation::AnimationEntry& rAnimationEntry,
145 Primitive2DContainer&& aChildren);
146
148 virtual void
149 get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor,
150 const geometry::ViewInformation2D& rViewInformation) const override;
151
153 virtual sal_uInt32 getPrimitive2DID() const override;
154};
155
156} // end of namespace drawinglayer::primitive2d
157
158/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< basegfx::utils::B2DHomMatrixBufferedDecompose > maMatrixStack
the transformations
const animation::AnimationEntry & getAnimationEntry() const
data read access
std::unique_ptr< animation::AnimationEntry > mpAnimationEntry
The animation definition which allows translation of a point in time to an animation state [0....
bool mbIsTextAnimation
flag if this is a text or graphic animation.
#define DRAWINGLAYER_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)