1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef DBAUI_TABLEDESIGNHELPBAR_HXX 24 #define DBAUI_TABLEDESIGNHELPBAR_HXX 25 26 #ifndef _STRING_HXX 27 #include <tools/string.hxx> 28 #endif 29 #ifndef _SV_TABCTRL_HXX 30 #include <vcl/tabctrl.hxx> 31 #endif 32 #ifndef _SV_TABPAGE_HXX 33 #include <vcl/tabpage.hxx> 34 #endif 35 #ifndef DBACCESS_TABLEDESIGN_ICLIPBOARDTEST_HXX 36 #include "IClipBoardTest.hxx" 37 #endif 38 39 class MultiLineEdit; 40 namespace dbaui 41 { 42 //================================================================== 43 // Ableitung von TabPage ist ein Trick von TH, 44 // um Aenderungen der Systemfarben zu bemerken (Bug #53905) 45 class OTableDesignHelpBar : public TabPage 46 ,public IClipboardTest 47 { 48 private: 49 String m_sHelpText; 50 MultiLineEdit* m_pTextWin; 51 sal_uInt16 m_nDummy; 52 53 protected: 54 virtual void Resize(); 55 56 public: 57 OTableDesignHelpBar( Window* pParent ); 58 virtual ~OTableDesignHelpBar(); 59 60 void SetHelpText( const String& rText ); GetHelpText() const61 String GetHelpText() const { return m_sHelpText; } 62 63 virtual long PreNotify( NotifyEvent& rNEvt ); 64 65 // IClipboardTest 66 virtual sal_Bool isCutAllowed(); 67 virtual sal_Bool isCopyAllowed(); 68 virtual sal_Bool isPasteAllowed(); hasChildPathFocus()69 virtual sal_Bool hasChildPathFocus() { return HasChildPathFocus(); } 70 71 virtual void copy(); 72 virtual void cut(); 73 virtual void paste(); 74 }; 75 } 76 #endif // DBAUI_TABLEDESIGNHELPBAR_HXX 77 78