tdf#130857 qt weld: Hide widget marked for deletion
[LibreOffice.git] / sd / inc / undoanim.hxx
blob2d329b50da45e3ff822739a9bcd3dd50a1985dba
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <com/sun/star/animations/XAnimationNode.hpp>
23 #include <svx/svdundo.hxx>
24 #include <memory>
26 #include "sdundo.hxx"
28 class SdPage;
30 namespace sd
32 struct UndoAnimationImpl;
34 class UndoAnimation final : public SdrUndoAction
36 public:
37 UndoAnimation(SdDrawDocument* pDoc, SdPage* pThePage);
38 virtual ~UndoAnimation() override;
40 virtual void Undo() override;
41 virtual void Redo() override;
43 virtual OUString GetComment() const override;
45 private:
46 std::unique_ptr<UndoAnimationImpl> mpImpl;
49 struct UndoAnimationPathImpl;
50 class UndoAnimationPath final : public SdrUndoAction
52 public:
53 UndoAnimationPath(SdDrawDocument* pDoc, SdPage* pThePage,
54 const css::uno::Reference<css::animations::XAnimationNode>& xNode);
55 virtual ~UndoAnimationPath() override;
57 virtual void Undo() override;
58 virtual void Redo() override;
60 virtual OUString GetComment() const override;
62 private:
63 std::unique_ptr<UndoAnimationPathImpl> mpImpl;
66 struct UndoTransitionImpl;
68 class UndoTransition final : public SdUndoAction
70 public:
71 UndoTransition(SdDrawDocument* pDoc, SdPage* pThePage);
72 virtual ~UndoTransition() override;
74 virtual void Undo() override;
75 virtual void Redo() override;
77 virtual OUString GetComment() const override;
79 private:
80 std::unique_ptr<UndoTransitionImpl> mpImpl;
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */