summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-24 14:28:04 +0200
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-09-24 14:28:04 +0200
commit4d25643942f30ad94b853a65338098d842767ed8 (patch)
tree7d19291fc57940703b55a3a0ffba133849d10fe0 /vcl/source/gdi/pdfwriter.cxx
parenta555527edb34036835b167f0b3b7f6d515f098c4 (diff)
step1: put encrpytion parameters into PDFContext
Diffstat (limited to 'vcl/source/gdi/pdfwriter.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/vcl/source/gdi/pdfwriter.cxx b/vcl/source/gdi/pdfwriter.cxx
index 5dcce25a0315..3b5e70d938a8 100644
--- a/vcl/source/gdi/pdfwriter.cxx
+++ b/vcl/source/gdi/pdfwriter.cxx
@@ -69,16 +69,6 @@ PDFWriter::PDFVersion PDFWriter::GetVersion() const
return ((PDFWriterImpl*)pImplementation)->getVersion();
}
-void PDFWriter::SetDocInfo( const PDFDocInfo& rInfo )
-{
- ((PDFWriterImpl*)pImplementation)->setDocInfo( rInfo );
-}
-
-const PDFDocInfo& PDFWriter::GetDocInfo() const
-{
- return ((PDFWriterImpl*)pImplementation)->getDocInfo();
-}
-
void PDFWriter::SetDocumentLocale( const com::sun::star::lang::Locale& rLoc )
{
((PDFWriterImpl*)pImplementation)->setDocumentLocale( rLoc );
@@ -569,3 +559,13 @@ 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
+ )
+{
+ return PDFWriterImpl::initEncryption( io_rProperties, i_rOwnerPassword, i_rUserPassword, i_rDocInfo );
+}
+