diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 17:28:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 21:46:05 +0200 |
commit | c2c5b1f7558004aa0d3541b7c4ffadc5d6bad331 (patch) | |
tree | 9e378ae5f69e27d354b01d1f63e23014493c6513 /sd/source/ui/func/futhes.cxx | |
parent | b5b27f017b08ad4fbc67222a36f71933aa5a47dd (diff) |
remove Application::GetDefDialogParent call in editeng
and pass in an explicit parent to use
Change-Id: I1aa768ec5ac13b2097b78499f964a3590a0ac14e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113695
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/func/futhes.cxx')
-rw-r--r-- | sd/source/ui/func/futhes.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sd/source/ui/func/futhes.cxx b/sd/source/ui/func/futhes.cxx index 63d5ff021c9c..78d2ae6939b3 100644 --- a/sd/source/ui/func/futhes.cxx +++ b/sd/source/ui/func/futhes.cxx @@ -20,6 +20,7 @@ #include <futhes.hxx> #include <editeng/outliner.hxx> +#include <sfx2/request.hxx> #include <svx/svdobj.hxx> #include <svx/svdotext.hxx> #include <editeng/eeitem.hxx> @@ -28,6 +29,7 @@ #include <svx/svxerr.hxx> #include <svx/dialmgr.hxx> #include <editeng/unolingu.hxx> +#include <vcl/weld.hxx> #include <drawdoc.hxx> #include <View.hxx> #include <Outliner.hxx> @@ -58,7 +60,7 @@ rtl::Reference<FuPoor> FuThesaurus::Create( ViewShell* pViewSh, ::sd::Window* pW return xFunc; } -void FuThesaurus::DoExecute( SfxRequest& ) +void FuThesaurus::DoExecute(SfxRequest& rReq) { SfxErrorContext aContext(ERRCTX_SVX_LINGU_THESAURUS, OUString(), mpWindow->GetFrameWeld(), RID_SVXERRCTX, SvxResLocale()); @@ -98,7 +100,7 @@ void FuThesaurus::DoExecute( SfxRequest& ) pOutliner->SetDefaultLanguage( mpDoc->GetLanguage( EE_CHAR_LANGUAGE ) ); } - EESpellState eState = const_cast<OutlinerView*>(pOutlView)->StartThesaurus(); + EESpellState eState = const_cast<OutlinerView*>(pOutlView)->StartThesaurus(rReq.GetFrameWeld()); DBG_ASSERT(eState != EESpellState::NoSpeller, "No SpellChecker"); } } @@ -120,7 +122,7 @@ void FuThesaurus::DoExecute( SfxRequest& ) pOutliner->SetDefaultLanguage( mpDoc->GetLanguage( EE_CHAR_LANGUAGE ) ); } - EESpellState eState = pOutlView->StartThesaurus(); + EESpellState eState = pOutlView->StartThesaurus(rReq.GetFrameWeld()); DBG_ASSERT(eState != EESpellState::NoSpeller, "No SpellChecker"); } } |