LibreOffice Module dbaccess (master) 1
RelationDlg.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 <memory>
22#include <vcl/weld.hxx>
23#include "JoinTableView.hxx"
24#include "RelControliFace.hxx"
25#include "RelationControl.hxx"
26
27namespace dbaui
28{
29 class OJoinTableView;
32 {
34 TTableConnectionData::value_type m_pConnData;
35 TTableConnectionData::value_type m_pOrigConnData;
37
38 std::unique_ptr<weld::RadioButton> m_xRB_NoCascUpd;
39 std::unique_ptr<weld::RadioButton> m_xRB_CascUpd;
40 std::unique_ptr<weld::RadioButton> m_xRB_CascUpdNull;
41 std::unique_ptr<weld::RadioButton> m_xRB_CascUpdDefault;
42 std::unique_ptr<weld::RadioButton> m_xRB_NoCascDel;
43 std::unique_ptr<weld::RadioButton> m_xRB_CascDel;
44 std::unique_ptr<weld::RadioButton> m_xRB_CascDelNull;
45 std::unique_ptr<weld::RadioButton> m_xRB_CascDelDefault;
46 std::unique_ptr<weld::Button> m_xPB_OK;
47
48 std::unique_ptr<OTableListBoxControl> m_xTableControl;
49
50 public:
52 const TTableConnectionData::value_type& pConnectionData,
53 bool bAllowTableSelect = false );
54 virtual ~ORelationDialog() override;
55
56 virtual short run() override;
57
61 virtual void setValid(bool _bValid) override;
62
66 virtual void notifyConnectionChange() override;
67 private:
68 void Init(const TTableConnectionData::value_type& _pConnectionData);
69
70 DECL_LINK(OKClickHdl, weld::Button&, void);
71 };
72}
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::RadioButton > m_xRB_CascUpd
Definition: RelationDlg.hxx:39
std::unique_ptr< weld::RadioButton > m_xRB_CascDel
Definition: RelationDlg.hxx:43
VclPtr< OJoinTableView > m_pParent
Definition: RelationDlg.hxx:33
std::unique_ptr< OTableListBoxControl > m_xTableControl
Definition: RelationDlg.hxx:48
virtual ~ORelationDialog() override
Definition: RelationDlg.cxx:79
TTableConnectionData::value_type m_pOrigConnData
Definition: RelationDlg.hxx:35
std::unique_ptr< weld::RadioButton > m_xRB_CascUpdNull
Definition: RelationDlg.hxx:40
std::unique_ptr< weld::RadioButton > m_xRB_NoCascUpd
Definition: RelationDlg.hxx:38
std::unique_ptr< weld::Button > m_xPB_OK
Definition: RelationDlg.hxx:46
void Init(const TTableConnectionData::value_type &_pConnectionData)
Definition: RelationDlg.cxx:83
ORelationDialog(OJoinTableView *pParent, const TTableConnectionData::value_type &pConnectionData, bool bAllowTableSelect=false)
Definition: RelationDlg.cxx:41
virtual void setValid(bool _bValid) override
setValid set the valid inside, can be used for OK buttons
DECL_LINK(OKClickHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xRB_CascDelNull
Definition: RelationDlg.hxx:44
virtual void notifyConnectionChange() override
notifyConnectionChange is callback which is called when the table selection has changed and a new con...
virtual short run() override
TTableConnectionData::value_type m_pConnData
Definition: RelationDlg.hxx:34
std::unique_ptr< weld::RadioButton > m_xRB_CascDelDefault
Definition: RelationDlg.hxx:45
std::unique_ptr< weld::RadioButton > m_xRB_CascUpdDefault
Definition: RelationDlg.hxx:41
std::unique_ptr< weld::RadioButton > m_xRB_NoCascDel
Definition: RelationDlg.hxx:42