summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-27 19:58:20 +0200
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-27 19:58:20 +0200
commit208de777d5af30720ba212a233283ba4c1ac57cb (patch)
tree8c11ce7511800f14103f6b0a93e74521a181aba2 /vcl/source/gdi/pdfwriter.cxx
parent4d25643942f30ad94b853a65338098d842767ed8 (diff)
limit password life time
Diffstat (limited to 'vcl/source/gdi/pdfwriter.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/gdi/pdfwriter.cxx b/vcl/source/gdi/pdfwriter.cxx
index 3b5e70d938a8..98627b448aed 100644
--- a/vcl/source/gdi/pdfwriter.cxx
+++ b/vcl/source/gdi/pdfwriter.cxx
@@ -38,9 +38,9 @@ PDFWriter::AnyWidget::~AnyWidget()
{
}
-PDFWriter::PDFWriter( const PDFWriter::PDFWriterContext& rContext )
+PDFWriter::PDFWriter( const PDFWriter::PDFWriterContext& rContext, const com::sun::star::uno::Reference< com::sun::star::beans::XMaterialHolder >& xEnc )
:
- pImplementation( new PDFWriterImpl( rContext ) )
+ pImplementation( new PDFWriterImpl( rContext, xEnc ) )
{
}
@@ -560,12 +560,12 @@ std::set< PDFWriter::ErrorCode > PDFWriter::GetErrors()
return ((PDFWriterImpl*)pImplementation)->getErrors();
}
-bool PDFWriter::InitEncryption( PDFWriter::PDFEncryptionProperties& io_rProperties,
- const rtl::OUString& i_rOwnerPassword,
- const rtl::OUString& i_rUserPassword,
- const PDFWriter::PDFDocInfo& i_rDocInfo
- )
+com::sun::star::uno::Reference< com::sun::star::beans::XMaterialHolder >
+PDFWriter::InitEncryption( const rtl::OUString& i_rOwnerPassword,
+ const rtl::OUString& i_rUserPassword,
+ bool b128Bit
+ )
{
- return PDFWriterImpl::initEncryption( io_rProperties, i_rOwnerPassword, i_rUserPassword, i_rDocInfo );
+ return PDFWriterImpl::initEncryption( i_rOwnerPassword, i_rUserPassword, b128Bit );
}