summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-20 14:51:06 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-23 10:10:29 +0100
commitab44ada1471873997de3ae0349b258088b2ba71b (patch)
tree056dfd6612a7678dab3543ef73b26b0b2bcc2789 /include
parent532e77cd3886b985f6e61363f563cbaa6c1b4b6d (diff)
sd::ViewShell -> SdrModel for LOK callback
One one hand, this fixes missing invalidations after typing characters in editeng on Android. Previously it was assumed that there is only one sd::ViewShell for one Impress document, but that's obviously not true. On the other hand, this will be handy when later svx code wants to invoke the LOK callback as well, when it was stored in sd, that wasn't possible. Change-Id: Id467be01ad008aecaaabdd85b2a6b29a14f1eb86
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdmodel.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx
index a8a185acd9bd..375ad58cbfee 100644
--- a/include/svx/svdmodel.hxx
+++ b/include/svx/svdmodel.hxx
@@ -37,6 +37,7 @@
#include <svx/xtable.hxx>
#include <svx/pageitem.hxx>
#include <vcl/field.hxx>
+#include <vcl/ITiledRenderable.hxx>
class OutputDevice;
#include <svx/svdtypes.hxx>
@@ -171,6 +172,8 @@ protected:
OutputDevice* pRefOutDev; // ReferenceDevice for the EditEngine
/// Set if we are doing tiled rendering.
bool mbTiledRendering;
+ LibreOfficeKitCallback mpLibreOfficeKitCallback;
+ void* mpLibreOfficeKitData;
sal_uIntPtr nProgressAkt; // for the
sal_uIntPtr nProgressMax; // ProgressBar-
sal_uIntPtr nProgressOfs; // -Handler
@@ -338,6 +341,10 @@ public:
void setTiledRendering(bool bTiledRendering);
/// Are we doing tiled rendering?
bool isTiledRendering() const;
+ /// The actual implementation of the vcl::ITiledRenderable::registerCallback() API.
+ void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData);
+ /// Invokes the registered callback, if there are any.
+ void libreOfficeKitCallback(int nType, const char* pPayload) const;
// If a new MapMode is set on the RefDevice (or similar)
void RefDeviceChanged(); // not yet implemented
// default font heigth in logical units