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