From 18fbddcca569c109ca2f46f7d791187e672d4d83 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Wed, 27 Jan 2016 16:56:14 +0530 Subject: lokdocview: Handle password protected documents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I606a1112c8eb4c1cc4596d6947ce1223543cc87c Reviewed-on: https://gerrit.libreoffice.org/21861 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/LibreOfficeKit/LibreOfficeKitGtk.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index c3e4b284f2e5..229bac04a936 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -285,6 +285,18 @@ gboolean lok_doc_view_paste (LOKDocView* const gchar* pData, gsize nSize); +/** + * lok_doc_view_set_document_password: + * @pDocView: The #LOKDocView instance + * @pUrl: the URL of the document to set password for, as sent with signal `password-required` + * @pPassword: (nullable): the password, NULL for no password + * + * Set the password for password protected documents + */ +void lok_doc_view_set_document_password (LOKDocView* pDocView, + const gchar* pURL, + const gchar* pPassword); + /** * lok_doc_view_pixel_to_twip: * @pDocView: The #LOKDocView instance -- cgit stro/cib/libreoffice-6-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author