summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-25 12:18:31 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-25 12:22:29 +1000
commit927617d69a25cffffd96aed8aa14a738b2ba6983 (patch)
tree1ff740b465f1cbb6d79ae8f4ab5af5c90345a5dd
parent808d273db098e2269e53813595a6bfc7b160e28e (diff)
Renamed ImplGetDPI(X|Y) to GetDPI(X|Y)
Change-Id: If76b99589ddd83431593404c1034b8b726bc3f9b
-rw-r--r--include/vcl/outdev.hxx4
-rw-r--r--sw/source/core/docnode/ndnotxt.cxx4
-rw-r--r--sw/source/core/view/vprint.cxx2
-rw-r--r--vcl/generic/print/genprnpsp.cxx4
-rw-r--r--vcl/source/filter/wmf/emfwr.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx10
-rw-r--r--vcl/source/gdi/print3.cxx10
-rw-r--r--vcl/source/outdev/font.cxx2
-rw-r--r--vcl/source/window/decoview.cxx4
-rw-r--r--vcl/source/window/printdlg.cxx2
-rw-r--r--vcl/source/window/window.cxx8
11 files changed, 26 insertions, 26 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 377208fee32b..e4b40ce3393c 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -434,13 +434,13 @@ public:
@returns x-axis DPI value
*/
- SAL_DLLPRIVATE sal_Int32 ImplGetDPIX() const { return mnDPIX; }
+ SAL_DLLPRIVATE sal_Int32 GetDPIX() const { return mnDPIX; }
/** Get the output device's DPI y-axis value.
@returns y-axis DPI value
*/
- SAL_DLLPRIVATE sal_Int32 ImplGetDPIY() const { return mnDPIY; }
+ SAL_DLLPRIVATE sal_Int32 GetDPIY() const { return mnDPIY; }
///@}
/** @name Clipping functions
diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx
index ef9b2af7bf44..46286b6f573b 100644
--- a/sw/source/core/docnode/ndnotxt.cxx
+++ b/sw/source/core/docnode/ndnotxt.cxx
@@ -160,8 +160,8 @@ const PolyPolygon *SwNoTxtNode::HasContour() const
// #i102238#
if ( nGrfDPIx != 0 && nGrfDPIy != 0 )
{
- rPoly[i] = Point( rPoly[i].getX() * pOutDev->ImplGetDPIX() / nGrfDPIx,
- rPoly[i].getY() * pOutDev->ImplGetDPIY() / nGrfDPIy );
+ rPoly[i] = Point( rPoly[i].getX() * pOutDev->GetDPIX() / nGrfDPIx,
+ rPoly[i].getY() * pOutDev->GetDPIY() / nGrfDPIy );
}
}
else
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index 0022fff31c04..cd08f4c8d0a9 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -542,7 +542,7 @@ sal_Bool SwViewShell::PrintOrPDFExport(
long nShiftY = (nOrigHeight-nNewHeight)/2;
pRecorder->Scale(fScale, fScale);
pRecorder->WindStart();
- pRecorder->Move(0, nShiftY, pOutDev->ImplGetDPIX(), pOutDev->ImplGetDPIY());
+ pRecorder->Move(0, nShiftY, pOutDev->GetDPIX(), pOutDev->GetDPIY());
pRecorder->WindStart();
}
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx
index c1331d2fe801..fc85e21e1afc 100644
--- a/vcl/generic/print/genprnpsp.cxx
+++ b/vcl/generic/print/genprnpsp.cxx
@@ -1069,8 +1069,8 @@ bool PspSalPrinter::StartJob( const OUString* i_pFileName, const OUString& i_rJo
bool bAborted = false;
PDFNewJobParameters aLastParm;
- aContext.DPIx = pPrinter->ImplGetDPIX();
- aContext.DPIy = pPrinter->ImplGetDPIY();
+ aContext.DPIx = pPrinter->GetDPIX();
+ aContext.DPIy = pPrinter->GetDPIY();
for( int nPage = 0; nPage < nAllPages && ! bAborted; nPage++ )
{
if( nPage == nAllPages-1 )
diff --git a/vcl/source/filter/wmf/emfwr.cxx b/vcl/source/filter/wmf/emfwr.cxx
index e518cddcb692..3563f0e82306 100644
--- a/vcl/source/filter/wmf/emfwr.cxx
+++ b/vcl/source/filter/wmf/emfwr.cxx
@@ -319,7 +319,7 @@ bool EMFWriter::WriteEMF( const GDIMetaFile& rMtf, FilterConfigItem* pFilterConf
ImplEndRecord();
ImplBeginRecord( WIN_EMR_SETVIEWPORTEXTEX );
- m_rStm.WriteInt32( (sal_Int32) maVDev.ImplGetDPIX() ).WriteInt32( (sal_Int32) maVDev.ImplGetDPIY() );
+ m_rStm.WriteInt32( (sal_Int32) maVDev.GetDPIX() ).WriteInt32( (sal_Int32) maVDev.GetDPIY() );
ImplEndRecord();
ImplBeginRecord( WIN_EMR_SETWINDOWEXTEX );
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 6dcaf0a5544b..e2d522653711 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1654,7 +1654,7 @@ bool PDFWriterImpl::PDFPage::appendLineInfo( const LineInfo& rInfo, OStringBuffe
else if( rInfo.GetWidth() == 0 )
{
// "pixel" line
- appendDouble( 72.0/double(m_pWriter->getReferenceDevice()->ImplGetDPIX()), rBuffer );
+ appendDouble( 72.0/double(m_pWriter->getReferenceDevice()->GetDPIX()), rBuffer );
rBuffer.append( " w\n" );
}
@@ -2271,7 +2271,7 @@ sal_Int32 PDFWriterImpl::newPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight, P
// setup global graphics state
// linewidth is "1 pixel" by default
OStringBuffer aBuf( 16 );
- appendDouble( 72.0/double(getReferenceDevice()->ImplGetDPIX()), aBuf );
+ appendDouble( 72.0/double(getReferenceDevice()->GetDPIX()), aBuf );
aBuf.append( " w\n" );
writeBuffer( aBuf.getStr(), aBuf.getLength() );
@@ -4745,7 +4745,7 @@ Font PDFWriterImpl::drawFieldBorder( PDFWidget& rIntern,
{
if( rWidget.Border && rWidget.BorderColor == Color( COL_TRANSPARENT ) )
{
- sal_Int32 nDelta = getReferenceDevice()->ImplGetDPIX() / 500;
+ sal_Int32 nDelta = getReferenceDevice()->GetDPIX() / 500;
if( nDelta < 1 )
nDelta = 1;
setLineColor( Color( COL_TRANSPARENT ) );
@@ -9301,9 +9301,9 @@ void PDFWriterImpl::drawPixel( const Point& rPoint, const Color& rColor )
OStringBuffer aLine( 20 );
m_aPages.back().appendPoint( rPoint, aLine );
aLine.append( ' ' );
- appendDouble( 1.0/double(getReferenceDevice()->ImplGetDPIX()), aLine );
+ appendDouble( 1.0/double(getReferenceDevice()->GetDPIX()), aLine );
aLine.append( ' ' );
- appendDouble( 1.0/double(getReferenceDevice()->ImplGetDPIY()), aLine );
+ appendDouble( 1.0/double(getReferenceDevice()->GetDPIY()), aLine );
aLine.append( " re f\n" );
writeBuffer( aLine.getStr(), aLine.getLength() );
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index d64213e7f709..ad7a8ba68048 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -1074,7 +1074,7 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
o_rMtf.WindStart();
long nDX = (aPaperSize.Width() - aPageSize.aSize.Width()) / 2;
long nDY = (aPaperSize.Height() - aPageSize.aSize.Height()) / 2;
- o_rMtf.Move( nDX, nDY, mpImplData->mpPrinter->ImplGetDPIX(), mpImplData->mpPrinter->ImplGetDPIY() );
+ o_rMtf.Move( nDX, nDY, mpImplData->mpPrinter->GetDPIX(), mpImplData->mpPrinter->GetDPIY() );
o_rMtf.WindStart();
o_rMtf.SetPrefSize( aPaperSize );
aPageSize.aSize = aPaperSize;
@@ -1161,7 +1161,7 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
long nOffY = (aSubPageSize.Height() - long(double(aPageSize.aSize.Height()) * fScale)) / 2;
long nX = rMPS.nLeftMargin + nOffX + nAdvX * nCellX;
long nY = rMPS.nTopMargin + nOffY + nAdvY * nCellY;
- aPageFile.Move( nX, nY, mpImplData->mpPrinter->ImplGetDPIX(), mpImplData->mpPrinter->ImplGetDPIY() );
+ aPageFile.Move( nX, nY, mpImplData->mpPrinter->GetDPIX(), mpImplData->mpPrinter->GetDPIY() );
aPageFile.WindStart();
// calculate border rectangle
Rectangle aSubPageRect( Point( nX, nY ),
@@ -1193,8 +1193,8 @@ int PrinterController::getFilteredPageCount()
sal_uLong PrinterController::removeTransparencies( GDIMetaFile& i_rIn, GDIMetaFile& o_rOut )
{
sal_uLong nRestoreDrawMode = mpImplData->mpPrinter->GetDrawMode();
- sal_Int32 nMaxBmpDPIX = mpImplData->mpPrinter->ImplGetDPIX();
- sal_Int32 nMaxBmpDPIY = mpImplData->mpPrinter->ImplGetDPIY();
+ sal_Int32 nMaxBmpDPIX = mpImplData->mpPrinter->GetDPIX();
+ sal_Int32 nMaxBmpDPIY = mpImplData->mpPrinter->GetDPIY();
const PrinterOptions& rPrinterOptions = mpImplData->mpPrinter->GetPrinterOptions();
@@ -1290,7 +1290,7 @@ void PrinterController::printFilteredPage( int i_nPage )
{
Point aPageOffset( mpImplData->mpPrinter->GetPageOffset() );
aPageFile.WindStart();
- aPageFile.Move( -aPageOffset.X(), -aPageOffset.Y(), mpImplData->mpPrinter->ImplGetDPIX(), mpImplData->mpPrinter->ImplGetDPIY() );
+ aPageFile.Move( -aPageOffset.X(), -aPageOffset.Y(), mpImplData->mpPrinter->GetDPIX(), mpImplData->mpPrinter->GetDPIY() );
}
GDIMetaFile aCleanedFile;
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 30dad6eda84f..abec7828f7ea 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1431,7 +1431,7 @@ void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
/* #117909#
* add some pixels to minimum double line distance on higher resolution devices
*/
- long nMin2LineDY = 1 + pDev->ImplGetDPIY()/150;
+ long nMin2LineDY = 1 + pDev->GetDPIY()/150;
if ( n2LineDY < nMin2LineDY )
n2LineDY = nMin2LineDY;
long n2LineDY2 = n2LineDY/2;
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index d16295e71a4c..ad68d451137e 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -421,8 +421,8 @@ void ImplDrawSymbol( OutputDevice* pDev, Rectangle nRect, const SymbolType eType
void ImplDrawDPILineRect( OutputDevice *const pDev, Rectangle& rRect,
const Color *const pColor, const bool bRound = false )
{
- long nLineWidth = pDev->ImplGetDPIX()/300;
- long nLineHeight = pDev->ImplGetDPIY()/300;
+ long nLineWidth = pDev->GetDPIX()/300;
+ long nLineHeight = pDev->GetDPIY()/300;
if ( !nLineWidth )
nLineWidth = 1;
if ( !nLineHeight )
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index e7a4284b12b7..00e9e5f277c7 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1334,7 +1334,7 @@ void PrintDialog::preparePreview( bool i_bNewPage, bool i_bMayUseCache )
mpPreviewWindow->setPreview( aMtf, aCurPageSize,
aPrt->GetPaperName( false ),
nPages > 0 ? OUString() : maNoPageStr,
- aPrt->ImplGetDPIX(), aPrt->ImplGetDPIY(),
+ aPrt->GetDPIX(), aPrt->GetDPIY(),
aPrt->GetPrinterOptions().IsConvertToGreyscales()
);
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 320f95a60c97..05875e5057e9 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -9256,10 +9256,10 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
mbDevOutput = true;
const OutputDevice *pOutDev = GetOutDev();
- long nOldDPIX = pOutDev->ImplGetDPIX();
- long nOldDPIY = pOutDev->ImplGetDPIY();
- mnDPIX = i_pTargetOutDev->ImplGetDPIX();
- mnDPIY = i_pTargetOutDev->ImplGetDPIY();
+ long nOldDPIX = pOutDev->GetDPIX();
+ long nOldDPIY = pOutDev->GetDPIY();
+ mnDPIX = i_pTargetOutDev->GetDPIX();
+ mnDPIY = i_pTargetOutDev->GetDPIY();
bool bOutput = IsOutputEnabled();
EnableOutput();