summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-13 16:47:23 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-16 13:18:28 +0100
commitfe3ab8481eaf50272f1aa3892ff5f74ffd47d461 (patch)
treeebca9824f0e7ca2f8204cc8696b4751f407834ab /include
parentf1a2759c29955040ac92c96bfa4e5621a78de8bb (diff)
gtktiledviewer: start in viewer mode, switch to edit mode by mouse click
Change-Id: I0863ec8fb159a2e367951ba9e7d7310d250d8a1e
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index 111381d3cb64..3fd0c4ac2008 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -41,6 +41,8 @@ struct _LOKDocView
LibreOfficeKit* pOffice;
LibreOfficeKitDocument* pDocument;
+ /// View or edit mode.
+ gboolean m_bEdit;
};
struct _LOKDocViewClass
@@ -64,6 +66,9 @@ char* lok_docview_get_part_name (LOKDocView* pDocView,
int nPart);
void lok_docview_set_partmode (LOKDocView* pDocView,
LibreOfficeKitPartMode ePartMode);
+/// Sets if the viewer is actually an editor or not.
+void lok_docview_set_edit (LOKDocView* pDocView,
+ gboolean bEdit);
#ifdef __cplusplus
}
#endif