summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-02-02 09:46:30 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-02 10:56:40 +0100
commit9d8b33079494cf7b5e66bd6c9d71f025efd9a653 (patch)
treed589a70ebe9611582881ef1a4d06bbd4ef4a747c /include
parent6691d78f1df044877fdfa30dd08f0821569efc92 (diff)
lokdocview: add a set_visible_area()
Change-Id: Ib63959ad64fe52b648e0c0d3fe6d49fb282d57ee
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index e06d154f772e..c3e4b284f2e5 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -113,6 +113,17 @@ LibreOfficeKitDocument* lok_doc_view_get_document (LOKDocView*
*/
void lok_doc_view_set_zoom (LOKDocView* pDocView,
float fZoom);
+/**
+ * lok_doc_view_set_visible_area:
+ * @pDocView: The #LOKDocView instance
+ * @fZoom: The new visible area of pDocView in twips.
+ *
+ * Sets the new visible area of the widget. This helps e.g. the page down key
+ * to jump the correct length, which depends on the amount of visible height of
+ * the document.
+ */
+void lok_doc_view_set_visible_area (LOKDocView* pDocView,
+ GdkRectangle* pVisibleArea);
/**
* lok_doc_view_get_zoom: