LibreOffice Module sc (master)  1
dapitype.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 
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_DAPITYPE_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_DAPITYPE_HXX
22 
23 #include <vcl/weld.hxx>
24 
26 {
27 private:
28  std::unique_ptr<weld::RadioButton> m_xBtnSelection;
29  std::unique_ptr<weld::RadioButton> m_xBtnNamedRange;
30  std::unique_ptr<weld::RadioButton> m_xBtnDatabase;
31  std::unique_ptr<weld::RadioButton> m_xBtnExternal;
32  std::unique_ptr<weld::ComboBox> m_xLbNamedRange;
33  std::unique_ptr<weld::Button> m_xBtnOk;
34  std::unique_ptr<weld::Button> m_xBtnCancel;
35 
36 public:
37  ScDataPilotSourceTypeDlg(weld::Window* pParent, bool bEnableExternal);
38  virtual ~ScDataPilotSourceTypeDlg() override;
39  bool IsDatabase() const;
40  bool IsExternal() const;
41  bool IsNamedRange() const;
42  OUString GetSelectedNamedRange() const;
43  void AppendNamedRange(const OUString& rNames);
44 
45 private:
46  DECL_LINK(RadioClickHdl, weld::ToggleButton&, void);
47  DECL_LINK(ResponseHdl, weld::Button&, void);
48 };
49 
51 {
52 private:
53  std::unique_ptr<weld::ComboBox> m_xLbService;
54  std::unique_ptr<weld::Entry> m_xEdSource;
55  std::unique_ptr<weld::Entry> m_xEdName;
56  std::unique_ptr<weld::Entry> m_xEdUser;
57  std::unique_ptr<weld::Entry> m_xEdPasswd;
58 
59 public:
60  ScDataPilotServiceDlg(weld::Window* pParent, const std::vector<OUString>& rServices);
61  virtual ~ScDataPilotServiceDlg() override;
62 
63  OUString GetServiceName() const;
64  OUString GetParSource() const;
65  OUString GetParName() const;
66  OUString GetParUser() const;
67  OUString GetParPass() const;
68 };
69 
70 #endif
71 
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString GetParUser() const
Definition: dapitype.cxx:143
bool IsDatabase() const
Definition: dapitype.cxx:73
ScDataPilotSourceTypeDlg(weld::Window *pParent, bool bEnableExternal)
Definition: dapitype.cxx:27
std::unique_ptr< weld::ComboBox > m_xLbService
Definition: dapitype.hxx:53
std::unique_ptr< weld::Entry > m_xEdUser
Definition: dapitype.hxx:56
std::unique_ptr< weld::Entry > m_xEdPasswd
Definition: dapitype.hxx:57
std::unique_ptr< weld::Entry > m_xEdSource
Definition: dapitype.hxx:54
std::unique_ptr< weld::Entry > m_xEdName
Definition: dapitype.hxx:55
OUString GetParName() const
Definition: dapitype.cxx:138
std::unique_ptr< weld::Button > m_xBtnOk
Definition: dapitype.hxx:33
DECL_LINK(RadioClickHdl, weld::ToggleButton &, void)
bool IsNamedRange() const
Definition: dapitype.cxx:83
virtual ~ScDataPilotSourceTypeDlg() override
Definition: dapitype.cxx:69
std::unique_ptr< weld::RadioButton > m_xBtnDatabase
Definition: dapitype.hxx:30
std::unique_ptr< weld::RadioButton > m_xBtnExternal
Definition: dapitype.hxx:31
std::unique_ptr< weld::ComboBox > m_xLbNamedRange
Definition: dapitype.hxx:32
OUString GetSelectedNamedRange() const
Definition: dapitype.cxx:88
void AppendNamedRange(const OUString &rNames)
Definition: dapitype.cxx:93
OUString GetServiceName() const
Definition: dapitype.cxx:128
std::unique_ptr< weld::Button > m_xBtnCancel
Definition: dapitype.hxx:34
bool IsExternal() const
Definition: dapitype.cxx:78
virtual ~ScDataPilotServiceDlg() override
Definition: dapitype.cxx:124
OUString GetParPass() const
Definition: dapitype.cxx:148
ScDataPilotServiceDlg(weld::Window *pParent, const std::vector< OUString > &rServices)
Definition: dapitype.cxx:109
OUString GetParSource() const
Definition: dapitype.cxx:133
std::unique_ptr< weld::RadioButton > m_xBtnSelection
Definition: dapitype.hxx:28
std::unique_ptr< weld::RadioButton > m_xBtnNamedRange
Definition: dapitype.hxx:29