Blame SOURCES/0144-Add-missing-lok-Document-setPartMode-wrapper.patch

135360
From 343e89c588aea46d122299b660ebcb8ec7213468 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Wed, 16 Sep 2015 14:31:49 +0200
135360
Subject: [PATCH 144/398] Add missing lok::Document::setPartMode() wrapper
135360
135360
Change-Id: I5dd5f0cfb8b34621b18a35be682249e042d9b173
135360
(cherry picked from commit 42844c2a8b614efa3bb7cd4f2525ce05a8647d20)
135360
---
135360
 include/LibreOfficeKit/LibreOfficeKit.h   | 6 ++----
135360
 include/LibreOfficeKit/LibreOfficeKit.hxx | 5 +++++
135360
 2 files changed, 7 insertions(+), 4 deletions(-)
135360
135360
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
135360
index fc025aed5b15..97ae1363a136 100644
135360
--- a/include/LibreOfficeKit/LibreOfficeKit.h
135360
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
135360
@@ -93,10 +93,7 @@ struct _LibreOfficeKitDocumentClass
135360
     char* (*getPartName) (LibreOfficeKitDocument* pThis,
135360
                           int nPart);
135360
 
135360
-    /** Sets mode of the current part.
135360
-     *
135360
-     * @param nMode - element from the LibreOfficeKitPartMode enum.
135360
-     */
135360
+    /// @see lok::Document::setPartMode().
135360
     void (*setPartMode) (LibreOfficeKitDocument* pThis,
135360
                          int nMode);
135360
 
135360
@@ -118,6 +115,7 @@ struct _LibreOfficeKitDocumentClass
135360
     /// @see lok::Document::initializeForRendering().
135360
     void (*initializeForRendering) (LibreOfficeKitDocument* pThis);
135360
 
135360
+    /// @see lok::Document::registerCallback().
135360
     void (*registerCallback) (LibreOfficeKitDocument* pThis,
135360
                               LibreOfficeKitCallback pCallback,
135360
                               void* pData);
135360
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
135360
index 45ace9dfff04..7f96e194e56c 100644
135360
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
135360
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
135360
@@ -94,6 +94,11 @@ public:
135360
         return mpDoc->pClass->getPartName(mpDoc, nPart);
135360
     }
135360
 
135360
+    inline void setPartMode(int nMode)
135360
+    {
135360
+        mpDoc->pClass->setPartMode(mpDoc, nMode);
135360
+    }
135360
+
135360
     /**
135360
      * Renders a subset of the document to a pre-allocated buffer.
135360
      *
135360
-- 
135360
2.12.0
135360