summaryrefslogtreecommitdiff
path: root/cui/source/inc/dlgname.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-08 09:49:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-09 13:47:52 +0100
commit48bca65f1cf381cba7cb7a4c3916155a1bca0955 (patch)
treedf461652450b3e095e37a3290cbe54ab20cedfae /cui/source/inc/dlgname.hxx
parentc468b6910bf77e332647725da70e3cb248a9de0e (diff)
inherit welded dialogs from a common ancestor
Change-Id: Ifa6c871a134cf89bfba71b1049a115cf7c953c42 Reviewed-on: https://gerrit.libreoffice.org/50936 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/dlgname.hxx')
-rw-r--r--cui/source/inc/dlgname.hxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx
index 6c960ce114da..5543d9cf1dea 100644
--- a/cui/source/inc/dlgname.hxx
+++ b/cui/source/inc/dlgname.hxx
@@ -28,11 +28,9 @@
#include <vcl/weld.hxx>
/// Dialog for editing a name
-class SvxNameDialog
+class SvxNameDialog : public weld::GenericDialogController
{
private:
- std::unique_ptr<weld::Builder> m_xBuilder;
- std::unique_ptr<weld::Dialog> m_xDialog;
std::unique_ptr<weld::Entry> m_xEdtName;
std::unique_ptr<weld::Label> m_xFtDescription;
std::unique_ptr<weld::Button> m_xBtnOK;
@@ -44,12 +42,8 @@ private:
public:
SvxNameDialog(weld::Window* pWindow, const OUString& rName, const OUString& rDesc);
- void set_title(const OUString& rTitle) { m_xDialog->set_title(rTitle); }
- void set_help_id(const OString& rHelpId) { m_xDialog->set_help_id(rHelpId); }
OUString GetName() const { return m_xEdtName->get_text(); }
- short run() { return m_xDialog->run(); }
-
/** add a callback Link that is called whenever the content of the edit
field is changed. The Link result determines whether the OK
Button is enabled (> 0) or disabled (== 0).