svx: implement per-view LOK_CALLBACK_INVALIDATE_TILES

This is the last callback that was unconditionally invoked on the model
on load, before the SfxBindings timer starts.

Change-Id: Id494963459ac2bee4d0f9e642af88e04e94353c3
Reviewed-on: https://gerrit.libreoffice.org/26129
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
This commit is contained in:
Miklos Vajna
2016-06-09 19:28:12 +02:00
parent 4188a5cc5f
commit 901026cfbb

View File

@@ -230,7 +230,13 @@ void SdrMarkView::ModelHasChanged()
sSelection = aSelection.toString();
}
GetModel()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
if (comphelper::LibreOfficeKit::isViewCallback())
{
if(SfxViewShell* pViewShell = SfxViewShell::Current())
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
}
else
GetModel()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sSelection.getStr());
}
}