diff options
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 3 | ||||
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index 37d21f04f8b5..a73f98d5087f 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -62,7 +62,8 @@ int lok_docview_get_parts (LOKDocView* pDocView); int lok_docview_get_part (LOKDocView* pDocView); void lok_docview_set_part (LOKDocView* pDocView, int nPart); - +char* lok_docview_get_part_name (LOKDocView* pDocView, + int nPart); #ifdef __cplusplus } #endif diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index 07d07a1e9c64..cb045ce5aee3 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -204,5 +204,8 @@ SAL_DLLPUBLIC_EXPORT void lok_docview_set_part( LOKDocView* pDocView, int nPart) renderDocument( pDocView ); } - +SAL_DLLPUBLIC_EXPORT char* lok_docview_get_part_name( LOKDocView* pDocView, int nPart ) +{ + return pDocView->pDocument->pClass->getPartName( pDocView->pDocument, nPart ); +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |