Kaydet (Commit) efc31865 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: implement per-view LOK_CALLBACK_INVALIDATE_TILES

Change-Id: Id839dc076824e69fe07386c83bf21fc4c7ce2b8e
(cherry picked from commit b0f04d1b)
üst 17d82b77
......@@ -69,6 +69,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
#include <editeng/acorrcfg.hxx>
#include <SwSmartTagMgr.hxx>
......@@ -6217,8 +6218,13 @@ void SwEditWin::LogicInvalidate(const Rectangle* pRectangle)
else
sRectangle = pRectangle->toString();
if ( m_rView.GetWrtShellPtr() )
if (comphelper::LibreOfficeKit::isViewCallback())
m_rView.libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
else
{
if (m_rView.GetWrtShellPtr())
m_rView.GetWrtShell().libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
}
}
void SwEditWin::LogicMouseButtonDown(const MouseEvent& rMouseEvent)
......
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