diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-08 15:32:20 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-12 05:19:13 +0200 |
commit | c49e26cb447cf8d601209da2be1e37c0e17ef1d2 (patch) | |
tree | d4efd96605cba57617d2828ffb2156b1fffe912e /libreofficekit/source/gtk | |
parent | 4d15212ef8de89a71387c00bdeb7d9a41409e467 (diff) |
LOK DocView: implement part selection.
Change-Id: I2e16ca9d2d5fcd25b0435f1b9b0fbcb52b92e012
Diffstat (limited to 'libreofficekit/source/gtk')
-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: */ |