LibreOffice Module sd (master) 1
undoanim.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
22#include <com/sun/star/animations/XAnimationNode.hpp>
23#include <svx/svdundo.hxx>
24#include <memory>
25
26#include "sdundo.hxx"
27
28class SdPage;
29
30namespace sd
31{
32struct UndoAnimationImpl;
33
34class UndoAnimation final : public SdrUndoAction
35{
36public:
37 UndoAnimation(SdDrawDocument* pDoc, SdPage* pThePage);
38 virtual ~UndoAnimation() override;
39
40 virtual void Undo() override;
41 virtual void Redo() override;
42
43 virtual OUString GetComment() const override;
44
45private:
46 std::unique_ptr<UndoAnimationImpl> mpImpl;
47};
48
50class UndoAnimationPath final : public SdrUndoAction
51{
52public:
54 const css::uno::Reference<css::animations::XAnimationNode>& xNode);
55 virtual ~UndoAnimationPath() override;
56
57 virtual void Undo() override;
58 virtual void Redo() override;
59
60 virtual OUString GetComment() const override;
61
62private:
63 std::unique_ptr<UndoAnimationPathImpl> mpImpl;
64};
65
67
68class UndoTransition final : public SdUndoAction
69{
70public:
71 UndoTransition(SdDrawDocument* pDoc, SdPage* pThePage);
72 virtual ~UndoTransition() override;
73
74 virtual void Undo() override;
75 virtual void Redo() override;
76
77 virtual OUString GetComment() const override;
78
79private:
80 std::unique_ptr<UndoTransitionImpl> mpImpl;
81};
82}
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
UndoAnimationPath(SdDrawDocument *pDoc, SdPage *pThePage, const css::uno::Reference< css::animations::XAnimationNode > &xNode)
Definition: undoanim.cxx:154
virtual ~UndoAnimationPath() override
Definition: undoanim.cxx:160
virtual OUString GetComment() const override
Definition: undoanim.cxx:183
virtual void Redo() override
Definition: undoanim.cxx:174
virtual void Undo() override
Definition: undoanim.cxx:164
std::unique_ptr< UndoAnimationPathImpl > mpImpl
Definition: undoanim.hxx:63
std::unique_ptr< UndoAnimationImpl > mpImpl
Definition: undoanim.hxx:46
virtual OUString GetComment() const override
Definition: undoanim.cxx:108
virtual void Redo() override
Definition: undoanim.cxx:93
virtual void Undo() override
Definition: undoanim.cxx:70
virtual ~UndoAnimation() override
Definition: undoanim.cxx:66
UndoAnimation(SdDrawDocument *pDoc, SdPage *pThePage)
Definition: undoanim.cxx:49
virtual ~UndoTransition() override
Definition: undoanim.cxx:230
virtual OUString GetComment() const override
Definition: undoanim.cxx:273
UndoTransition(SdDrawDocument *pDoc, SdPage *pThePage)
Definition: undoanim.cxx:213
std::unique_ptr< UndoTransitionImpl > mpImpl
Definition: undoanim.hxx:80
virtual void Undo() override
Definition: undoanim.cxx:234
virtual void Redo() override
Definition: undoanim.cxx:260