diff options
author | Gökçen Eraslan <gokcen.eraslan@gmail.com> | 2012-07-07 23:10:30 +0300 |
---|---|---|
committer | Gökçen Eraslan <gokcen.eraslan@gmail.com> | 2012-07-07 23:10:30 +0300 |
commit | 5f995a0d8ffea95bf6eecf5215da8178159be0ca (patch) | |
tree | a0f5cf465a3ecdb8151b25f1008e6d8dbc68897f /vcl/inc | |
parent | bb1ba4f3b784b1ad8776319d6336dba97e484d59 (diff) |
Add password edit and pass XCertificate to PDFWriter code in VCL.
Now, we have the password of private key and the certificate to
sign. Ready to use NSS and create necessary PKCS7 object using
these.
Change-Id: Id69487e92283059fcd558d33cf6a6128df0f50d9
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/pdfwriter.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/inc/vcl/pdfwriter.hxx b/vcl/inc/vcl/pdfwriter.hxx index 535c2b39034c..0e93cdd9c6a1 100644 --- a/vcl/inc/vcl/pdfwriter.hxx +++ b/vcl/inc/vcl/pdfwriter.hxx @@ -41,6 +41,7 @@ #include "com/sun/star/io/XOutputStream.hpp" #include "com/sun/star/beans/XMaterialHolder.hpp" +#include "com/sun/star/security/XCertificate.hpp" #include "com/sun/star/lang/Locale.hpp" #include <boost/scoped_ptr.hpp> @@ -631,8 +632,10 @@ The following structure describes the permissions used in PDF security bool SignPDF; rtl::OUString SignLocation; + rtl::OUString SignPassword; rtl::OUString SignReason; rtl::OUString SignContact; + com::sun::star::uno::Reference< com::sun::star::security::XCertificate> SignCertificate; com::sun::star::lang::Locale DocumentLocale; // defines the document default language sal_uInt32 DPIx, DPIy; // how to handle MapMode( MAP_PIXEL ) @@ -668,7 +671,8 @@ The following structure describes the permissions used in PDF security SignPDF( false ), DPIx( 0 ), DPIy( 0 ), - ColorMode( PDFWriter::DrawColor ) + ColorMode( PDFWriter::DrawColor ), + SignCertificate( 0 ) {} }; |