1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef DBAUI_TABLEDESIGNHELPBAR_HXX 28 #define DBAUI_TABLEDESIGNHELPBAR_HXX 29 30 #ifndef _STRING_HXX 31 #include <tools/string.hxx> 32 #endif 33 #ifndef _SV_TABCTRL_HXX 34 #include <vcl/tabctrl.hxx> 35 #endif 36 #ifndef _SV_TABPAGE_HXX 37 #include <vcl/tabpage.hxx> 38 #endif 39 #ifndef DBACCESS_TABLEDESIGN_ICLIPBOARDTEST_HXX 40 #include "IClipBoardTest.hxx" 41 #endif 42 43 class MultiLineEdit; 44 namespace dbaui 45 { 46 //================================================================== 47 // Ableitung von TabPage ist ein Trick von TH, 48 // um Aenderungen der Systemfarben zu bemerken (Bug #53905) 49 class OTableDesignHelpBar : public TabPage 50 ,public IClipboardTest 51 { 52 private: 53 String m_sHelpText; 54 MultiLineEdit* m_pTextWin; 55 sal_uInt16 m_nDummy; 56 57 protected: 58 virtual void Resize(); 59 60 public: 61 OTableDesignHelpBar( Window* pParent ); 62 virtual ~OTableDesignHelpBar(); 63 64 void SetHelpText( const String& rText ); 65 String GetHelpText() const { return m_sHelpText; } 66 67 virtual long PreNotify( NotifyEvent& rNEvt ); 68 69 // IClipboardTest 70 virtual sal_Bool isCutAllowed(); 71 virtual sal_Bool isCopyAllowed(); 72 virtual sal_Bool isPasteAllowed(); 73 virtual sal_Bool hasChildPathFocus() { return HasChildPathFocus(); } 74 75 virtual void copy(); 76 virtual void cut(); 77 virtual void paste(); 78 }; 79 } 80 #endif // DBAUI_TABLEDESIGNHELPBAR_HXX 81 82