diff options
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 1 | ||||
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index fbaa97fa224d..65bfb7d4606a 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -17,6 +17,7 @@ #include <LibreOfficeKit/LibreOfficeKitGtk.h> #include <LibreOfficeKit/LibreOfficeKitInit.h> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> #include "../lokdocview_quad/lokdocview_quad.h" #include <com/sun/star/awt/Key.hpp> diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index 132b2d4c8770..31d9430ac331 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -13,7 +13,7 @@ #define LOK_USE_UNSTABLE_API #include <LibreOfficeKit/LibreOfficeKit.h> - +#include <LibreOfficeKit/LibreOfficeKitEnums.h> #include <LibreOfficeKit/LibreOfficeKitGtk.h> #if !GLIB_CHECK_VERSION(2,32,0) @@ -713,9 +713,9 @@ SAL_DLLPUBLIC_EXPORT char* lok_docview_get_part_name( LOKDocView* pDocView, int } SAL_DLLPUBLIC_EXPORT void lok_docview_set_partmode( LOKDocView* pDocView, - LibreOfficeKitPartMode ePartMode ) + int nPartMode ) { - pDocView->pDocument->pClass->setPartMode( pDocView->pDocument, ePartMode ); + pDocView->pDocument->pClass->setPartMode( pDocView->pDocument, nPartMode ); renderDocument(pDocView, NULL); } |