diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 12:52:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 18:25:19 +0200 |
commit | 7b8556729629ceaf633f60c86f0114e4427d2b4a (patch) | |
tree | f8182d12df8dabf7c819c2cf0be1bfdfb87a85a5 /cui/source/inc | |
parent | a9a0601e2af539ab8feed76279181339393ae633 (diff) |
weld GalleryIdDialog
Change-Id: I214afef7668eaf5082683f1c77b08aa0c5107619
Reviewed-on: https://gerrit.libreoffice.org/54317
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 'cui/source/inc')
-rw-r--r-- | cui/source/inc/cuigaldlg.hxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx index c316fb6b7e95..a2089ed6ee53 100644 --- a/cui/source/inc/cuigaldlg.hxx +++ b/cui/source/inc/cuigaldlg.hxx @@ -178,19 +178,18 @@ public: OUString GetTitle() const { return m_xEdit->get_text(); } }; -class GalleryIdDialog : public ModalDialog +class GalleryIdDialog : public weld::GenericDialogController { private: - VclPtr<OKButton> m_pBtnOk; - VclPtr<ListBox> m_pLbResName; - GalleryTheme* pThm; + GalleryTheme* m_pThm; + std::unique_ptr<weld::Button> m_xBtnOk; + std::unique_ptr<weld::ComboBoxText> m_xLbResName; - DECL_LINK( ClickOkHdl, Button*, void ); + DECL_LINK(ClickOkHdl, weld::Button&, void); public: - GalleryIdDialog( vcl::Window* pParent, GalleryTheme* pThm ); + GalleryIdDialog(weld::Window* pParent, GalleryTheme* pThm); virtual ~GalleryIdDialog() override; - virtual void dispose() override; - sal_uInt32 GetId() const { return m_pLbResName->GetSelectedEntryPos(); } + sal_uInt32 GetId() const { return m_xLbResName->get_active(); } }; class GalleryThemeProperties : public SfxTabDialog |