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

60 lines
2.2 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 -*- */
2012-06-14 17:39:53 +01: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 .
*/
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: */