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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user