xref: /trunk/main/sd/inc/undoanim.hxx (revision 67e470da)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SD_UNDO_ANIM_HXX
25 #define _SD_UNDO_ANIM_HXX
26 
27 #include <com/sun/star/uno/Any.hxx>
28 #include <com/sun/star/animations/XAnimationNode.hpp>
29 #include <svx/svdundo.hxx>
30 
31 #include "sdundo.hxx"
32 
33 class SdPage;
34 
35 namespace sd
36 {
37 
38 struct UndoAnimationImpl;
39 
40 class UndoAnimation : public SdrUndoAction
41 {
42 public:
43 	UndoAnimation( SdDrawDocument* pDoc, SdPage* pThePage );
44 	virtual ~UndoAnimation();
45 
46 	virtual void Undo();
47 	virtual void Redo();
48 
49 	virtual String GetComment() const;
50 
51 private:
52 	UndoAnimationImpl*	mpImpl;
53 };
54 
55 struct UndoAnimationPathImpl;
56 class UndoAnimationPath : public SdrUndoAction
57 {
58 public:
59 	UndoAnimationPath( SdDrawDocument* pDoc, SdPage* pThePage, const com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
60 	virtual ~UndoAnimationPath();
61 
62 	virtual void Undo();
63 	virtual void Redo();
64 
65 	virtual String GetComment() const;
66 
67 private:
68 	UndoAnimationPathImpl* mpImpl;
69 };
70 
71 struct UndoTransitionImpl;
72 
73 class UndoTransition : public SdUndoAction
74 {
75 public:
76 	UndoTransition( SdDrawDocument* pDoc, SdPage* pThePage );
77 	virtual ~UndoTransition();
78 
79 	virtual void Undo();
80 	virtual void Redo();
81 
82 	virtual String GetComment() const;
83 
84 private:
85 	UndoTransitionImpl*	mpImpl;
86 };
87 
88 }
89 
90 #endif      // _SD_UNDO_ANIM_HXX
91 
92