summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-29 08:59:13 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-30 12:44:01 +0200
commit6872ecdbc70befc1f3e9215f5c1cf1530ff8dc40 (patch)
treeacf7e7387e7d4ffefa17ea9acfeadcf2d9f6cba4 /include
parent6548361109deeb3be2e2c65b27eca04e59fa1f6f (diff)
LOK: add setPartMode.
This API seems to be simplest in the long run where we'll want to be able to select between rendering slides/notes/both/embedded objects, and maybe even adding the option of switching between continuous and single page mode in writer (although I have no idea how hard getting a single page mode out of writer would be). Change-Id: I5bdfdb61854c37281c6992c8f3ed1c50c8aa0919
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h13
-rw-r--r--include/vcl/ITiledRenderable.hxx7
2 files changed, 20 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index c90a94732569..c935ebc4d184 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -40,6 +40,16 @@ typedef enum
LOK_DOCTYPE_OTHER
}
LibreOfficeKitDocumentType;
+
+typedef enum
+{
+ LOK_PARTMODE_DEFAULT,
+ LOK_PARTMODE_SLIDE,
+ LOK_PARTMODE_NOTES,
+ LOK_PARTMODE_SLIDENOTES,
+ LOK_PARTMODE_EMBEDDEDOBJ
+}
+LibreOfficeKitPartMode;
#endif // LOK_USE_UNSTABLE_API
struct _LibreOfficeKit
@@ -86,6 +96,9 @@ struct _LibreOfficeKitDocumentClass
char* (*getPartName) (LibreOfficeKitDocument* pThis,
int nPart);
+ void (*setPartMode) (LibreOfficeKitDocument* pThis,
+ LibreOfficeKitPartMode eMode);
+
// Get a pointer to a raw array, of size 3*nCanvasWidth*nCanvasHeight
// Basebmp's bitmap device seems to round the width up if needed
// for its internal buffer, i.e. the rowstride for the buffer may be larger
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index ca6ee2573ea8..a872713c7a7f 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -11,6 +11,8 @@
#ifndef INCLUDED_VCL_ITILEDRENDERABLE_HXX
#define INCLUDED_VCL_ITILEDRENDERABLE_HXX
+#define LOK_USE_UNSTABLE_API
+#include <LibreOfficeKit/LibreOfficeKit.h>
#include <tools/gen.hxx>
#include <vcl/virdev.hxx>
@@ -67,6 +69,11 @@ public:
(void) nPart;
return "";
}
+
+ virtual void setPartMode(LibreOfficeKitPartMode ePartMode)
+ {
+ (void) ePartMode;
+ }
};
} // namespace vcl