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