summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-29 13:17:30 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-30 12:44:02 +0200
commit366d8fb4dbe829653a4996acc8e9bae512ed0155 (patch)
treeeac9aa93439178bd83081880366b843488ad4ced
parent977ba354b2256da7c871179a75b72c4f568d5fcb (diff)
LOKDocView: add part name retrieval.
Change-Id: Iac31de0410d7f6187e5884152c329375047a23f4
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h3
-rw-r--r--libreofficekit/source/gtk/lokdocview.c5
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: */