diff options
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 7 | ||||
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 17 |
2 files changed, 23 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index f1609253e7e8..37d21f04f8b5 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -58,8 +58,13 @@ void lok_docview_set_zoom (LOKDocView* pDocView, float fZoom); float lok_docview_get_zoom (LOKDocView* pDocView); +int lok_docview_get_parts (LOKDocView* pDocView); +int lok_docview_get_part (LOKDocView* pDocView); +void lok_docview_set_part (LOKDocView* pDocView, + int nPart); + #ifdef __cplusplus } #endif -#endif
\ No newline at end of file +#endif diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index 12b004e08d35..cdc23392f646 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -174,4 +174,21 @@ SAL_DLLPUBLIC_EXPORT float lok_docview_get_zoom ( LOKDocView* pDocView ) return pDocView->fZoom; } +SAL_DLLPUBLIC_EXPORT int lok_docview_get_parts( LOKDocView* pDocView ) +{ + return pDocView->pDocument->pClass->getParts( pDocView->pDocument ); +} + +SAL_DLLPUBLIC_EXPORT int lok_docview_get_part( LOKDocView* pDocView ) +{ + return pDocView->pDocument->pClass->getPart( pDocView->pDocument ); +} + +SAL_DLLPUBLIC_EXPORT void lok_docview_set_part( LOKDocView* pDocView, int nPart) +{ + pDocView->pDocument->pClass->setPart( pDocView->pDocument, nPart ); + renderDocument( pDocView ); +} + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |