diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-07 15:35:33 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-07 15:35:56 +0200 |
commit | 8fab6ab36589d0dcd75d45feab43a0b06b7f2a3e (patch) | |
tree | 6471120650079335e156d46007071ae80a1bc463 /filter | |
parent | 96814d2469f476790999634a1b7a9cd75447bef7 (diff) |
filter: don't loose signing description during pdf export
The free-form string attached to a signature is called description
during ODF/OOXML signing. The certificate chooser dialog has an input
field to provide that. The PDF export dialog's signature tab reuses
this dialog, but also provides an an own reason input field for the same
purpose.
So in case the generic dialog's description field is filled, don't
simply throw away that string, but set the pdf export's reason field to
the same value.
XDocumentDigitalSignatures.idl is not a published interface and it is
used only internally, so the API change is only nominal.
Change-Id: I6d4cf0b3f586417a76a052dc30c960478a95c984
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/pdf/impdialog.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index a4efda00bff6..a2ff5f7e3952 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -1758,7 +1758,9 @@ IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect, Button*, void ) security::DocumentDigitalSignatures::createWithVersion( comphelper::getProcessComponentContext(), "1.2" ) ); - maSignCertificate = xSigner->chooseCertificate(); + // The use may provide a description while choosing a certificate. + OUString aDescription; + maSignCertificate = xSigner->chooseCertificate(aDescription); if (maSignCertificate.is()) { @@ -1768,6 +1770,7 @@ IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect, Button*, void ) mpEdSignPassword->Enable(); mpEdSignContactInfo->Enable(); mpEdSignReason->Enable(); + mpEdSignReason->SetText(aDescription); try { |