summaryrefslogtreecommitdiff
path: root/cui/source/inc/optdict.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-30 21:24:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-03-31 20:49:32 +0200
commit1595604169f7643cf134f71e218ea512887ed8a3 (patch)
treebef728dc91af919b58f94d4561bd5f815930c4ea /cui/source/inc/optdict.hxx
parentc8af8aebd1336e919e9531e39f84296085d91ea7 (diff)
weld SvxNewDictionaryDialog
Change-Id: Idf9a4a74615b3216918dde50563e9d081c61cd52 Reviewed-on: https://gerrit.libreoffice.org/52174 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/optdict.hxx')
-rw-r--r--cui/source/inc/optdict.hxx25
1 files changed, 10 insertions, 15 deletions
diff --git a/cui/source/inc/optdict.hxx b/cui/source/inc/optdict.hxx
index e2dc53bf9e6e..e50accd43276 100644
--- a/cui/source/inc/optdict.hxx
+++ b/cui/source/inc/optdict.hxx
@@ -47,27 +47,22 @@ namespace linguistic2{
// class SvxNewDictionaryDialog ------------------------------------------
-class SvxNewDictionaryDialog : public ModalDialog
+class SvxNewDictionaryDialog : public weld::GenericDialogController
{
private:
- VclPtr<Edit> pNameEdit;
- VclPtr<SvxLanguageBox> pLanguageLB;
- VclPtr<CheckBox> pExceptBtn;
- VclPtr<OKButton> pOKBtn;
- css::uno::Reference<
- css::linguistic2::XDictionary > xNewDic;
+ std::unique_ptr<weld::Entry> m_xNameEdit;
+ std::unique_ptr<LanguageBox> m_xLanguageLB;
+ std::unique_ptr<weld::CheckButton> m_xExceptBtn;
+ std::unique_ptr<weld::Button> m_xOKBtn;
+ css::uno::Reference<css::linguistic2::XDictionary> m_xNewDic;
- DECL_LINK(OKHdl_Impl, Button*, void);
- DECL_LINK(ModifyHdl_Impl, Edit&, void);
+ DECL_LINK(OKHdl_Impl, weld::Button&, void);
+ DECL_LINK(ModifyHdl_Impl, weld::Entry&, void);
public:
- SvxNewDictionaryDialog( vcl::Window* pParent );
- virtual ~SvxNewDictionaryDialog() override;
- virtual void dispose() override;
+ SvxNewDictionaryDialog(weld::Window* pParent);
- const css::uno::Reference<
- css::linguistic2::XDictionary >&
- GetNewDictionary() { return xNewDic; }
+ const css::uno::Reference<css::linguistic2::XDictionary>& GetNewDictionary() { return m_xNewDic; }
};
// class SvxDictEdit ----------------------------------------------------