bundled/include/LibreOfficeKit/LibreOfficeKit.h | 8 ++++++++ bundled/include/LibreOfficeKit/LibreOfficeKit.hxx | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-)
New commits: commit 5c34a55eff338f4d828c3479fec513060d032f81 Author: Ashod Nakashian <[email protected]> AuthorDate: Sat Nov 9 21:42:54 2019 -0500 Commit: Ashod Nakashian <[email protected]> CommitDate: Sun Nov 10 23:41:27 2019 +0100 wsd: update bundled headers Change-Id: I142d6b39c91215b34815bdb425942b3d1298e1b4 Reviewed-on: https://gerrit.libreoffice.org/82396 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.h b/bundled/include/LibreOfficeKit/LibreOfficeKit.h index 29d834969..78f2b478e 100644 --- a/bundled/include/LibreOfficeKit/LibreOfficeKit.h +++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.h @@ -419,6 +419,14 @@ struct _LibreOfficeKitDocumentClass unsigned nLOKWindowId, const char* pArguments); + /// @see lok::Document::renderFontOrientation(). + unsigned char* (*renderFontOrientation) (LibreOfficeKitDocument* pThis, + const char* pFontName, + const char* pChar, + int* pFontWidth, + int* pFontHeight, + int pOrientation); + #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 26093f387..3b2d0ba7b 100644 --- a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -556,9 +556,13 @@ public: unsigned char* renderFont(const char *pFontName, const char *pChar, int *pFontWidth, - int *pFontHeight) + int *pFontHeight, + int pOrientation = 0) { - return mpDoc->pClass->renderFont(mpDoc, pFontName, pChar, pFontWidth, pFontHeight); + if (LIBREOFFICEKIT_DOCUMENT_HAS(mpDoc, renderFontOrientation)) + return mpDoc->pClass->renderFontOrientation(mpDoc, pFontName, pChar, pFontWidth, pFontHeight, pOrientation); + else + return mpDoc->pClass->renderFont(mpDoc, pFontName, pChar, pFontWidth, pFontHeight); } /** _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
