From 7f8eb6d501f962d2bdac9a581389289f8054daec Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Tue, 29 Jul 2014 17:00:33 +0200 Subject: LOKDocView: add set_part_mode. Change-Id: I0e14a535124e93979ef05431255911245a11aa29 --- include/LibreOfficeKit/LibreOfficeKitGtk.h | 2 ++ libreofficekit/source/gtk/lokdocview.c | 7 +++++++ 2 files changed, 9 insertions(+) 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: */ -- cgit v1.2.3