summaryrefslogtreecommitdiff
path: root/filter/source/pdf
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-21 15:26:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-22 08:07:45 +0200
commit180dd91c189de0bf03d5062e33c20da94c5d35d9 (patch)
treec44efef174c8ba3ba07cb6eeb5b5aca388729c6e /filter/source/pdf
parentf308520f1e3624c88e2a0e99be2eb26e2f2d0fc4 (diff)
long->tools::Long in emfio..filter
Change-Id: I961cee10d45d628ff70dea0694a7a63a4fe867ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104624 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/pdf')
-rw-r--r--filter/source/pdf/pdfexport.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 7fa83e05bc75..2abe9d372080 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -1113,7 +1113,7 @@ void PDFExport::ImplWriteWatermark( vcl::PDFWriter& rWriter, const Size& rPageSi
aFont.SetWidthType( WIDTH_NORMAL );
aFont.SetWeight( WEIGHT_NORMAL );
aFont.SetAlignment( ALIGN_BOTTOM );
- long nTextWidth = rPageSize.Width();
+ tools::Long nTextWidth = rPageSize.Width();
if( rPageSize.Width() < rPageSize.Height() )
{
nTextWidth = rPageSize.Height();
@@ -1130,7 +1130,7 @@ void PDFExport::ImplWriteWatermark( vcl::PDFWriter& rWriter, const Size& rPageSi
{
if (w == 0)
break;
- long nNewHeight = aFont.GetFontHeight() * nTextWidth / w;
+ tools::Long nNewHeight = aFont.GetFontHeight() * nTextWidth / w;
if( nNewHeight == aFont.GetFontHeight() )
{
nNewHeight--;
@@ -1140,7 +1140,7 @@ void PDFExport::ImplWriteWatermark( vcl::PDFWriter& rWriter, const Size& rPageSi
aFont.SetFontHeight( nNewHeight );
pDev->SetFont( aFont );
}
- long nTextHeight = pDev->GetTextHeight();
+ tools::Long nTextHeight = pDev->GetTextHeight();
// leave some maneuvering room for rounding issues, also
// some fonts go a little outside ascent/descent
nTextHeight += nTextHeight/20;
@@ -1194,7 +1194,7 @@ void PDFExport::ImplWriteTiledWatermark( vcl::PDFWriter& rWriter, const Size& rP
pDev->SetMapMode( MapMode( MapUnit::MapPoint ) );
int w = 0;
int watermarkcount = ((rPageSize.Width()) / 200)+1;
- long nTextWidth = rPageSize.Width() / (watermarkcount*1.5);
+ tools::Long nTextWidth = rPageSize.Width() / (watermarkcount*1.5);
OUString oneLineText = watermark;
if(watermark.getLength() > lineLength)
@@ -1205,7 +1205,7 @@ void PDFExport::ImplWriteTiledWatermark( vcl::PDFWriter& rWriter, const Size& rP
if(w==0)
break;
- long nNewHeight = aFont.GetFontHeight() * nTextWidth / w;
+ tools::Long nNewHeight = aFont.GetFontHeight() * nTextWidth / w;
aFont.SetFontHeight(nNewHeight);
pDev->SetFont( aFont );
}