summaryrefslogtreecommitdiff
path: root/sw/inc/viewsh.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-06 16:05:45 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-06 20:55:25 +0100
commit3547424b9fa9c335e4e0c80fae8c5ac928403045 (patch)
tree25198c55caf609764155fd9ad2ddfaa8dbd24704 /sw/inc/viewsh.hxx
parentd9997df11fb353aa0d6856554e4f845abc315d4f (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/inc/viewsh.hxx')
-rw-r--r--sw/inc/viewsh.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 1c5eddb2a5f5..574933c430e2 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -30,6 +30,7 @@
#include <stack>
#include <vcl/mapmod.hxx>
#include <vcl/print.hxx>
+#include <vcl/ITiledRenderable.hxx>
namespace com { namespace sun { namespace star { namespace accessibility {
class XAccessible; } } } }
@@ -194,6 +195,9 @@ protected:
sal_uInt16 mnLockPaint; ///< != 0 if Paint is locked.
bool mbSelectAll; ///< Special select all mode: whole document selected, even if doc starts with table.
+ LibreOfficeKitCallback mpLibreOfficeKitCallback;
+ void* mpLibreOfficeKitData;
+
public:
TYPEINFO();
@@ -572,6 +576,12 @@ public:
bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == Header)? mbShowHeaderSeparator: mbShowFooterSeparator; }
virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow ) { if ( eControl == Header ) mbShowHeaderSeparator = bShow; else mbShowFooterSeparator = bShow; }
bool IsSelectAll() { return mbSelectAll; }
+
+ /// The actual implementation of the vcl::ITiledRenderable::registerCallback() API for Writer.
+ void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData);
+ /// Invokes the registered callback, if there are any.
+ void libreOfficeKitCallback(int nType, const char* pPayload);
+
SwViewShell* GetNext()
{ return GetNextInRing(); }
const SwViewShell* GetNext() const