Files
libreoffice/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.hxx

69 lines
2.5 KiB
C++
Raw Normal View History

2010-10-27 12:33:13 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2001-02-05 08:35:57 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2001-02-05 08:35:57 +00:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2001-02-05 08:35:57 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2001-02-05 08:35:57 +00:00
*
* This file is part of OpenOffice.org.
2001-02-05 08:35:57 +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.
2001-02-05 08:35:57 +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).
2001-02-05 08:35:57 +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.
2001-02-05 08:35:57 +00:00
*
************************************************************************/
#ifndef DBAUI_OQUERYMOVETABWINUNDOACT_HXX
#define DBAUI_OQUERYMOVETABWINUNDOACT_HXX
#include "QueryDesignUndoAction.hxx"
2002-08-19 07:01:32 +00:00
#include "dbu_qry.hrc"
2001-02-05 08:35:57 +00:00
#include <tools/gen.hxx>
namespace dbaui
{
// ================================================================================================
// OQueryMoveTabWinUndoAct - Undo-Klasse fuer Verschieben eines TabWins
class OQueryTableWindow;
class OTableWindow;
class OJoinMoveTabWinUndoAct : public OQueryDesignUndoAction
2001-02-05 08:35:57 +00:00
{
Point m_ptNextPosition;
OTableWindow* m_pTabWin;
2001-02-05 08:35:57 +00:00
protected:
void TogglePosition();
public:
OJoinMoveTabWinUndoAct(OJoinTableView* pOwner, const Point& ptOriginalPosition, OTableWindow* pTabWin);
2001-02-05 08:35:57 +00:00
virtual void Undo() { TogglePosition(); }
virtual void Redo() { TogglePosition(); }
};
// ------------------------------------------------------------------------------------------------
inline OJoinMoveTabWinUndoAct::OJoinMoveTabWinUndoAct(OJoinTableView* pOwner, const Point& ptOriginalPosition, OTableWindow* pTabWin)
2001-02-05 08:35:57 +00:00
:OQueryDesignUndoAction(pOwner, STR_QUERY_UNDO_MOVETABWIN)
,m_ptNextPosition(ptOriginalPosition)
,m_pTabWin(pTabWin)
{
}
}
#endif // DBAUI_OQUERYMOVETABWINUNDOACT_HXX
2010-10-27 12:33:13 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */