2010-10-27 12:53:26 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-27 16:10:40 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-11-26 18:39:04 +00:00
|
|
|
|
2013-10-23 22:38:46 +02:00
|
|
|
#ifndef INCLUDED_SD_INC_UNDOANIM_HXX
|
|
|
|
#define INCLUDED_SD_INC_UNDOANIM_HXX
|
2004-11-26 18:39:04 +00:00
|
|
|
|
2007-07-06 12:09:44 +00:00
|
|
|
#include <com/sun/star/uno/Any.hxx>
|
|
|
|
#include <com/sun/star/animations/XAnimationNode.hpp>
|
2005-01-21 17:16:58 +00:00
|
|
|
#include <svx/svdundo.hxx>
|
2013-02-27 02:46:19 +01:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2005-01-21 17:16:58 +00:00
|
|
|
|
2004-11-26 18:39:04 +00:00
|
|
|
#include "sdundo.hxx"
|
|
|
|
|
|
|
|
class SdPage;
|
|
|
|
|
|
|
|
namespace sd
|
|
|
|
{
|
|
|
|
|
|
|
|
struct UndoAnimationImpl;
|
|
|
|
|
2005-01-21 17:16:58 +00:00
|
|
|
class UndoAnimation : public SdrUndoAction
|
2004-11-26 18:39:04 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
UndoAnimation( SdDrawDocument* pDoc, SdPage* pThePage );
|
|
|
|
virtual ~UndoAnimation();
|
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Undo() SAL_OVERRIDE;
|
|
|
|
virtual void Redo() SAL_OVERRIDE;
|
2004-11-26 18:39:04 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString GetComment() const SAL_OVERRIDE;
|
2004-11-26 18:39:04 +00:00
|
|
|
|
|
|
|
private:
|
2013-02-27 02:46:19 +01:00
|
|
|
boost::scoped_ptr<UndoAnimationImpl> mpImpl;
|
2004-11-26 18:39:04 +00:00
|
|
|
};
|
|
|
|
|
2007-07-06 12:09:44 +00:00
|
|
|
struct UndoAnimationPathImpl;
|
|
|
|
class UndoAnimationPath : public SdrUndoAction
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UndoAnimationPath( SdDrawDocument* pDoc, SdPage* pThePage, const com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
|
|
|
|
virtual ~UndoAnimationPath();
|
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Undo() SAL_OVERRIDE;
|
|
|
|
virtual void Redo() SAL_OVERRIDE;
|
2007-07-06 12:09:44 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString GetComment() const SAL_OVERRIDE;
|
2007-07-06 12:09:44 +00:00
|
|
|
|
|
|
|
private:
|
2013-02-27 02:46:19 +01:00
|
|
|
boost::scoped_ptr<UndoAnimationPathImpl> mpImpl;
|
2007-07-06 12:09:44 +00:00
|
|
|
};
|
|
|
|
|
2004-11-26 18:39:04 +00:00
|
|
|
struct UndoTransitionImpl;
|
|
|
|
|
|
|
|
class UndoTransition : public SdUndoAction
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UndoTransition( SdDrawDocument* pDoc, SdPage* pThePage );
|
|
|
|
virtual ~UndoTransition();
|
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Undo() SAL_OVERRIDE;
|
|
|
|
virtual void Redo() SAL_OVERRIDE;
|
2004-11-26 18:39:04 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString GetComment() const SAL_OVERRIDE;
|
2004-11-26 18:39:04 +00:00
|
|
|
|
|
|
|
private:
|
2013-02-27 02:46:19 +01:00
|
|
|
boost::scoped_ptr<UndoTransitionImpl> mpImpl;
|
2004-11-26 18:39:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-10-23 22:38:46 +02:00
|
|
|
#endif // INCLUDED_SD_INC_UNDOANIM_HXX
|
2004-11-26 18:39:04 +00:00
|
|
|
|
2010-10-27 12:53:26 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|