summaryrefslogtreecommitdiffstats
path: root/cui/source/inc/cuigaldlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-14 12:52:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-14 18:25:19 +0200
commit7b8556729629ceaf633f60c86f0114e4427d2b4a (patch)
treef8182d12df8dabf7c819c2cf0be1bfdfb87a85a5 /cui/source/inc/cuigaldlg.hxx
parentuse optional ScInterpreterContext if possible (diff)
downloadcore-7b8556729629ceaf633f60c86f0114e4427d2b4a.tar.gz
core-7b8556729629ceaf633f60c86f0114e4427d2b4a.zip
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/cuigaldlg.hxx')
-rw-r--r--cui/source/inc/cuigaldlg.hxx15
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