[Libreoffice-commits] online.git: bundled/include
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Sun Dec 1 10:47:58 UTC 2019
bundled/include/LibreOfficeKit/LibreOfficeKit.h | 9 +++++++++
bundled/include/LibreOfficeKit/LibreOfficeKit.hxx | 7 ++++---
2 files changed, 13 insertions(+), 3 deletions(-)
New commits:
commit 983a493ca5466e9b2942e61afbf2fb852b60b237
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Sun Dec 1 11:47:35 2019 +0100
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Dec 1 11:47:35 2019 +0100
Update bundled LibreOfficeKit headers
Change-Id: I9a1864d6258cf9efa2dae9e150814c780e5054f2
diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.h b/bundled/include/LibreOfficeKit/LibreOfficeKit.h
index 78f2b478e..a486886c1 100644
--- a/bundled/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.h
@@ -427,6 +427,15 @@ struct _LibreOfficeKitDocumentClass
int* pFontHeight,
int pOrientation);
+ /// Switches view to viewId if viewId >= 0, and paints window
+ /// @see lok::Document::paintWindowDPI().
+ void (*paintWindowForView) (LibreOfficeKitDocument* pThis, unsigned nWindowId,
+ unsigned char* pBuffer,
+ const int x, const int y,
+ const int width, const int height,
+ const double dpiscale,
+ int viewId);
+
#endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY
};
diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx
index 3b2d0ba7b..ae17e4e71 100644
--- a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -177,10 +177,11 @@ public:
const int y,
const int width,
const int height,
- const double dpiscale = 1.0)
+ const double dpiscale = 1.0,
+ const int viewId = -1)
{
- return mpDoc->pClass->paintWindowDPI(mpDoc, nWindowId, pBuffer,
- x, y, width, height, dpiscale);
+ return mpDoc->pClass->paintWindowForView(mpDoc, nWindowId, pBuffer, x, y,
+ width, height, dpiscale, viewId);
}
/**
More information about the Libreoffice-commits
mailing list