diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-12 18:37:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-13 09:53:32 +0100 |
commit | 0faf4e5c2e98219b17e042594710f6872bf6a615 (patch) | |
tree | 618ec137e00e30bbf6ab25d33374c8d20576853d /cui/source/options/dbregister.cxx | |
parent | fdc44bd929f038182dda4ea951f3b70dfc67f8d1 (diff) |
weld DatabaseRegistrationDialog
Change-Id: I739785daef892ac16d2a41a98268f18670daeedb
Reviewed-on: https://gerrit.libreoffice.org/69136
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/options/dbregister.cxx')
-rw-r--r-- | cui/source/options/dbregister.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx index 557d2e04e6c0..86f7375c35cd 100644 --- a/cui/source/options/dbregister.cxx +++ b/cui/source/options/dbregister.cxx @@ -71,19 +71,19 @@ RegistrationItemSetHolder::~RegistrationItemSetHolder() // class DatabaseRegistrationDialog ------------------------------------------------ -DatabaseRegistrationDialog::DatabaseRegistrationDialog( vcl::Window* pParent, const SfxItemSet& rInAttrs ) +DatabaseRegistrationDialog::DatabaseRegistrationDialog(weld::Window* pParent, const SfxItemSet& rInAttrs) : RegistrationItemSetHolder(rInAttrs) - , SfxSingleTabDialog(pParent, getRegistrationItems()) + , SfxSingleTabDialogController(pParent, getRegistrationItems()) { - VclPtr<SfxTabPage> page = DbRegistrationOptionsPage::Create(get_content_area(), &getRegistrationItems()); - SetTabPage(page); - SetText(page->get<VclFrame>("frame1")->get_label()); + TabPageParent aParent(get_content_area(), this); + SetTabPage(DbRegistrationOptionsPage::Create(aParent, &getRegistrationItems())); + m_xDialog->set_title(CuiResId(RID_SVXSTR_REGISTERED_DATABASES)); } -short DatabaseRegistrationDialog::Execute() +short DatabaseRegistrationDialog::run() { - short result = SfxSingleTabDialog::Execute(); - if ( result == RET_OK ) + short result = SfxSingleTabDialogController::run(); + if (result == RET_OK) { DBG_ASSERT( GetOutputItemSet(), "DatabaseRegistrationDialog::Execute: no output items!" ); if ( GetOutputItemSet() ) |