summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitGtk.h12
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx12
2 files changed, 12 insertions, 12 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index 25b15fad0aab..62d2e7f29247 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -118,7 +118,7 @@ void lok_doc_view_set_zoom (LOKDocView*
*
* Returns: The current zoom factor value in float for pDocView
*/
-float lok_doc_view_get_zoom (LOKDocView* pDocView);
+gfloat lok_doc_view_get_zoom (LOKDocView* pDocView);
/**
* lok_doc_view_get_parts:
@@ -127,7 +127,7 @@ float lok_doc_view_get_zoom (LOKDocView*
* Returns: Part refers to either individual sheets in a Calc, or slides in Impress,
* and has no relevance for Writer.
*/
-int lok_doc_view_get_parts (LOKDocView* pDocView);
+gint lok_doc_view_get_parts (LOKDocView* pDocView);
/**
* lok_doc_view_get_part:
@@ -135,7 +135,7 @@ int lok_doc_view_get_parts (LOKDocView*
*
* Returns: Current part number of the document
*/
-int lok_doc_view_get_part (LOKDocView* pDocView);
+gint lok_doc_view_get_part (LOKDocView* pDocView);
/**
* lok_doc_view_set_part:
@@ -152,7 +152,7 @@ void lok_doc_view_set_part (LOKDocView*
*
* Returns: Get current part name of loaded document
*/
-char* lok_doc_view_get_part_name (LOKDocView* pDocView,
+gchar* lok_doc_view_get_part_name (LOKDocView* pDocView,
int nPart);
/**
@@ -279,7 +279,7 @@ gboolean lok_doc_view_paste (LOKDocView*
*
* Returns: The corresponding value in twips
*/
-float lok_doc_view_pixel_to_twip (LOKDocView* pDocView,
+gfloat lok_doc_view_pixel_to_twip (LOKDocView* pDocView,
float fInput);
/**
@@ -291,7 +291,7 @@ float lok_doc_view_pixel_to_twip (LOKDocView*
*
* Returns: The corresponding value in pixels
*/
-float lok_doc_view_twip_to_pixel (LOKDocView* pDocView,
+gfloat lok_doc_view_twip_to_pixel (LOKDocView* pDocView,
float fInput);
G_END_DECLS
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index c78d008469fc..7d4e516e31ee 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2509,14 +2509,14 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
g_object_unref(task);
}
-SAL_DLLPUBLIC_EXPORT float
+SAL_DLLPUBLIC_EXPORT gfloat
lok_doc_view_get_zoom (LOKDocView* pDocView)
{
LOKDocViewPrivate& priv = getPrivate(pDocView);
return priv->m_fZoom;
}
-SAL_DLLPUBLIC_EXPORT int
+SAL_DLLPUBLIC_EXPORT gint
lok_doc_view_get_parts (LOKDocView* pDocView)
{
LOKDocViewPrivate& priv = getPrivate(pDocView);
@@ -2524,7 +2524,7 @@ lok_doc_view_get_parts (LOKDocView* pDocView)
return priv->m_pDocument->pClass->getParts( priv->m_pDocument );
}
-SAL_DLLPUBLIC_EXPORT int
+SAL_DLLPUBLIC_EXPORT gint
lok_doc_view_get_part (LOKDocView* pDocView)
{
LOKDocViewPrivate& priv = getPrivate(pDocView);
@@ -2552,7 +2552,7 @@ lok_doc_view_set_part (LOKDocView* pDocView, int nPart)
g_object_unref(task);
}
-SAL_DLLPUBLIC_EXPORT char*
+SAL_DLLPUBLIC_EXPORT gchar*
lok_doc_view_get_part_name (LOKDocView* pDocView, int nPart)
{
LOKDocViewPrivate& priv = getPrivate(pDocView);
@@ -2720,14 +2720,14 @@ lok_doc_view_paste (LOKDocView* pDocView,
return ret;
}
-SAL_DLLPUBLIC_EXPORT float
+SAL_DLLPUBLIC_EXPORT gfloat
lok_doc_view_pixel_to_twip (LOKDocView* pDocView, float fInput)
{
LOKDocViewPrivate& priv = getPrivate(pDocView);
return pixelToTwip(fInput, priv->m_fZoom);
}
-SAL_DLLPUBLIC_EXPORT float
+SAL_DLLPUBLIC_EXPORT gfloat
lok_doc_view_twip_to_pixel (LOKDocView* pDocView, float fInput)
{
LOKDocViewPrivate& priv = getPrivate(pDocView);