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