diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-06 16:05:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-06 20:55:25 +0100 |
commit | 3547424b9fa9c335e4e0c80fae8c5ac928403045 (patch) | |
tree | 25198c55caf609764155fd9ad2ddfaa8dbd24704 /sw/source/uibase/uno | |
parent | d9997df11fb353aa0d6856554e4f845abc315d4f (diff) |
sw: notify LOK clients about invalidations
So that when the document changes, they can know what tiles to throw
away.
Change-Id: I1f00585e7691a40af8fe5de71ac1a4225bc4e67f
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index a3493bfd79c6..4bba53506e77 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3157,6 +3157,13 @@ void SwXTextDocument::initializeForTiledRendering() pView->SetViewLayout(nColumns, bBookMode, true); } +void SwXTextDocument::registerCallback(LibreOfficeKitCallback pCallback, void* pData) +{ + SwDoc* pDoc = pDocShell->GetDoc(); + SwViewShell* pViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell(); + pViewShell->registerLibreOfficeKitCallback(pCallback, pData); +} + void * SAL_CALL SwXTextDocument::operator new( size_t t) throw() { return SwXTextDocumentBaseClass::operator new(t); |