1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: JoinDesignView.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef DBAUI_JOINDESIGNVIEW_HXX
32 #define DBAUI_JOINDESIGNVIEW_HXX
34 #ifndef DBAUI_DATAVIEW_HXX
35 #include "dataview.hxx"
41 #include <tools/string.hxx>
43 #ifndef DBAUI_ENUMTYPES_HXX
44 #include "QEnumTypes.hxx"
51 class OTableConnection
;
52 class OConnectionLineData
;
53 class OJoinController
;
54 class OScrollWindowHelper
;
58 class OJoinDesignView
: public ODataView
61 OScrollWindowHelper
* m_pScrollWindow
; // contains only the scrollbars
62 OJoinTableView
* m_pTableView
; // presents the upper window
63 OJoinController
& m_rController
;
66 OJoinDesignView(Window
* pParent
,
67 OJoinController
& _rController
,
68 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& );
69 virtual ~OJoinDesignView();
71 // set the view readonly or not
72 virtual void setReadOnly(sal_Bool _bReadOnly
);
73 // set the statement for representation
75 virtual void Construct();
76 virtual void initialize();
77 virtual void KeyInput( const KeyEvent
& rEvt
);
79 virtual void SaveTabWinUIConfig(OTableWindow
* pWin
);
80 OJoinController
& getController() const { return m_rController
; }
81 // called when fields are deleted
83 OJoinTableView
* getTableView() const { return m_pTableView
; }
84 OScrollWindowHelper
* getScrollHelper() const { return m_pScrollWindow
; }
86 // return the Rectangle where I can paint myself
87 virtual void resizeDocumentView(Rectangle
& rRect
);
88 DECL_LINK( SplitHdl
, void* );
91 #endif // DBAUI_JOINDESIGNVIEW_HXX