diff options
Diffstat (limited to 'libreofficekit/source/gtk/lokdocview.c')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 17 |
1 files changed, 17 insertions, 0 deletions
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: */ |