summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-09-05 15:01:34 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-11-21 12:37:03 +0100
commitd29349a3f8808e650a9432bd087e352845e8b0d3 (patch)
treea1e974477e994b74ebccb053a69d431bb9ae4f76 /sfx2
parent5762aa5c0efb75e8b7713b4c2ee8bd9300fc06cf (diff)
lok: Notify about last used row and column in Calc
We use HelperNotifyChanges::NotifyIfChangesListeners notifier so we know which cell was modified and we can correctly target only affected users. Change-Id: Iaeb68e350e85e4ed1492a7d350a790e68f2d63af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139473 Reviewed-by: Dennis Francis <dennis.francis@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142994 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/lokhelper.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 5f7bef16a843..794dcc00b300 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -596,6 +596,20 @@ void SfxLokHelper::notifyDocumentSizeChangedAllViews(vcl::ITiledRenderable* pDoc
}
}
+void SfxLokHelper::notifyPartSizeChangedAllViews(vcl::ITiledRenderable* pDoc, int nPart)
+{
+ if (DisableCallbacks::disabled())
+ return;
+
+ SfxViewShell* pViewShell = SfxViewShell::GetFirst();
+ while (pViewShell)
+ {
+ if (pViewShell->getPart() == nPart)
+ SfxLokHelper::notifyDocumentSizeChanged(pViewShell, "", pDoc, false);
+ pViewShell = SfxViewShell::GetNext(*pViewShell);
+ }
+}
+
OString SfxLokHelper::makeVisCursorInvalidation(int nViewId, const OString& rRectangle,
bool bMispelledWord, const OString& rHyperlink)
{