From 58249677c3330b5238a7f6ee665c923d93464bc9 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 18 Nov 2024 13:36:32 +0000 Subject: cool#4250 - add API to set per view options. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5e3b3b3548ba93b96b33fe682405a2b0b53bbdee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176715 Tested-by: Jenkins CollaboraOffice Reviewed-by: Caolán McNamara (cherry picked from commit 8dcb86a4a724f143f7d5cfcc3d1231a7f924cbd9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177445 Tested-by: Jenkins Reviewed-by: Michael Meeks --- desktop/source/lib/init.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index d6d0e2c42ca2..d5ac74a2d14e 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1339,6 +1339,8 @@ static void doc_postSlideshowCleanup(LibreOfficeKitDocument* pThis); static bool doc_renderNextSlideLayer( LibreOfficeKitDocument* pThis, unsigned char* pBuffer, bool* bIsBitmapLayer, char** pJsonMsg); +static void doc_setViewOption(LibreOfficeKitDocument* pDoc, const char* pOption, const char* pValue); + } // extern "C" namespace { @@ -1544,6 +1546,7 @@ LibLODocument_Impl::LibLODocument_Impl(uno::Reference xC m_pDocumentClass->createSlideRenderer = doc_createSlideRenderer; m_pDocumentClass->postSlideshowCleanup = doc_postSlideshowCleanup; m_pDocumentClass->renderNextSlideLayer = doc_renderNextSlideLayer; + m_pDocumentClass->setViewOption = doc_setViewOption; gDocumentClass = m_pDocumentClass; } @@ -5783,6 +5786,11 @@ static bool doc_renderNextSlideLayer( return bDone; } +static void doc_setViewOption(LibreOfficeKitDocument* /*pDoc*/, const char* /*pOption*/, const char* /*pValue*/) +{ + // placeholder for now +} + static bool getFromTransferable( const css::uno::Reference &xTransferable, const OString &aInMimeType, OString &aRet); -- cgit