diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-18 11:17:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-18 15:12:22 +0200 |
commit | 74c8bc3c7db2bdc5811f0c9ea535a73ddaf6f3ad (patch) | |
tree | 6203a869753c4b31312bac9297c419634235a449 /sc/source/ui/inc/dapitype.hxx | |
parent | 201321f648e82ecc610e7a3324a46248a19c1704 (diff) |
weld ScDataPilotSourceTypeDlg and ScDataPilotServiceDlg
Change-Id: I03ef6f1994e8e1a801e4515586a6a73d3748f13b
Reviewed-on: https://gerrit.libreoffice.org/54528
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/dapitype.hxx')
-rw-r--r-- | sc/source/ui/inc/dapitype.hxx | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/sc/source/ui/inc/dapitype.hxx b/sc/source/ui/inc/dapitype.hxx index dce9670d757f..3c1fa4790d3f 100644 --- a/sc/source/ui/inc/dapitype.hxx +++ b/sc/source/ui/inc/dapitype.hxx @@ -20,25 +20,20 @@ #ifndef INCLUDED_SC_SOURCE_UI_INC_DAPITYPE_HXX #define INCLUDED_SC_SOURCE_UI_INC_DAPITYPE_HXX -#include <vcl/button.hxx> -#include <vcl/dialog.hxx> -#include <vcl/edit.hxx> -#include <vcl/fixed.hxx> -#include <vcl/lstbox.hxx> +#include <vcl/weld.hxx> -class ScDataPilotSourceTypeDlg : public ModalDialog +class ScDataPilotSourceTypeDlg : public weld::GenericDialogController { private: - VclPtr<RadioButton> m_pBtnSelection; - VclPtr<RadioButton> m_pBtnNamedRange; - VclPtr<RadioButton> m_pBtnDatabase; - VclPtr<RadioButton> m_pBtnExternal; - VclPtr<ListBox> m_pLbNamedRange; + std::unique_ptr<weld::RadioButton> m_xBtnSelection; + std::unique_ptr<weld::RadioButton> m_xBtnNamedRange; + std::unique_ptr<weld::RadioButton> m_xBtnDatabase; + std::unique_ptr<weld::RadioButton> m_xBtnExternal; + std::unique_ptr<weld::ComboBoxText> m_xLbNamedRange; public: - ScDataPilotSourceTypeDlg(vcl::Window* pParent, bool bEnableExternal); + ScDataPilotSourceTypeDlg(weld::Window* pParent, bool bEnableExternal); virtual ~ScDataPilotSourceTypeDlg() override; - virtual void dispose() override; bool IsDatabase() const; bool IsExternal() const; bool IsNamedRange() const; @@ -46,23 +41,21 @@ public: void AppendNamedRange(const OUString& rNames); private: - DECL_LINK( RadioClickHdl, Button *, void ); + DECL_LINK(RadioClickHdl, weld::ToggleButton&, void); }; -class ScDataPilotServiceDlg : public ModalDialog +class ScDataPilotServiceDlg : public weld::GenericDialogController { private: - VclPtr<ListBox> m_pLbService; - VclPtr<Edit> m_pEdSource; - VclPtr<Edit> m_pEdName; - VclPtr<Edit> m_pEdUser; - VclPtr<Edit> m_pEdPasswd; + std::unique_ptr<weld::ComboBoxText> m_xLbService; + std::unique_ptr<weld::Entry> m_xEdSource; + std::unique_ptr<weld::Entry> m_xEdName; + std::unique_ptr<weld::Entry> m_xEdUser; + std::unique_ptr<weld::Entry> m_xEdPasswd; public: - ScDataPilotServiceDlg( vcl::Window* pParent, - const std::vector<OUString>& rServices ); - virtual ~ScDataPilotServiceDlg() override; - virtual void dispose() override; + ScDataPilotServiceDlg(weld::Window* pParent, const std::vector<OUString>& rServices); + virtual ~ScDataPilotServiceDlg() override; OUString GetServiceName() const; OUString GetParSource() const; |