RelationControl.hxx (2e2212a7) RelationControl.hxx (1636bfc2)
1/**************************************************************
1/**************************************************************
2 *
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
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 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
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.
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 *
19 *
20 *************************************************************/
21
22
20 *************************************************************/
21
22
23
23#ifndef DBAUI_RELATIONCONTROL_HXX
24#define DBAUI_RELATIONCONTROL_HXX
25
26#ifndef _FIXED_HXX //autogen
27#include <vcl/fixed.hxx>
28#endif
29#ifndef _SV_LSTBOX_HXX //autogen
30#include <vcl/lstbox.hxx>
31#endif
32#ifndef DBAUI_JOINTABLEVIEW_HXX
33#include "JoinTableView.hxx"
34#endif
35
36namespace dbaui
37{
38 //========================================================================
39 class OTableListBoxControl;
40 class OTableConnectionData;
24#ifndef DBAUI_RELATIONCONTROL_HXX
25#define DBAUI_RELATIONCONTROL_HXX
26
27#ifndef _FIXED_HXX //autogen
28#include <vcl/fixed.hxx>
29#endif
30#ifndef _SV_LSTBOX_HXX //autogen
31#include <vcl/lstbox.hxx>
32#endif
33#ifndef DBAUI_JOINTABLEVIEW_HXX
34#include "JoinTableView.hxx"
35#endif
36
37namespace dbaui
38{
39 //========================================================================
40 class OTableListBoxControl;
41 class OTableConnectionData;
41 class ORelationTableConnectionData;
42 class IRelationControlInterface;
42 class ORelationTableConnectionData;
43 class IRelationControlInterface;
43 class ORelationControl;
44
45 class OTableListBoxControl : public Window
46 {
47 FixedLine m_aFL_InvolvedTables;
48 ListBox m_lmbLeftTable,
49 m_lmbRightTable;
50 FixedLine m_aFL_InvolvedFields;

--- 12 unchanged lines hidden (view full) ---

63 IRelationControlInterface* _pParentDialog);
64 virtual ~OTableListBoxControl();
65
66 /** fillListBoxes fills the list boxes with the table windows
67 */
68 void fillListBoxes();
69
70 /** fillAndDisable fill the listboxes only with one entry and then disable them
44 class ORelationControl;
45
46 class OTableListBoxControl : public Window
47 {
48 FixedLine m_aFL_InvolvedTables;
49 ListBox m_lmbLeftTable,
50 m_lmbRightTable;
51 FixedLine m_aFL_InvolvedFields;

--- 12 unchanged lines hidden (view full) ---

64 IRelationControlInterface* _pParentDialog);
65 virtual ~OTableListBoxControl();
66
67 /** fillListBoxes fills the list boxes with the table windows
68 */
69 void fillListBoxes();
70
71 /** fillAndDisable fill the listboxes only with one entry and then disable them
71 @param _pConnectionData
72 @param _pConnectionData
72 contains the data which should be filled into the listboxes
73 */
74 void fillAndDisable(const TTableConnectionData::value_type& _pConnectionData);
75
73 contains the data which should be filled into the listboxes
74 */
75 void fillAndDisable(const TTableConnectionData::value_type& _pConnectionData);
76
76 /** enables the relation control
77 *
78 * \param _bEnable when sal_True enables it, otherwise disable it.
79 */
80 void enableRelation(bool _bEnable);
77 /** enables the relation control
78 *
79 * \param _bEnable when sal_True enables it, otherwise disable it.
80 */
81 void enableRelation(bool _bEnable);
81
82
82 /** NotifyCellChange notifies the browse control that the conenction data has changed
83 /** NotifyCellChange notifies the browse control that the connection data has changed
83 */
84 void NotifyCellChange();
85
86 /** Init is a call through to the control inside this one
84 */
85 void NotifyCellChange();
86
87 /** Init is a call through to the control inside this one
87 @param _pConnData
88 @param _pConnData
88 the connection data which is used to init the control
89 */
90 void Init(const TTableConnectionData::value_type& _pConnData);
91 void lateUIInit(Window* _pTableSeparator = NULL);
89 the connection data which is used to init the control
90 */
91 void Init(const TTableConnectionData::value_type& _pConnData);
92 void lateUIInit(Window* _pTableSeparator = NULL);
92 void lateInit();
93 void lateInit();
93
94 sal_Bool SaveModified();
95
96 TTableWindowData::value_type getReferencingTable() const;
97
98 /** getContainer returns the container interface
99 @return the interface of the container
100 */
101 IRelationControlInterface* getContainer() const { return m_pParentDialog; }
102 };
103}
104#endif // DBAUI_RELATIONCONTROL_HXX
94
95 sal_Bool SaveModified();
96
97 TTableWindowData::value_type getReferencingTable() const;
98
99 /** getContainer returns the container interface
100 @return the interface of the container
101 */
102 IRelationControlInterface* getContainer() const { return m_pParentDialog; }
103 };
104}
105#endif // DBAUI_RELATIONCONTROL_HXX
106
107/* vim: set noet sw=4 ts=4: */