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 
26 namespace com{namespace sun{namespace 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_xCreateListPB;
63  std::unique_ptr<weld::Button> m_xFilterPB;
64  std::unique_ptr<weld::Button> m_xEditPB;
65  std::unique_ptr<weld::Button> m_xTablePB;
66  std::unique_ptr<weld::Button> m_xOK;
67  std::unique_ptr<weld::TreeIter> m_xIter;
68 
69  void DetectTablesAndQueries(int Select, bool bWidthDialog);
70 
71  DECL_LINK(FilterHdl_Impl, weld::Button&, void);
72  DECL_LINK(LoadHdl_Impl, weld::Button&, void);
73  DECL_LINK(CreateHdl_Impl, weld::Button&, void);
74  DECL_LINK(ListBoxSelectHdl_Impl, weld::TreeView&, void);
75  DECL_LINK(EditHdl_Impl, weld::Button&, void);
76  DECL_LINK(TableSelectHdl_Impl, weld::Button&, void);
77  void TableSelectHdl(weld::Button* pButton);
78  DECL_LINK(OKHdl_Impl, weld::Button&, void);
79 
80  DECL_LINK(StaticListBoxSelectHdl_Impl, void*, void);
81 
82 public:
84  virtual ~SwAddressListDialog() override;
85 
86  css::uno::Reference< css::sdbc::XDataSource>
87  GetSource();
88 
90 
91  css::uno::Reference< css::sdbcx::XColumnsSupplier>
93 
94  const SwDBData& GetDBData() const {return m_aDBData;}
95  OUString GetFilter();
96 };
97 #endif
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::sdbcx::XColumnsSupplier > GetColumnsSupplier()
SharedConnection GetConnection()
DECL_LINK(FilterHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::TreeView > m_xListLB
std::unique_ptr< weld::TreeIter > m_xIter
std::unique_ptr< weld::Button > m_xCreateListPB
std::unique_ptr< weld::Button > m_xEditPB
std::vector< std::unique_ptr< AddressUserData_Impl > > m_aUserData
void TableSelectHdl(weld::Button *pButton)
css::uno::Reference< css::sdbc::XDataSource > GetSource()
const SwDBData & GetDBData() const
void DetectTablesAndQueries(int Select, bool bWidthDialog)
css::uno::Reference< css::sdb::XDatabaseContext > m_xDBContext
std::unique_ptr< weld::Button > m_xTablePB
VclPtr< SwMailMergeAddressBlockPage > m_xAddressPage
std::unique_ptr< weld::Label > m_xConnecting
std::unique_ptr< weld::Label > m_xDescriptionFI
std::unique_ptr< weld::Button > m_xOK
std::unique_ptr< weld::Button > m_xFilterPB
SwAddressListDialog(SwMailMergeAddressBlockPage *pParent)
std::unique_ptr< weld::Button > m_xLoadListPB
virtual ~SwAddressListDialog() override