2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2001-02-14 13:37:35 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 14:17:30 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2001-02-14 13:37:35 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2001-02-14 13:37:35 +00:00
|
|
|
*
|
2008-04-10 14:17:30 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-02-14 13:37:35 +00:00
|
|
|
*
|
2008-04-10 14:17:30 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2001-02-14 13:37:35 +00:00
|
|
|
*
|
2008-04-10 14:17:30 +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-14 13:37:35 +00:00
|
|
|
*
|
2008-04-10 14:17:30 +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-14 13:37:35 +00:00
|
|
|
*
|
2008-04-10 14:17:30 +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-14 13:37:35 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef DBAUI_TABLEDESIGNHELPBAR_HXX
|
|
|
|
#define DBAUI_TABLEDESIGNHELPBAR_HXX
|
|
|
|
|
|
|
|
#include <tools/string.hxx>
|
|
|
|
#include <vcl/tabctrl.hxx>
|
|
|
|
#include <vcl/tabpage.hxx>
|
2003-03-19 16:57:12 +00:00
|
|
|
#include "IClipBoardTest.hxx"
|
2001-02-14 13:37:35 +00:00
|
|
|
|
|
|
|
class MultiLineEdit;
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
//==================================================================
|
|
|
|
// Ableitung von TabPage ist ein Trick von TH,
|
2011-02-07 20:20:28 +01:00
|
|
|
// um Aenderungen der Systemfarben zu bemerken
|
2001-02-14 13:37:35 +00:00
|
|
|
class OTableDesignHelpBar : public TabPage
|
2003-03-19 16:57:12 +00:00
|
|
|
,public IClipboardTest
|
2001-02-14 13:37:35 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
String m_sHelpText;
|
|
|
|
MultiLineEdit* m_pTextWin;
|
|
|
|
USHORT m_nDummy;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void Resize();
|
|
|
|
|
|
|
|
public:
|
|
|
|
OTableDesignHelpBar( Window* pParent );
|
|
|
|
virtual ~OTableDesignHelpBar();
|
|
|
|
|
|
|
|
void SetHelpText( const String& rText );
|
|
|
|
String GetHelpText() const { return m_sHelpText; }
|
|
|
|
|
|
|
|
virtual long PreNotify( NotifyEvent& rNEvt );
|
2003-03-19 16:57:12 +00:00
|
|
|
|
|
|
|
// IClipboardTest
|
|
|
|
virtual sal_Bool isCutAllowed();
|
|
|
|
virtual sal_Bool isCopyAllowed();
|
|
|
|
virtual sal_Bool isPasteAllowed();
|
|
|
|
virtual sal_Bool hasChildPathFocus() { return HasChildPathFocus(); }
|
|
|
|
|
|
|
|
virtual void copy();
|
|
|
|
virtual void cut();
|
|
|
|
virtual void paste();
|
2001-02-14 13:37:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // DBAUI_TABLEDESIGNHELPBAR_HXX
|
|
|
|
|
2010-10-27 12:33:13 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|