Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_JOINDESIGNVIEW_HXX
21 : #define INCLUDED_DBACCESS_SOURCE_UI_INC_JOINDESIGNVIEW_HXX
22 :
23 : #include <dbaccess/dataview.hxx>
24 : #include "QEnumTypes.hxx"
25 :
26 : namespace dbaui
27 : {
28 : class OJoinController;
29 : class OScrollWindowHelper;
30 : class OJoinTableView;
31 : class OTableWindow;
32 :
33 : class OJoinDesignView : public ODataView
34 : {
35 : protected:
36 : OScrollWindowHelper* m_pScrollWindow; // contains only the scrollbars
37 : OJoinTableView* m_pTableView; // presents the upper window
38 : OJoinController& m_rController;
39 :
40 : public:
41 : OJoinDesignView(vcl::Window* pParent,
42 : OJoinController& _rController,
43 : const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
44 : virtual ~OJoinDesignView();
45 :
46 : // set the view readonly or not
47 : virtual void setReadOnly(bool _bReadOnly);
48 : // set the statement for representation
49 : /// late construction
50 : virtual void Construct() SAL_OVERRIDE;
51 : virtual void initialize() SAL_OVERRIDE;
52 : virtual void KeyInput( const KeyEvent& rEvt ) SAL_OVERRIDE;
53 :
54 : virtual void SaveTabWinUIConfig(OTableWindow* pWin);
55 0 : OJoinController& getController() const { return m_rController; }
56 : // called when fields are deleted
57 :
58 0 : OJoinTableView* getTableView() const { return m_pTableView; }
59 0 : OScrollWindowHelper* getScrollHelper() const { return m_pScrollWindow; }
60 : protected:
61 : // return the Rectangle where I can paint myself
62 : virtual void resizeDocumentView(Rectangle& rRect) SAL_OVERRIDE;
63 : DECL_LINK( SplitHdl, void* );
64 : };
65 : }
66 : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_JOINDESIGNVIEW_HXX
67 :
68 :
69 :
70 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|