summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Doležel <marekdolezel@gmail.com>2015-07-06 15:54:43 +0200
committerSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2015-07-06 14:43:11 +0000
commitae20b8147307de84318598be72977abc3f7bdda9 (patch)
treec1abd37a977227663e22c6c4d4795b3a6252232f
parente03244c94d83ca5fdd6f3ed62ce7ece4afd51b53 (diff)
tdf79312: disable auto-close spelling dialog for sw, sd
Change-Id: Ib7ea6624ac6b112779b0e64b08805538b8d6afff Reviewed-on: https://gerrit.libreoffice.org/16796 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
-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)