From 0e0eff2309583ea25b81006b5bc6879b86081a15 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Thu, 4 Jan 2018 00:06:58 -0500 Subject: lok: send modified status when applying cell-formula before saving Without this, the modified status resulting from applying the cell-formula immediately before saving is lost, since it is clobbered after the save. Change-Id: Ie402812d0fc0528020161fffe57e8220c5abfeb5 Reviewed-on: https://gerrit.libreoffice.org/47366 Tested-by: Jenkins Reviewed-by: Ashod Nakashian --- sfx2/source/view/lokhelper.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sfx2') diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index cd672aaf91e1..6fd6a7699038 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -199,4 +199,15 @@ void SfxLokHelper::notifyInvalidation(SfxViewShell const* pThisView, const OStri pThisView->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, aBuf.makeStringAndClear().getStr()); } +void SfxLokHelper::notifyAllViews(int nType, const OString& rPayload) +{ + const auto payload = rPayload.getStr(); + SfxViewShell* pViewShell = SfxViewShell::GetFirst(); + while (pViewShell) + { + pViewShell->libreOfficeKitViewCallback(nType, payload); + pViewShell = SfxViewShell::GetNext(*pViewShell); + } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit