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 
24 #ifndef DBAUI_JOINDESIGNVIEW_HXX
25 #define DBAUI_JOINDESIGNVIEW_HXX
26 
27 #ifndef DBAUI_DATAVIEW_HXX
28 #include "dataview.hxx"
29 #endif
30 #ifndef _VECTOR_
31 #include <vector>
32 #endif
33 #ifndef _STRING_HXX
34 #include <tools/string.hxx>
35 #endif
36 #ifndef DBAUI_ENUMTYPES_HXX
37 #include "QEnumTypes.hxx"
38 #endif
39 
40 #include <memory>
41 
42 namespace dbaui
43 {
44 	class OTableConnection;
45 	class OConnectionLineData;
46 	class OJoinController;
47 	class OScrollWindowHelper;
48 	class OJoinTableView;
49 	class OTableWindow;
50 
51 	class OJoinDesignView : public ODataView
52 	{
53 	protected:
54 		OScrollWindowHelper*	m_pScrollWindow;	// contains only the scrollbars
55 		OJoinTableView*			m_pTableView;		// presents the upper window
56 		OJoinController&		m_rController;
57 
58 	public:
59 		OJoinDesignView(Window* pParent,
60 						OJoinController& _rController,
61 						const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
62 		virtual ~OJoinDesignView();
63 
64 		// set the view readonly or not
65 		virtual void setReadOnly(sal_Bool _bReadOnly);
66 		// set the statement for representation
67 		/// late construction
68 		virtual void Construct();
69 		virtual void initialize();
70 		virtual void KeyInput( const KeyEvent& rEvt );
71 
72 		virtual void SaveTabWinUIConfig(OTableWindow* pWin);
getController() const73 		OJoinController& getController() const { return m_rController; }
74 		// called when fields are deleted
75 
getTableView() const76 		OJoinTableView* getTableView() const { return m_pTableView; }
getScrollHelper() const77         OScrollWindowHelper* getScrollHelper() const { return m_pScrollWindow; }
78 	protected:
79 		// return the Rectangle where I can paint myself
80 		virtual void resizeDocumentView(Rectangle& rRect);
81 		DECL_LINK( SplitHdl, void* );
82 	};
83 }
84 #endif // DBAUI_JOINDESIGNVIEW_HXX
85 
86 
87 
88