From 76e0f23171d899ef567b04b555a748b60f99353c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Feb 2017 15:00:15 +0200 Subject: convert DestAreaType to scoped enum and drop read-only enumerators Change-Id: Ibc4c2a99448a83fc179e2779f8f3e5c8f034ae7b Reviewed-on: https://gerrit.libreoffice.org/34059 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/vcl/pdfextoutdevdata.hxx | 4 ++-- include/vcl/pdfwriter.hxx | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'include/vcl') 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 -- cgit value='distro/collabora/libreoffice-7-5+backports'>distro/collabora/libreoffice-7-5+backports LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode: