Kaydet (Commit) ae20b814 authored tarafından Marek Doležel's avatar Marek Doležel Kaydeden (comit) Samuel Mehrbrodt

tdf79312: disable auto-close spelling dialog for sw, sd

Change-Id: Ib7ea6624ac6b112779b0e64b08805538b8d6afff
Reviewed-on: https://gerrit.libreoffice.org/16796Reviewed-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
üst e03244c9
......@@ -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;
}
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment