LibreOffice Module sw (master) 1
addresslistdialog.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#ifndef INCLUDED_SW_SOURCE_UI_DBUI_ADDRESSLISTDIALOG_HXX
20#define INCLUDED_SW_SOURCE_UI_DBUI_ADDRESSLISTDIALOG_HXX
21
22#include <sfx2/basedlgs.hxx>
23#include <swdbdata.hxx>
24#include <sharedconnection.hxx>
25
26namespace com::sun::star{
27 namespace container{
28 class XNameAccess;
29 }
30 namespace sdb{
31 class XDatabaseContext;
32 }
33 namespace sdbc{
34 class XDataSource;
35 }
36 namespace sdbcx{
37 class XColumnsSupplier;
38 }
39}
41
43
45{
46 OUString m_sConnecting;
47
49
51
52 css::uno::Reference< css::sdb::XDatabaseContext> m_xDBContext;
53
55
56 std::vector<std::unique_ptr<AddressUserData_Impl>> m_aUserData;
57
58 std::unique_ptr<weld::Label> m_xDescriptionFI;
59 std::unique_ptr<weld::Label> m_xConnecting;
60 std::unique_ptr<weld::TreeView> m_xListLB;
61 std::unique_ptr<weld::Button> m_xLoadListPB;
62 std::unique_ptr<weld::Button> m_xRemovePB;
63 std::unique_ptr<weld::Button> m_xCreateListPB;
64 std::unique_ptr<weld::Button> m_xFilterPB;
65 std::unique_ptr<weld::Button> m_xEditPB;
66 std::unique_ptr<weld::Button> m_xTablePB;
67 std::unique_ptr<weld::Button> m_xOK;
68 std::unique_ptr<weld::TreeIter> m_xIter;
69
70 void DetectTablesAndQueries(int Select, bool bWidthDialog);
71
72 DECL_LINK(FilterHdl_Impl, weld::Button&, void);
73 DECL_LINK(LoadHdl_Impl, weld::Button&, void);
74 DECL_LINK(CreateHdl_Impl, weld::Button&, void);
75 DECL_LINK(RemoveHdl_Impl, weld::Button&, void);
76 DECL_LINK(ListBoxSelectHdl_Impl, weld::TreeView&, void);
77 DECL_LINK(EditHdl_Impl, weld::Button&, void);
78 DECL_LINK(TableSelectHdl_Impl, weld::Button&, void);
79 void TableSelectHdl(const weld::Button* pButton);
80 DECL_LINK(OKHdl_Impl, weld::Button&, void);
81
82 DECL_LINK(StaticListBoxSelectHdl_Impl, void*, void);
83
84public:
86 virtual ~SwAddressListDialog() override;
87
88 css::uno::Reference< css::sdbc::XDataSource>
89 GetSource() const;
90
92
93 css::uno::Reference< css::sdbcx::XColumnsSupplier>
94 GetColumnsSupplier() const;
95
96 const SwDBData& GetDBData() const {return m_aDBData;}
97 OUString GetFilter() const;
98};
99#endif
100
101/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > m_xConnecting
void TableSelectHdl(const weld::Button *pButton)
SwAddressListDialog(SwMailMergeAddressBlockPage *pParent)
std::unique_ptr< weld::Button > m_xTablePB
std::unique_ptr< weld::Button > m_xFilterPB
std::unique_ptr< weld::Button > m_xRemovePB
DECL_LINK(CreateHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xDescriptionFI
std::vector< std::unique_ptr< AddressUserData_Impl > > m_aUserData
const SwDBData & GetDBData() const
SwMailMergeAddressBlockPage * m_pAddressPage
std::unique_ptr< weld::Button > m_xOK
SharedConnection GetConnection() const
std::unique_ptr< weld::Button > m_xEditPB
std::unique_ptr< weld::TreeIter > m_xIter
std::unique_ptr< weld::Button > m_xCreateListPB
std::unique_ptr< weld::Button > m_xLoadListPB
css::uno::Reference< css::sdbc::XDataSource > GetSource() const
DECL_LINK(LoadHdl_Impl, weld::Button &, void)
DECL_LINK(TableSelectHdl_Impl, weld::Button &, void)
css::uno::Reference< css::sdbcx::XColumnsSupplier > GetColumnsSupplier() const
void DetectTablesAndQueries(int Select, bool bWidthDialog)
OUString GetFilter() const
DECL_LINK(FilterHdl_Impl, weld::Button &, void)
DECL_LINK(OKHdl_Impl, weld::Button &, void)
DECL_LINK(EditHdl_Impl, weld::Button &, void)
css::uno::Reference< css::sdb::XDatabaseContext > m_xDBContext
DECL_LINK(ListBoxSelectHdl_Impl, weld::TreeView &, void)
virtual ~SwAddressListDialog() override
std::unique_ptr< weld::TreeView > m_xListLB
DECL_LINK(StaticListBoxSelectHdl_Impl, void *, void)
DECL_LINK(RemoveHdl_Impl, weld::Button &, void)