diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-11-30 00:56:43 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-12-23 20:43:14 +0100 |
commit | 78a40705290ffb431cfeb4ef1ff3780d207fe6de (patch) | |
tree | 04d6bbeaff33ca7cea3ded34d25d2dee84872c7f | |
parent | 62c36eb8c600fe328954c22d83b6f8dda57d5d15 (diff) |
LOK: support password-protected PDF docs
Reviewed-on: https://gerrit.libreoffice.org/45547
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
(cherry picked from commit dc773e81bd360316a96b1b61c552d263e1d87e89)
Reviewed-on: https://gerrit.libreoffice.org/45563
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 82fb0abc37320fb1157b21efbf31954190353d41)
Change-Id: I48d959dba2c38b72d1d6fc0fa9171b96dbed0e7c
Reviewed-on: https://gerrit.libreoffice.org/46986
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r-- | desktop/source/lib/lokinteractionhandler.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/desktop/source/lib/lokinteractionhandler.cxx b/desktop/source/lib/lokinteractionhandler.cxx index 96d35a235efc..8c77471eb4be 100644 --- a/desktop/source/lib/lokinteractionhandler.cxx +++ b/desktop/source/lib/lokinteractionhandler.cxx @@ -248,14 +248,22 @@ bool LOKInteractionHandler::handlePasswordRequest(const uno::Sequence<uno::Refer OString sUrl; - task::DocumentPasswordRequest2 passwordRequest; + task::DocumentPasswordRequest passwordRequest; if (rRequest >>= passwordRequest) { - bIsRequestPasswordToModify = passwordRequest.IsRequestPasswordToModify; + bIsRequestPasswordToModify = false; sUrl = passwordRequest.Name.toUtf8(); bPasswordRequestFound = true; } + task::DocumentPasswordRequest2 passwordRequest2; + if (rRequest >>= passwordRequest2) + { + bIsRequestPasswordToModify = passwordRequest2.IsRequestPasswordToModify; + sUrl = passwordRequest2.Name.toUtf8(); + bPasswordRequestFound = true; + } + task::DocumentMSPasswordRequest2 passwordMSRequest; if (rRequest >>= passwordMSRequest) { |