LibreOffice Module dbaccess (master) 1
RelationControl.hxx
Go to the documentation of this file.
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#pragma once
20
21#include <vcl/weld.hxx>
22#include "JoinTableView.hxx"
23
24namespace dbaui
25{
26 class OTableListBoxControl;
27 class IRelationControlInterface;
28 class ORelationControl;
29
31 {
32 std::unique_ptr<weld::ComboBox> m_xLeftTable;
33 std::unique_ptr<weld::ComboBox> m_xRightTable;
34 std::unique_ptr<weld::Container> m_xTable;
35 css::uno::Reference<css::awt::XWindow> m_xTableCtrlParent;
37
42 DECL_LINK( OnTableChanged, weld::ComboBox&, void );
43 public:
45 const OJoinTableView::OTableWindowMap* _pTableMap,
46 IRelationControlInterface* _pParentDialog);
48
51 void fillListBoxes();
52
57 void fillAndDisable(const TTableConnectionData::value_type& _pConnectionData);
58
63 void enableRelation(bool _bEnable);
64
67 void NotifyCellChange();
68
73 void Init(const TTableConnectionData::value_type& _pConnData);
74 void lateUIInit();
75 void lateInit();
76
77 void Disable();
78 void Invalidate();
79
80 void SaveModified();
81
82 TTableWindowData::value_type const & getReferencingTable() const;
83
88 };
89}
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::map< OUString, VclPtr< OTableWindow > > OTableWindowMap
IRelationControlInterface * getContainer() const
getContainer returns the container interface
OTableListBoxControl(weld::Builder *_pParent, const OJoinTableView::OTableWindowMap *_pTableMap, IRelationControlInterface *_pParentDialog)
std::unique_ptr< weld::Container > m_xTable
std::unique_ptr< weld::ComboBox > m_xRightTable
std::unique_ptr< weld::ComboBox > m_xLeftTable
VclPtr< ORelationControl > m_xRC_Tables
void fillAndDisable(const TTableConnectionData::value_type &_pConnectionData)
fillAndDisable fill the listboxes only with one entry and then disable them
css::uno::Reference< css::awt::XWindow > m_xTableCtrlParent
const OJoinTableView::OTableWindowMap * m_pTableMap
void NotifyCellChange()
NotifyCellChange notifies the browse control that the connection data has changed.
TTableWindowData::value_type const & getReferencingTable() const
DECL_LINK(OnTableChanged, weld::ComboBox &, void)
IRelationControlInterface * m_pParentDialog
void fillListBoxes()
fillListBoxes fills the list boxes with the table windows
void enableRelation(bool _bEnable)
enables the relation control
void Init(const TTableConnectionData::value_type &_pConnData)
Init is a call through to the control inside this one.