2004-05-18 12:56:15 +00:00
|
|
|
/*************************************************************************
|
|
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* $RCSfile: SwUndoTOXChange.hxx,v $
|
|
|
|
|
* $Revision: 1.5 $
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
2008-04-10 09:46:28 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-05-18 12:56:15 +00:00
|
|
|
*
|
|
|
|
|
************************************************************************/
|
|
|
|
|
#ifndef _SW_UNDO_TOX_CHANGE_HXX
|
|
|
|
|
#define _SW_UNDO_TOX_CHANGE_HXX
|
|
|
|
|
#include <undobj.hxx>
|
|
|
|
|
#include <tox.hxx>
|
|
|
|
|
|
|
|
|
|
class SwUndoTOXChange : public SwUndo
|
|
|
|
|
{
|
|
|
|
|
SwTOXBase * pTOX, aOld, aNew;
|
|
|
|
|
|
2005-03-29 13:36:05 +00:00
|
|
|
void UpdateTOXBaseSection();
|
|
|
|
|
|
2004-05-18 12:56:15 +00:00
|
|
|
public:
|
|
|
|
|
SwUndoTOXChange(SwTOXBase * pTOX, const SwTOXBase & rNew);
|
|
|
|
|
virtual ~SwUndoTOXChange();
|
|
|
|
|
|
|
|
|
|
virtual void Undo(SwUndoIter & rIter);
|
|
|
|
|
virtual void Redo(SwUndoIter & rIter);
|
|
|
|
|
virtual void Repeat(SwUndoIter & rIter);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //_SW_UNDO_TOX_CHANGE_HXX
|