diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 17:07:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-02 07:24:36 +0100 |
commit | 312c0abcff23a5bc7cf4442359ec48187ec06d48 (patch) | |
tree | 9f4b8be273c1560018f035a73294fcab9b1476a7 /vcl/unx | |
parent | 451ed3d595c5e2a32d820e1751e890f894832a9c (diff) |
drop old tools/gen methods in vcl
Change-Id: I863ce5ae46ae90f06780261fa17b087a7153c807
Reviewed-on: https://gerrit.libreoffice.org/50445
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/print/genprnpsp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx index beb1781f39b8..f8951f4ea160 100644 --- a/vcl/unx/generic/print/genprnpsp.cxx +++ b/vcl/unx/generic/print/genprnpsp.cxx @@ -698,8 +698,8 @@ bool PspSalInfoPrinter::SetData( void PspSalInfoPrinter::GetPageInfo( const ImplJobSetup* pJobSetup, long& rOutWidth, long& rOutHeight, - long& rPageOffX, long& rPageOffY, - long& rPageWidth, long& rPageHeight ) + Point& rPageOffset, + Size& rPaperSize ) { if( ! pJobSetup ) return; @@ -728,10 +728,10 @@ return; aData.m_pParser->getMargins( aPaper, top, bottom, right, left ); } - rPageWidth = width * nDPI / 72; - rPageHeight = height * nDPI / 72; - rPageOffX = left * nDPI / 72; - rPageOffY = top * nDPI / 72; + rPaperSize.setWidth( width * nDPI / 72 ); + rPaperSize.setHeight( height * nDPI / 72 ); + rPageOffset.setX( left * nDPI / 72 ); + rPageOffset.setY( top * nDPI / 72 ); rOutWidth = ( width - left - right ) * nDPI / 72; rOutHeight = ( height - top - bottom ) * nDPI / 72; |