LibreOffice Module dbaccess (master) 1
querydlg.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
23#include <QEnumTypes.hxx>
24
25#include <RelControliFace.hxx>
26#include <JoinTableView.hxx>
27
28
29namespace dbaui
30{
31 class OTableListBoxControl;
32 class OQueryTableView;
35 {
37 TTableConnectionData::value_type m_pConnData; // contains left and right table
38 TTableConnectionData::value_type m_pOrigConnData;
39 css::uno::Reference< css::sdbc::XConnection > m_xConnection;
40
41 std::unique_ptr<weld::Label> m_xML_HelpText;
42 std::unique_ptr<weld::Button> m_xPB_OK;
43 std::unique_ptr<weld::ComboBox> m_xLB_JoinType;
44 std::unique_ptr<weld::CheckButton> m_xCBNatural;
45 std::unique_ptr<OTableListBoxControl> m_xTableControl;
46
47 DECL_LINK(OKClickHdl, weld::Button&, void);
48 DECL_LINK(LBChangeHdl, weld::ComboBox&, void);
49 DECL_LINK(NaturalToggleHdl, weld::Toggleable&, void);
50
54 void setJoinType(EJoinType _eNewJoinType);
55 public:
56 DlgQryJoin( const OQueryTableView * pParent,
57 const TTableConnectionData::value_type& pData,
58 const OJoinTableView::OTableWindowMap* _pTableMap,
59 const css::uno::Reference< css::sdbc::XConnection >& _xConnection,
60 bool _bAllowTableSelect);
61 virtual ~DlgQryJoin() override;
62 EJoinType GetJoinType() const { return eJoinType; };
63
67 virtual void setValid(bool _bValid) override;
68
72 virtual void notifyConnectionChange() override;
73 };
74}
75
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > m_xML_HelpText
Definition: querydlg.hxx:41
void setJoinType(EJoinType _eNewJoinType)
setJoinType enables and set the new join type
Definition: querydlg.cxx:270
virtual ~DlgQryJoin() override
Definition: querydlg.cxx:136
std::unique_ptr< OTableListBoxControl > m_xTableControl
Definition: querydlg.hxx:45
DECL_LINK(OKClickHdl, weld::Button &, void)
virtual void notifyConnectionChange() override
notifyConnectionChange is callback which is called when the table selection has changed and a new con...
Definition: querydlg.cxx:263
std::unique_ptr< weld::ComboBox > m_xLB_JoinType
Definition: querydlg.hxx:43
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: querydlg.hxx:39
TTableConnectionData::value_type m_pConnData
Definition: querydlg.hxx:37
std::unique_ptr< weld::CheckButton > m_xCBNatural
Definition: querydlg.hxx:44
virtual void setValid(bool _bValid) override
setValid set the valid inside, can be used for OK buttons
Definition: querydlg.cxx:258
TTableConnectionData::value_type m_pOrigConnData
Definition: querydlg.hxx:38
DECL_LINK(NaturalToggleHdl, weld::Toggleable &, void)
EJoinType GetJoinType() const
Definition: querydlg.hxx:62
std::unique_ptr< weld::Button > m_xPB_OK
Definition: querydlg.hxx:42
EJoinType eJoinType
Definition: querydlg.hxx:36
DlgQryJoin(const OQueryTableView *pParent, const TTableConnectionData::value_type &pData, const OJoinTableView::OTableWindowMap *_pTableMap, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, bool _bAllowTableSelect)
Definition: querydlg.cxx:43
DECL_LINK(LBChangeHdl, weld::ComboBox &, void)
std::map< OUString, VclPtr< OTableWindow > > OTableWindowMap