[Libreoffice-commits] online.git: bundled/include

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 22 15:34:21 UTC 2019


 bundled/include/LibreOfficeKit/LibreOfficeKit.h   |   10 ++++++++++
 bundled/include/LibreOfficeKit/LibreOfficeKit.hxx |   12 ++++++++++++
 2 files changed, 22 insertions(+)

New commits:
commit 49d5494bf3520f60bb2065f03de6fb7a36d39966
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Jan 22 17:33:32 2019 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Jan 22 17:33:57 2019 +0200

    Update from core master
    
    Change-Id: I69e93f67be0cc5b75fecb0581348283fa0c6ed2c

diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.h b/bundled/include/LibreOfficeKit/LibreOfficeKit.h
index 4dd23a2cb..2df1cea6d 100644
--- a/bundled/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.h
@@ -94,6 +94,16 @@ struct _LibreOfficeKitClass
         @since LibreOffice 6.0
      */
     int (*runMacro) (LibreOfficeKit *pThis, const char* pURL);
+
+    /** @see lok::Office::signDocument().
+        @since LibreOffice 6.2
+     */
+     bool (*signDocument) (LibreOfficeKit* pThis,
+                           const char* pUrl,
+                           const unsigned char* pCertificateBinary,
+                           const int nCertificateBinarySize,
+                           const unsigned char* pPrivateKeyBinary,
+                           const int nPrivateKeyBinarySize);
 };
 
 #define LIBREOFFICEKIT_DOCUMENT_HAS(pDoc,member) LIBREOFFICEKIT_HAS_MEMBER(LibreOfficeKitDocumentClass,member,(pDoc)->pClass->nSize)
diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx
index 5d7771cf8..31e95a09c 100644
--- a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -791,6 +791,18 @@ public:
     {
         return mpThis->pClass->runMacro( mpThis, pURL );
     }
+
+    /**
+     * Exports the document and signes its content.
+     */
+    bool signDocument(const char* pURL,
+                       const unsigned char* pCertificateBinary, const int nCertificateBinarySize,
+                       const unsigned char* pPrivateKeyBinary, const int nPrivateKeyBinarySize)
+    {
+        return mpThis->pClass->signDocument(mpThis, pURL,
+                                            pCertificateBinary, nCertificateBinarySize,
+                                            pPrivateKeyBinary, nPrivateKeyBinarySize);
+    }
 };
 
 /// Factory method to create a lok::Office instance.


More information about the Libreoffice-commits mailing list