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