diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 619e48e61d22..4aa35af5edb8 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -17,6 +17,8 @@ #include <sfx2/viewsh.hxx> #include <sfx2/request.hxx> #include <sfx2/viewfrm.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <comphelper/lok.hxx> #include <shellimpl.hxx> @@ -136,4 +138,14 @@ void SfxLokHelper::notifyOtherViews(SfxViewShell* pThisView, int nType, const OS } } +void SfxLokHelper::notifyInvalidation(SfxViewShell* pThisView, const OString& rPayload) +{ + std::stringstream ss; + ss << rPayload.getStr(); + if (comphelper::LibreOfficeKit::isPartInInvalidation()) + ss << ", " << pThisView->getPart(); + OString aPayload = ss.str().c_str(); + pThisView->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, aPayload.getStr()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |