diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2016-01-27 16:56:14 +0530 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-02 12:29:51 +0000 |
commit | 18fbddcca569c109ca2f46f7d791187e672d4d83 (patch) | |
tree | 8ef9c30e4f48156c30319b0c3b54a87d97b972fd /include/LibreOfficeKit | |
parent | 59aee037e3cf33b253b6f5ebafe3872e420d3408 (diff) |
lokdocview: Handle password protected documents
Change-Id: I606a1112c8eb4c1cc4596d6947ce1223543cc87c
Reviewed-on: https://gerrit.libreoffice.org/21861
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -286,6 +286,18 @@ gboolean lok_doc_view_paste (LOKDocView* 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 * @fInput: The value in pixels to convert to twips |