1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef INCLUDED_SD_INC_UNDOANIM_HXX
21 #define INCLUDED_SD_INC_UNDOANIM_HXX
23 #include <com/sun/star/uno/Any.hxx>
24 #include <com/sun/star/animations/XAnimationNode.hpp>
25 #include <svx/svdundo.hxx>
26 #include <boost/scoped_ptr.hpp>
35 struct UndoAnimationImpl
;
37 class UndoAnimation
: public SdrUndoAction
40 UndoAnimation( SdDrawDocument
* pDoc
, SdPage
* pThePage
);
41 virtual ~UndoAnimation();
43 virtual void Undo() SAL_OVERRIDE
;
44 virtual void Redo() SAL_OVERRIDE
;
46 virtual OUString
GetComment() const SAL_OVERRIDE
;
49 boost::scoped_ptr
<UndoAnimationImpl
> mpImpl
;
52 struct UndoAnimationPathImpl
;
53 class UndoAnimationPath
: public SdrUndoAction
56 UndoAnimationPath( SdDrawDocument
* pDoc
, SdPage
* pThePage
, const com::sun::star::uno::Reference
< ::com::sun::star::animations::XAnimationNode
>& xNode
);
57 virtual ~UndoAnimationPath();
59 virtual void Undo() SAL_OVERRIDE
;
60 virtual void Redo() SAL_OVERRIDE
;
62 virtual OUString
GetComment() const SAL_OVERRIDE
;
65 boost::scoped_ptr
<UndoAnimationPathImpl
> mpImpl
;
68 struct UndoTransitionImpl
;
70 class UndoTransition
: public SdUndoAction
73 UndoTransition( SdDrawDocument
* pDoc
, SdPage
* pThePage
);
74 virtual ~UndoTransition();
76 virtual void Undo() SAL_OVERRIDE
;
77 virtual void Redo() SAL_OVERRIDE
;
79 virtual OUString
GetComment() const SAL_OVERRIDE
;
82 boost::scoped_ptr
<UndoTransitionImpl
> mpImpl
;
87 #endif // INCLUDED_SD_INC_UNDOANIM_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */