summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-06 17:28:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-06 21:46:05 +0200
commitc2c5b1f7558004aa0d3541b7c4ffadc5d6bad331 (patch)
tree9e378ae5f69e27d354b01d1f63e23014493c6513 /sd
parentb5b27f017b08ad4fbc67222a36f71933aa5a47dd (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')
-rw-r--r--sd/source/ui/func/futhes.cxx8
-rw-r--r--sd/source/ui/view/Outliner.cxx1
2 files changed, 6 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");
}
}
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 1e58117cdb81..b1ffdd972822 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -1781,6 +1781,7 @@ void SdOutliner::StartConversion( LanguageType nSourceLanguage, LanguageType nT
if (pOutlinerView != nullptr)
{
pOutlinerView->StartTextConversion(
+ GetMessageBoxParent(),
nSourceLanguage,
nTargetLanguage,
pTargetFont,