summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-07-19 14:35:56 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-19 13:53:41 +0000
commit495cfa27c173741caa233575438c18746272b4aa (patch)
tree26c30fcf01c24c497d1f7361ca92d01fe9ee8ac2 /sc/source/ui/view/gridwin.cxx
parente11e73ff02051ce9744ae302827abcaf6b5e16ed (diff)
sc lok: notify other views about selection changes of multiple cells
A single cell is handled by the cell cursor, which was already handled. This one takes care of the situation when multiple cells are selected. Change-Id: I11b3045e4884ad9629655e2c05c16af83d21e7b2 Reviewed-on: https://gerrit.libreoffice.org/27318 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r--sc/source/ui/view/gridwin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 076dd450c7db..2a91ffc9ca40 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5876,6 +5876,7 @@ static void updateLibreOfficeKitSelection(ScViewData* pViewData, const std::vect
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION_START, aStart.toString().getStr());
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION_END, aEnd.toString().getStr());
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION, aSelection.getStr());
+ SfxLokHelper::notifyOtherViews(pViewShell, LOK_CALLBACK_TEXT_VIEW_SELECTION, "selection", aSelection.getStr());
}
void ScGridWindow::UpdateCursorOverlay()
@@ -6120,6 +6121,7 @@ void ScGridWindow::UpdateSelectionOverlay()
{
ScTabViewShell* pViewShell = pViewData->GetViewShell();
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION, "EMPTY");
+ SfxLokHelper::notifyOtherViews(pViewShell, LOK_CALLBACK_TEXT_VIEW_SELECTION, "selection", "EMPTY");
}
if ( aOldMode != aDrawMode )