summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-11-10 18:57:26 +0100
committerJan Holesovsky <kendy@collabora.com>2018-12-07 11:52:29 +0100
commitb4a58119a60910514f3ef5a163d32bfa8734eec1 (patch)
tree3d8c1199cda23e67575a039b911a8b455250c70f /include/LibreOfficeKit
parentaf4fab260b4e5e6cd073d449081dd057b9715881 (diff)
Introduce client-server message for requesting the selected shape as SVG
It works for Impress only now. Change-Id: I95e3e37ae7df49b567108f6d6467038b715e886d
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h5
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx9
2 files changed, 14 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 27d968c4a6b7..0da392467b84 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -347,6 +347,11 @@ struct _LibreOfficeKitDocumentClass
/// @see lok::Document::getSignatureState().
int (*getSignatureState) (LibreOfficeKitDocument* pThis);
+ /// @see lok::Document::renderShapeSelection
+ void (*renderShapeSelection) (LibreOfficeKitDocument* pThis,
+ char*& pOutput,
+ size_t& nOutputSize);
+
#endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY
};
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 4a0ec6784b7b..865ad434417b 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -619,6 +619,15 @@ public:
return mpDoc->pClass->getSignatureState(mpDoc);
}
+ /**
+ * Gets an image of the selected shapes.
+ *
+ */
+ void renderShapeSelection(char*& pOutput, size_t& nOutputSize)
+ {
+ mpDoc->pClass->renderShapeSelection(mpDoc, pOutput, nOutputSize);
+ }
+
#endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY
};