summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/dlg/SpellDialogChildWindow.cxx16
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx4
2 files changed, 0 insertions, 20 deletions
diff --git a/sd/source/ui/dlg/SpellDialogChildWindow.cxx b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
index e52e3dbd269d..574ba97eb773 100644
--- a/sd/source/ui/dlg/SpellDialogChildWindow.cxx
+++ b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
@@ -19,9 +19,6 @@
#include "SpellDialogChildWindow.hxx"
#include <svx/svxids.hrc>
-#include <sfx2/app.hxx>
-#include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
namespace sd{
@@ -77,19 +74,6 @@ svx::SpellPortions SpellDialogChildWindow::GetNextWrongSentence( bool /*bRecheck
ProvideOutliner();
aResult = mpSdOutliner->GetNextSpellSentence();
}
-
- // Close the spell check dialog when there are no more sentences to
- // check.
- if (aResult.empty())
- {
- SfxBoolItem aItem (SID_SPELL_DIALOG, false);
- GetBindings().GetDispatcher()->Execute(
- SID_SPELL_DIALOG,
- SfxCallMode::ASYNCHRON,
- &aItem,
- 0L);
- }
-
return aResult;
}
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index e29cb22166c7..b6b157d4a25a 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -426,13 +426,9 @@ The code below would only be part of the solution.
// take care that the now valid selection is stored
LoseFocus();
}
-
- // close the spelling dialog
- GetBindings().GetDispatcher()->Execute(FN_SPELL_GRAMMAR_DIALOG, SfxCallMode::ASYNCHRON);
}
}
return aRet;
-
}
void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck)