summaryrefslogtreecommitdiff
path: root/filter/source/pdf
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-08 15:07:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 10:13:58 +0000
commit76cf4c365643e18436c691e284527fccfe273c9a (patch)
treea6282733be1f6a16d8a9bdc02df296d42f0e2cc4 /filter/source/pdf
parentde3b0afd73d3b2bda488940f202d2c1014d1131a (diff)
convert PDFVersion to scoped enum
Change-Id: I9920f4c9783eb23a41d135e5eacd12805c1b9c2b Reviewed-on: https://gerrit.libreoffice.org/34060 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/pdf')
-rw-r--r--filter/source/pdf/pdfexport.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 7a2ba7b1b55c..8fc1938aefb5 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -562,10 +562,10 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
{
default:
case 0:
- aContext.Version = vcl::PDFWriter::PDF_1_4;
+ aContext.Version = vcl::PDFWriter::PDFVersion::PDF_1_4;
break;
case 1:
- aContext.Version = vcl::PDFWriter::PDF_A_1;
+ aContext.Version = vcl::PDFWriter::PDFVersion::PDF_A_1;
mbUseTaggedPDF = true; // force the tagged PDF as well
mbExportFormFields = false; // force disabling of form conversion
mbRemoveTransparencies = true; // PDF/A does not allow transparencies
@@ -642,7 +642,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
aContext.FirstPageLeft = false;
// check if PDF/A, which does not allow encryption
- if( aContext.Version != vcl::PDFWriter::PDF_A_1 )
+ if( aContext.Version != vcl::PDFWriter::PDFVersion::PDF_A_1 )
{
// set check for permission change password
// if not enabled and no permission password, force permissions to default as if PDF where without encryption
@@ -759,7 +759,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
// check for Link Launch action, not allowed on PDF/A-1
// this code chunk checks when the filter is called from scripting
- if( aContext.Version == vcl::PDFWriter::PDF_A_1 &&
+ if( aContext.Version == vcl::PDFWriter::PDFVersion::PDF_A_1 &&
aContext.DefaultLinkAction == vcl::PDFWriter::LaunchAction )
{
// force the similar allowed URI action