diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-08 15:00:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-09 10:03:52 +0000 |
commit | 76e0f23171d899ef567b04b555a748b60f99353c (patch) | |
tree | a2366554dcccff464d8f9033619e5c19c6a5deef /include/vcl | |
parent | a25b1ff25a3be97d688d66b12353b4217fd239a5 (diff) |
convert DestAreaType to scoped enum
and drop read-only enumerators
Change-Id: Ibc4c2a99448a83fc179e2779f8f3e5c8f034ae7b
Reviewed-on: https://gerrit.libreoffice.org/34059
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/pdfextoutdevdata.hxx | 4 | ||||
-rw-r--r-- | include/vcl/pdfwriter.hxx | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx index 566ff2abbfc8..23058141756a 100644 --- a/include/vcl/pdfextoutdevdata.hxx +++ b/include/vcl/pdfextoutdevdata.hxx @@ -226,7 +226,7 @@ public: /** provides detailed information about a destination range which previously has been registered using RegisterDest. */ - void DescribeRegisteredDest( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType = PDFWriter::XYZ ); + void DescribeRegisteredDest( sal_Int32 nDestId, const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType = PDFWriter::DestAreaType::XYZ ); //<---i56629 @@ -246,7 +246,7 @@ public: the destination id (to be used in SetLinkDest) or -1 if page id does not exist */ - sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr = -1, PDFWriter::DestAreaType eType = PDFWriter::XYZ ); + sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr = -1, PDFWriter::DestAreaType eType = PDFWriter::DestAreaType::XYZ ); /** Create a new link on a page @param rRect diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 75f123038a2a..d75b4ac50910 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -107,10 +107,7 @@ public: enum PDFVersion { PDF_1_2, PDF_1_3, PDF_1_4, PDF_1_5, PDF_A_1 };//i59651, PDF/A-1b & -1a, only -1b implemented for now // for the meaning of DestAreaType please look at PDF Reference Manual // version 1.4 section 8.2.1, page 475 - enum DestAreaType { XYZ, Fit, FitHorizontal, FitVertical, - FitRectangle, FitPageBoundingBox, FitPageBoundingBoxHorizontal, - FitPageBoundingBoxVertical - }; + enum class DestAreaType { XYZ, FitRectangle }; // for a definition of structural element types please refer to // PDF Reference, 3rd ed. section 9.7.4 |