tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / dapitype.hxx
blobe45400cdf6b2977ed63ca44151c07a53c13fd1f3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <vcl/weld.hxx>
24 class ScDataPilotSourceTypeDlg : public weld::GenericDialogController
26 private:
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;
35 public:
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);
44 private:
45 DECL_LINK(RadioClickHdl, weld::Toggleable&, void);
46 DECL_LINK(ResponseHdl, weld::Button&, void);
49 class ScDataPilotServiceDlg : public weld::GenericDialogController
51 private:
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;
58 public:
59 ScDataPilotServiceDlg(weld::Window* pParent, const std::vector<OUString>& rServices);
60 virtual ~ScDataPilotServiceDlg() override;
62 OUString GetServiceName() const;
63 OUString GetParSource() const;
64 OUString GetParName() const;
65 OUString GetParUser() const;
66 OUString GetParPass() const;
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */