LibreOffice Module dbaccess (master) 1
RelationTableView.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 "JoinTableView.hxx"
24#include <rtl/ref.hxx>
25
26namespace dbaui
27{
28 class ORelationDesignView;
29
31 public OJoinTableView,
33 {
35 TTableConnectionData::value_type m_pCurrentlyTabConnData;
38
39 virtual void ConnDoubleClicked(VclPtr<OTableConnection>& rConnection) override;
40 virtual void AddTabWin(const OUString& _rComposedName, const OUString& rWinName, bool bNewTable = false) override;
41
42 virtual VclPtr<OTableWindow> createWindow(const TTableWindowData::value_type& _pData) override;
43
46 virtual bool allowQueries() const override;
47
48 // OContainerListener
49 virtual void _elementInserted( const css::container::ContainerEvent& _rEvent ) override;
50 virtual void _elementRemoved( const css::container::ContainerEvent& _rEvent ) override;
51 virtual void _elementReplaced( const css::container::ContainerEvent& _rEvent ) override;
52
53 public:
55 virtual ~ORelationTableView() override;
56 virtual void dispose() override;
57
58 virtual void RemoveTabWin( OTableWindow* pTabWin ) override;
59 virtual void AddConnection(const OJoinExchangeData& jxdSource, const OJoinExchangeData& jxdDest) override;
60 virtual bool RemoveConnection(VclPtr<OTableConnection>& rConn, bool _bDelete) override;
61
62 virtual void ReSync() override;
63
65 void AddNewRelation();
66
68 virtual bool IsAddAllowed() override;
69
70 virtual void lookForUiActivities() override;
71 };
72}
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual VclPtr< OTableWindow > createWindow(const TTableWindowData::value_type &_pData) override
factory method to create table windows
virtual void AddConnection(const OJoinExchangeData &jxdSource, const OJoinExchangeData &jxdDest) override
virtual void RemoveTabWin(OTableWindow *pTabWin) override
virtual void _elementInserted(const css::container::ContainerEvent &_rEvent) override
TTableConnectionData::value_type m_pCurrentlyTabConnData
set when we creating a connection with more than one keycolumn
virtual void ConnDoubleClicked(VclPtr< OTableConnection > &rConnection) override
virtual bool allowQueries() const override
determines whether the classes Init method should accept a query name, or only table names
virtual void _elementRemoved(const css::container::ContainerEvent &_rEvent) override
virtual void lookForUiActivities() override
ORelationTableView(vcl::Window *pParent, ORelationDesignView *pView)
virtual bool RemoveConnection(VclPtr< OTableConnection > &rConn, bool _bDelete) override
RemoveConnection allows to remove connections from join table view.
virtual void _elementReplaced(const css::container::ContainerEvent &_rEvent) override
VclPtr< OTableConnection > m_pExistingConnection
is set when a connection was dragged on an existing connection
virtual void ReSync() override
take all WinData and ConnData from the document and create the corresponding Wins and Conns
virtual ~ORelationTableView() override
virtual void AddTabWin(const OUString &_rComposedName, const OUString &rWinName, bool bNewTable=false) override
void AddNewRelation()
Creates a dialogue for a completely new relation.
::rtl::Reference< comphelper::OContainerListenerAdapter > m_pContainerListener
virtual bool IsAddAllowed() override
used by AddTabDlg to check if tables can be added
virtual void dispose() override