summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h2
-rw-r--r--libreofficekit/source/gtk/lokdocview.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index a73f98d5087f..522d74d2c1a1 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -64,6 +64,8 @@ void lok_docview_set_part (LOKDocView* pDocView,
int nPart);
char* lok_docview_get_part_name (LOKDocView* pDocView,
int nPart);
+void lok_docview_set_partmode (LOKDocView* pDocView,
+ LibreOfficeKitPartMode ePartMode);
#ifdef __cplusplus
}
#endif
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c
index cb045ce5aee3..5884e66031ae 100644
--- a/libreofficekit/source/gtk/lokdocview.c
+++ b/libreofficekit/source/gtk/lokdocview.c
@@ -208,4 +208,11 @@ SAL_DLLPUBLIC_EXPORT char* lok_docview_get_part_name( LOKDocView* pDocView, int
{
return pDocView->pDocument->pClass->getPartName( pDocView->pDocument, nPart );
}
+
+SAL_DLLPUBLIC_EXPORT void lok_docview_set_partmode( LOKDocView* pDocView,
+ LibreOfficeKitPartMode ePartMode )
+{
+ pDocView->pDocument->pClass->setPartMode( pDocView->pDocument, ePartMode );
+ renderDocument( pDocView );
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */