diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-12 12:19:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-12 17:46:29 +0100 |
commit | a984387f296e2e9d073da1aad1b09f32ad41c0d2 (patch) | |
tree | 1951ec40d8ee278f039a5f3e658eff9eed5cf833 /cui/source/dialogs/SpellDialog.cxx | |
parent | 7953c8a9c4eb0cfc75f74e26c0f916f779830bc1 (diff) |
weld SpellOptionsDialog
Change-Id: I813b166a8c4658e08b185a43a464b6b370b62c66
Reviewed-on: https://gerrit.libreoffice.org/69099
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/dialogs/SpellDialog.cxx')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index c0af1fc96957..cf074e6614b6 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -491,16 +491,16 @@ IMPL_LINK( SpellDialog, CheckGrammarHdl, Button*, pBox, void ) void SpellDialog::StartSpellOptDlg_Impl() { SfxItemSet aSet( SfxGetpApp()->GetPool(), svl::Items<SID_AUTOSPELL_CHECK,SID_AUTOSPELL_CHECK>{}); - ScopedVclPtr<SfxSingleTabDialog> pDlg( - VclPtr<SfxSingleTabDialog>::Create( - this, aSet, "SpellOptionsDialog", "cui/ui/spelloptionsdialog.ui")); - VclPtr<SfxTabPage> pPage = SvxLinguTabPage::Create( pDlg->get_content_area(), &aSet ); - static_cast<SvxLinguTabPage*>(pPage.get())->HideGroups( GROUP_MODULES ); - pDlg->SetTabPage( pPage ); - if(RET_OK == pDlg->Execute()) + SfxSingleTabDialogController aDlg(GetFrameWeld(), aSet, "cui/ui/spelloptionsdialog.ui", "SpellOptionsDialog"); + + TabPageParent aParent(aDlg.get_content_area(), &aDlg); + VclPtr<SfxTabPage> xPage = SvxLinguTabPage::Create(aParent, &aSet); + static_cast<SvxLinguTabPage*>(xPage.get())->HideGroups( GROUP_MODULES ); + aDlg.SetTabPage(xPage); + if (RET_OK == aDlg.run()) { InitUserDicts(); - const SfxItemSet* pOutSet = pDlg->GetOutputItemSet(); + const SfxItemSet* pOutSet = aDlg.GetOutputItemSet(); if(pOutSet) OfaTreeOptionsDialog::ApplyLanguageOptions(*pOutSet); } |