summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-01 16:23:59 +0200
committerNoel Grandin <noel@peralex.com>2015-04-02 09:38:29 +0200
commite9cb5577f4c1be0f59863ec5ccb68e8794a2f117 (patch)
tree9a84237851499e829442ed322ba050189943ce21 /vcl/source
parent1a18cafecb06a76e872f5f1a9434160ea8ffd881 (diff)
loplugin:staticmethods
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/settings.cxx4
-rw-r--r--vcl/source/control/edit.cxx2
-rw-r--r--vcl/source/control/menubtn.cxx2
-rw-r--r--vcl/source/edit/vclmedit.cxx4
-rw-r--r--vcl/source/filter/igif/gifread.cxx12
-rw-r--r--vcl/source/filter/ixbm/xbmread.cxx4
-rw-r--r--vcl/source/filter/ixpm/xpmread.cxx12
-rw-r--r--vcl/source/filter/jpeg/JpegReader.cxx14
-rw-r--r--vcl/source/filter/jpeg/JpegWriter.cxx2
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx4
-rw-r--r--vcl/source/gdi/bitmap.cxx34
-rw-r--r--vcl/source/gdi/bitmap3.cxx38
-rw-r--r--vcl/source/gdi/bitmapex.cxx12
-rw-r--r--vcl/source/gdi/dibtools.cxx8
-rw-r--r--vcl/source/gdi/impimage.cxx6
-rw-r--r--vcl/source/gdi/impvect.cxx4
-rw-r--r--vcl/source/gdi/pngread.cxx4
-rw-r--r--vcl/source/gdi/pngwrite.cxx8
-rw-r--r--vcl/source/gdi/print2.cxx2
-rw-r--r--vcl/source/gdi/salgdilayout.cxx4
-rw-r--r--vcl/source/helper/canvasbitmap.cxx4
-rw-r--r--vcl/source/outdev/bitmap.cxx20
-rw-r--r--vcl/source/outdev/outdev.cxx2
-rw-r--r--vcl/source/outdev/text.cxx2
-rw-r--r--vcl/source/outdev/transparent.cxx4
-rw-r--r--vcl/source/window/dndevdis.cxx2
-rw-r--r--vcl/source/window/floatwin.cxx2
-rw-r--r--vcl/source/window/window.cxx4
-rw-r--r--vcl/source/window/winproc.cxx2
29 files changed, 111 insertions, 111 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index b202d64e4d9c..7d625dfdcf30 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2821,12 +2821,12 @@ namespace
}
}
-bool AllSettings::GetLayoutRTL() const
+bool AllSettings::GetLayoutRTL()
{
return GetConfigLayoutRTL(false);
}
-bool AllSettings::GetMathLayoutRTL() const
+bool AllSettings::GetMathLayoutRTL()
{
return GetConfigLayoutRTL(true);
}
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index f704e66d458b..a35327a306d2 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -1034,7 +1034,7 @@ void Edit::ImplPaintBorder( long nXStart, long nXEnd )
if( !aClipRgn.IsNull() )
{
// transform clipping region to border window's coordinate system
- if( IsRTLEnabled() != pBorder->IsRTLEnabled() && Application::GetSettings().GetLayoutRTL() )
+ if( IsRTLEnabled() != pBorder->IsRTLEnabled() && AllSettings::GetLayoutRTL() )
{
// need to mirror in case border is not RTL but edit is (or vice versa)
diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx
index a4ffdf8482b3..a78c5612ec86 100644
--- a/vcl/source/control/menubtn.cxx
+++ b/vcl/source/control/menubtn.cxx
@@ -43,7 +43,7 @@ void MenuButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
nStyle |= WB_TABSTOP;
PushButton::ImplInit( pParent, nStyle );
- EnableRTL( Application::GetSettings().GetLayoutRTL() );
+ EnableRTL( AllSettings::GetLayoutRTL() );
}
void MenuButton::ExecuteMenu()
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index e176657002fb..dd46cdad48fd 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -334,7 +334,7 @@ IMPL_LINK( ImpVclMEdit, ScrollHdl, ScrollBar*, pCurScrollBar )
void ImpVclMEdit::SetAlign( WinBits nWinStyle )
{
- bool bRTL = Application::GetSettings().GetLayoutRTL();
+ bool bRTL = AllSettings::GetLayoutRTL();
mpTextWindow->GetTextEngine()->SetRightToLeft( bRTL );
if ( nWinStyle & WB_CENTER )
@@ -423,7 +423,7 @@ void ImpVclMEdit::Resize()
Point aTextWindowPos( maTextWindowOffset );
if ( mpVScrollBar )
{
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
{
mpVScrollBar->setPosSizePixel( 0, 0, nSBWidth, aSz.Height() );
aTextWindowPos.X() += nSBWidth;
diff --git a/vcl/source/filter/igif/gifread.cxx b/vcl/source/filter/igif/gifread.cxx
index 0b14c77d820f..3526a0bcaf5b 100644
--- a/vcl/source/filter/igif/gifread.cxx
+++ b/vcl/source/filter/igif/gifread.cxx
@@ -69,10 +69,10 @@ GIFReader::~GIFReader()
aImGraphic.SetContext( NULL );
if( pAcc1 )
- aBmp1.ReleaseAccess( pAcc1 );
+ Bitmap::ReleaseAccess( pAcc1 );
if( pAcc8 )
- aBmp8.ReleaseAccess( pAcc8 );
+ Bitmap::ReleaseAccess( pAcc8 );
delete[] pSrcBuf;
}
@@ -544,12 +544,12 @@ void GIFReader::CreateNewBitmaps()
{
AnimationBitmap aAnimBmp;
- aBmp8.ReleaseAccess( pAcc8 );
+ Bitmap::ReleaseAccess( pAcc8 );
pAcc8 = NULL;
if( bGCTransparent )
{
- aBmp1.ReleaseAccess( pAcc1 );
+ Bitmap::ReleaseAccess( pAcc1 );
pAcc1 = NULL;
aAnimBmp.aBmpEx = BitmapEx( aBmp8, aBmp1 );
}
@@ -585,11 +585,11 @@ const Graphic& GIFReader::GetIntermediateGraphic()
{
Bitmap aBmp;
- aBmp8.ReleaseAccess( pAcc8 );
+ Bitmap::ReleaseAccess( pAcc8 );
if ( bGCTransparent )
{
- aBmp1.ReleaseAccess( pAcc1 );
+ Bitmap::ReleaseAccess( pAcc1 );
aImGraphic = BitmapEx( aBmp8, aBmp1 );
pAcc1 = aBmp1.AcquireWriteAccess();
diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx
index ff1eed9ebce1..6bf877ab80c3 100644
--- a/vcl/source/filter/ixbm/xbmread.cxx
+++ b/vcl/source/filter/ixbm/xbmread.cxx
@@ -40,7 +40,7 @@ XBMReader::~XBMReader()
delete[] pHexTable;
if( pAcc1 )
- aBmp1.ReleaseAccess( pAcc1 );
+ Bitmap::ReleaseAccess( pAcc1 );
}
void XBMReader::InitTable()
@@ -319,7 +319,7 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
{
Bitmap aBlackBmp( Size( pAcc1->Width(), pAcc1->Height() ), 1 );
- aBmp1.ReleaseAccess( pAcc1 ), pAcc1 = NULL;
+ Bitmap::ReleaseAccess( pAcc1 ), pAcc1 = NULL;
aBlackBmp.Erase( Color( COL_BLACK ) );
rGraphic = BitmapEx( aBlackBmp, aBmp1 );
eReadState = XBMREAD_OK;
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx
index fc378c2bd4c4..05d4d0f146bf 100644
--- a/vcl/source/filter/ixpm/xpmread.cxx
+++ b/vcl/source/filter/ixpm/xpmread.cxx
@@ -54,7 +54,7 @@ XPMReader::XPMReader(SvStream& rStm)
XPMReader::~XPMReader()
{
if( mpAcc )
- maBmp.ReleaseAccess( mpAcc );
+ Bitmap::ReleaseAccess( mpAcc );
}
ReadState XPMReader::ReadXPM( Graphic& rGraphic )
@@ -181,21 +181,21 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
{
if ( mpMaskAcc )
{
- maMaskBmp.ReleaseAccess ( mpMaskAcc), mpMaskAcc = NULL;
- maBmp.ReleaseAccess( mpAcc ), mpAcc = NULL;
+ Bitmap::ReleaseAccess ( mpMaskAcc), mpMaskAcc = NULL;
+ Bitmap::ReleaseAccess( mpAcc ), mpAcc = NULL;
rGraphic = Graphic( BitmapEx( maBmp, maMaskBmp ) );
}
else
{
- maBmp.ReleaseAccess( mpAcc ), mpAcc = NULL;
+ Bitmap::ReleaseAccess( mpAcc ), mpAcc = NULL;
rGraphic = maBmp;
}
eReadState = XPMREAD_OK;
}
else
{
- if ( mpMaskAcc ) maMaskBmp.ReleaseAccess ( mpMaskAcc), mpMaskAcc = NULL;
- if ( mpAcc ) maBmp.ReleaseAccess( mpAcc ), mpAcc = NULL;
+ if ( mpMaskAcc ) Bitmap::ReleaseAccess ( mpMaskAcc), mpMaskAcc = NULL;
+ if ( mpAcc ) Bitmap::ReleaseAccess( mpAcc ), mpAcc = NULL;
eReadState = XPMREAD_ERROR;
}
}
diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx
index 03c3ce918b30..5785224a7602 100644
--- a/vcl/source/filter/jpeg/JpegReader.cxx
+++ b/vcl/source/filter/jpeg/JpegReader.cxx
@@ -196,10 +196,10 @@ JPEGReader::~JPEGReader()
delete[] mpBuffer;
if( mpAcc )
- maBmp.ReleaseAccess( mpAcc );
+ Bitmap::ReleaseAccess( mpAcc );
if( mpAcc1 )
- maBmp1.ReleaseAccess( mpAcc1 );
+ Bitmap::ReleaseAccess( mpAcc1 );
}
unsigned char * JPEGReader::CreateBitmap( JPEGCreateBitmapParam * pParam )
@@ -217,7 +217,7 @@ unsigned char * JPEGReader::CreateBitmap( JPEGCreateBitmapParam * pParam )
if( mpAcc )
{
- maBmp.ReleaseAccess( mpAcc );
+ Bitmap::ReleaseAccess( mpAcc );
maBmp = Bitmap();
mpAcc = NULL;
}
@@ -295,7 +295,7 @@ unsigned char * JPEGReader::CreateBitmap( JPEGCreateBitmapParam * pParam )
// clean up, if no Bitmap buffer can be provided.
if ( !pBmpBuf )
{
- maBmp.ReleaseAccess( mpAcc );
+ Bitmap::ReleaseAccess( mpAcc );
maBmp = Bitmap();
mpAcc = NULL;
}
@@ -388,7 +388,7 @@ Graphic JPEGReader::CreateIntermediateGraphic( const Bitmap& rBitmap, long nLine
{
if( mpAcc1 )
{
- maBmp1.ReleaseAccess( mpAcc1 );
+ Bitmap::ReleaseAccess( mpAcc1 );
}
maBmp1 = Bitmap( rBitmap.GetSizePixel(), 1 );
@@ -408,7 +408,7 @@ Graphic JPEGReader::CreateIntermediateGraphic( const Bitmap& rBitmap, long nLine
mpAcc1->FillRect( Rectangle( Point( 0, mnLastLines ), Size( mpAcc1->Width(), nNewLines ) ) );
}
- maBmp1.ReleaseAccess( mpAcc1 );
+ Bitmap::ReleaseAccess( mpAcc1 );
aGraphic = BitmapEx( rBitmap, maBmp1 );
mpAcc1 = maBmp1.AcquireWriteAccess();
}
@@ -465,7 +465,7 @@ ReadState JPEGReader::Read( Graphic& rGraphic )
mpBuffer = NULL;
}
- maBmp.ReleaseAccess( mpAcc );
+ Bitmap::ReleaseAccess( mpAcc );
mpAcc = NULL;
if( mrStream.GetError() == ERRCODE_IO_PENDING )
diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx
index 45fd8ceceb41..fe03540519a5 100644
--- a/vcl/source/filter/jpeg/JpegWriter.cxx
+++ b/vcl/source/filter/jpeg/JpegWriter.cxx
@@ -236,7 +236,7 @@ bool JPEGWriter::Write( const Graphic& rGraphic )
delete[] mpBuffer;
mpBuffer = NULL;
- aGraphicBmp.ReleaseAccess( mpReadAccess );
+ Bitmap::ReleaseAccess( mpReadAccess );
mpReadAccess = NULL;
}
if ( mxStatusIndicator.is() )
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index 21f3516a1c88..c7d131586c92 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -667,7 +667,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
}
}
}
- aBmp.ReleaseAccess( pAcc );
+ Bitmap::ReleaseAccess( pAcc );
if ( nSye && nSxe &&
( ( nSx + nSxe ) <= aBmp.GetSizePixel().Width() ) &&
( ( nSy + nSye <= aBmp.GetSizePixel().Height() ) ) )
@@ -759,7 +759,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
nCount = pBmp->Height() * pBmp->Width();
if ( !nCount )
nCount++;
- aBmp.ReleaseAccess( pBmp );
+ Bitmap::ReleaseAccess( pBmp );
}
Color aColor( (sal_uInt8)( nRed / nCount ), (sal_uInt8)( nGreen / nCount ), (sal_uInt8)( nBlue / nCount ) );
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( aColor, false ) );
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 3df5896513ed..b5209f84fad3 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -280,7 +280,7 @@ bool Bitmap::HasGreyPalette() const
if( pIAcc )
{
bRet = pIAcc->HasPalette() && pIAcc->GetPalette().IsGreyPalette();
- const_cast<Bitmap*>(this)->ReleaseAccess( pIAcc );
+ ReleaseAccess( pIAcc );
}
return bRet;
@@ -334,7 +334,7 @@ sal_uLong Bitmap::GetChecksum() const
mpImpBmp->ImplSetChecksum( nRet = nCrc );
}
- if (pRAcc) const_cast<Bitmap*>(this)->ReleaseAccess( pRAcc );
+ if (pRAcc) ReleaseAccess( pRAcc );
}
}
@@ -702,7 +702,7 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor )
pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY--, nOtherX ) );
}
- Bitmap::ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
}
aRotatedBmp = aNewBmp;
@@ -772,7 +772,7 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor )
}
}
- Bitmap::ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
}
aRotatedBmp = aNewBmp;
@@ -818,7 +818,7 @@ bool Bitmap::Crop( const Rectangle& rRectPixel )
for( long nX = 0, nX2 = nOldX; nX < nNewWidth; nX++, nX2++ )
pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY2, nX2 ) );
- Bitmap::ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -899,7 +899,7 @@ bool Bitmap::CopyPixel( const Rectangle& rRectDst,
}
if( pSrcAcc )
- Bitmap::ReleaseAccess( pSrcAcc );
+ ReleaseAccess( pSrcAcc );
if( pDstAcc )
ReleaseAccess( pDstAcc );
@@ -953,7 +953,7 @@ bool Bitmap::CopyPixel( const Rectangle& rRectDst,
bRet = ( nWidth > 0L ) && ( nHeight > 0L );
}
- Bitmap::ReleaseAccess( pReadAcc );
+ ReleaseAccess( pReadAcc );
}
}
}
@@ -1060,7 +1060,7 @@ bool Bitmap::CopyPixel_AlphaOptimized( const Rectangle& rRectDst, const Rectangl
bRet = ( nWidth > 0L ) && ( nHeight > 0L );
}
- Bitmap::ReleaseAccess( pReadAcc );
+ ReleaseAccess( pReadAcc );
}
}
}
@@ -1168,7 +1168,7 @@ bool Bitmap::Expand( sal_uLong nDX, sal_uLong nDY, const Color* pInitColor )
for( nX = 0; nX < nNewWidth; nX++ )
pWriteAcc->SetPixel( nY, nX, aColor );
- Bitmap::ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -1354,11 +1354,11 @@ Bitmap Bitmap::CreateMask( const Color& rTransColor, sal_uLong nTol ) const
}
}
- const_cast<Bitmap*>(this)->ReleaseAccess( pReadAcc );
+ ReleaseAccess( pReadAcc );
bRet = true;
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
}
if( bRet )
@@ -1469,7 +1469,7 @@ vcl::Region Bitmap::CreateRegion( const Color& rColor, const Rectangle& rRect )
//aRegion.ImplEndAddRect();
//aRegion.SetRegionRectangles(aRectangles);
- const_cast<Bitmap*>(this)->ReleaseAccess( pReadAcc );
+ ReleaseAccess( pReadAcc );
}
else
aRegion = aRect;
@@ -1543,7 +1543,7 @@ bool Bitmap::Replace( const Bitmap& rMask, const Color& rReplaceColor )
bRet = true;
}
- Bitmap::ReleaseAccess( pMaskAcc );
+ ReleaseAccess( pMaskAcc );
ReleaseAccess( pAcc );
return bRet;
@@ -1576,8 +1576,8 @@ bool Bitmap::Replace( const AlphaMask& rAlpha, const Color& rMergeColor )
}
ReleaseAccess( pAcc );
- ( (AlphaMask&) rAlpha ).ReleaseAccess( pAlphaAcc );
- Bitmap::ReleaseAccess( pNewAcc );
+ ReleaseAccess( pAlphaAcc );
+ ReleaseAccess( pNewAcc );
if( bRet )
{
@@ -1921,7 +1921,7 @@ bool Bitmap::CombineSimple( const Bitmap& rMask, BmpCombine eCombine )
bRet = true;
}
- Bitmap::ReleaseAccess( pMaskAcc );
+ ReleaseAccess( pMaskAcc );
ReleaseAccess( pAcc );
return bRet;
@@ -1954,7 +1954,7 @@ bool Bitmap::Blend( const AlphaMask& rAlpha, const Color& rBackgroundColor )
bRet = true;
}
- const_cast<AlphaMask&>(rAlpha).ReleaseAccess( pAlphaAcc );
+ ReleaseAccess( pAlphaAcc );
ReleaseAccess( pAcc );
return bRet;
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 60ed14d9f3ae..d3d6db4deca4 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -380,7 +380,7 @@ bool Bitmap::ImplMakeMono( sal_uInt8 cThreshold )
}
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -455,7 +455,7 @@ bool Bitmap::ImplMakeMonoDither()
}
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -561,7 +561,7 @@ bool Bitmap::ImplMakeGreyscales( sal_uInt16 nGreys )
pWriteAcc->SetPixelIndex( nY, nX, (pReadAcc->GetPixel( nY, nX ) ).GetLuminance() >> nShift );
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -816,7 +816,7 @@ bool Bitmap::ImplConvertGhosted()
if( pW )
{
pW->CopyBuffer( *pR );
- aNewBmp.ReleaseAccess( pW );
+ ReleaseAccess( pW );
bRet = true;
}
}
@@ -842,7 +842,7 @@ bool Bitmap::ImplConvertGhosted()
}
}
- aNewBmp.ReleaseAccess( pW );
+ ReleaseAccess( pW );
bRet = true;
}
}
@@ -1114,7 +1114,7 @@ bool Bitmap::ImplScaleFast( const double& rScaleX, const double& rScaleY )
}
bRet = true;
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
}
}
ReleaseAccess( pReadAcc );
@@ -1220,7 +1220,7 @@ bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rScaleY
}
ReleaseAccess( pReadAcc );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
if( bRet )
{
@@ -1293,7 +1293,7 @@ bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rScaleY
}
ReleaseAccess( pReadAcc );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
if( bRet )
{
@@ -1440,10 +1440,10 @@ namespace
}
}
- rTarget.ReleaseAccess(pWriteAcc);
+ Bitmap::ReleaseAccess(pWriteAcc);
}
- rSource.ReleaseAccess(pReadAcc);
+ Bitmap::ReleaseAccess(pReadAcc);
delete[] pWeights;
delete[] pCount;
delete[] pPixels;
@@ -1539,8 +1539,8 @@ namespace
}
}
- rTarget.ReleaseAccess(pWriteAcc);
- rSource.ReleaseAccess(pReadAcc);
+ Bitmap::ReleaseAccess(pWriteAcc);
+ Bitmap::ReleaseAccess(pReadAcc);
delete[] pWeights;
delete[] pCount;
@@ -1738,7 +1738,7 @@ bool Bitmap::ImplDitherMatrix()
}
ReleaseAccess( pReadAcc );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
if( bRet )
{
@@ -1873,7 +1873,7 @@ bool Bitmap::ImplDitherFloyd()
}
ReleaseAccess( pReadAcc );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
if( bRet )
{
@@ -1963,7 +1963,7 @@ bool Bitmap::ImplDitherFloyd16()
}
ReleaseAccess( pReadAcc );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
if( bRet )
{
@@ -2042,7 +2042,7 @@ bool Bitmap::ImplReduceSimple( sal_uInt16 nColorCount )
pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>(aOct.GetBestPaletteIndex( pRAcc->GetPixel( nY, nX ) )) );
}
- aNewBmp.ReleaseAccess( pWAcc );
+ ReleaseAccess( pWAcc );
bRet = true;
}
@@ -2204,7 +2204,7 @@ bool Bitmap::ImplReducePopular( sal_uInt16 nColCount )
}
}
- aNewBmp.ReleaseAccess( pWAcc );
+ ReleaseAccess( pWAcc );
bRet = true;
}
@@ -2294,7 +2294,7 @@ bool Bitmap::ImplReduceMedian( sal_uInt16 nColCount )
pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>( aMap.GetBestPaletteIndex( pRAcc->GetColor( nY, nX ) )) );
rtl_freeMemory( pColBuf );
- aNewBmp.ReleaseAccess( pWAcc );
+ ReleaseAccess( pWAcc );
bRet = true;
}
@@ -2648,7 +2648,7 @@ bool Bitmap::ImplConvolutionPass(Bitmap& aNewBitmap, BitmapReadAccess* pReadAcc,
pWriteAcc->SetPixel(nDestY, nDestX, aResultColor);
}
}
- aNewBitmap.ReleaseAccess( pWriteAcc );
+ ReleaseAccess( pWriteAcc );
return true;
}
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index 7782bd473134..d75d6749143e 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -751,7 +751,7 @@ sal_uInt8 BitmapEx::GetTransparency(sal_Int32 nX, sal_Int32 nY) const
nTransparency = 0x00;
}
- aTestBitmap.ReleaseAccess(pRead);
+ Bitmap::ReleaseAccess(pRead);
}
break;
}
@@ -778,7 +778,7 @@ sal_uInt8 BitmapEx::GetTransparency(sal_Int32 nX, sal_Int32 nY) const
}
}
- aTestBitmap.ReleaseAccess(pRead);
+ Bitmap::ReleaseAccess(pRead);
}
}
break;
@@ -1299,8 +1299,8 @@ BitmapEx createBlendFrame(
}
}
- aContent.ReleaseAccess(xContent);
- aAlpha.ReleaseAccess(pAlpha);
+ Bitmap::ReleaseAccess(xContent);
+ Bitmap::ReleaseAccess(pAlpha);
pBlendFrameCache->m_aLastResult = BitmapEx(aContent, aAlpha);
}
@@ -1308,12 +1308,12 @@ BitmapEx createBlendFrame(
{
if(xContent)
{
- aContent.ReleaseAccess(xContent);
+ Bitmap::ReleaseAccess(xContent);
}
if(pAlpha)
{
- aAlpha.ReleaseAccess(pAlpha);
+ Bitmap::ReleaseAccess(pAlpha);
}
}
}
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index d4f5447cce22..044b0962b760 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -830,11 +830,11 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, Bitmap* pBmpAlpha, sal_uLon
}
delete pMemStm;
- aNewBmp.ReleaseAccess(pAcc);
+ Bitmap::ReleaseAccess(pAcc);
if(bAlphaPossible)
{
- aNewBmpAlpha.ReleaseAccess(pAccAlpha);
+ Bitmap::ReleaseAccess(pAccAlpha);
if(!bAlphaUsed)
{
@@ -1515,11 +1515,11 @@ bool ImplWriteDIB(
bRet = ImplWriteDIBBody(rSource, rOStm, *pAcc, pAccAlpha, bCompressed);
}
- const_cast< Bitmap& >(rSource).ReleaseAccess(pAcc);
+ Bitmap::ReleaseAccess(pAcc);
if(pAccAlpha)
{
- const_cast< Bitmap* >(pSourceAlpha)->ReleaseAccess(pAccAlpha);
+ Bitmap::ReleaseAccess(pAccAlpha);
}
}
diff --git a/vcl/source/gdi/impimage.cxx b/vcl/source/gdi/impimage.cxx
index 00720878069d..184e5b192e85 100644
--- a/vcl/source/gdi/impimage.cxx
+++ b/vcl/source/gdi/impimage.cxx
@@ -274,7 +274,7 @@ void ImplImageBmp::Draw( sal_uInt16 nPos, OutputDevice* pOutDev,
}
}
- aTmpBmp.ReleaseAccess( pAcc );
+ Bitmap::ReleaseAccess( pAcc );
}
}
@@ -392,9 +392,9 @@ void ImplImageBmp::ImplUpdateDisabledBmpEx( int nPos )
}
}
- aBmp.ReleaseAccess( pBmp );
+ Bitmap::ReleaseAccess( pBmp );
aBmpAlphaMask.ReleaseAccess( pBmpAlphaMask );
- aGrey.ReleaseAccess( pGrey );
+ Bitmap::ReleaseAccess( pGrey );
aGreyAlphaMask.ReleaseAccess( pGreyAlphaMask );
maDisabledBmpEx = BitmapEx( aGrey, aGreyAlphaMask );
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx
index 024d53f154a7..d5435efdb58c 100644
--- a/vcl/source/gdi/impvect.cxx
+++ b/vcl/source/gdi/impvect.cxx
@@ -722,7 +722,7 @@ bool ImplVectorizer::ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
}
}
- xBmp->ReleaseAccess( pRAcc );
+ Bitmap::ReleaseAccess( pRAcc );
xBmp.reset();
VECT_PROGRESS( pProgress, 100 );
@@ -746,7 +746,7 @@ bool ImplVectorizer::ImplVectorize( const Bitmap& rMonoBmp,
pRAcc = xBmp->AcquireReadAccess();
std::unique_ptr <ImplVectMap> xMap(ImplExpand( pRAcc, COL_BLACK ));
- xBmp->ReleaseAccess( pRAcc );
+ Bitmap::ReleaseAccess( pRAcc );
xBmp.reset();
VECT_PROGRESS( pProgress, 60 );
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 519a27851099..fe275146ee35 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -424,14 +424,14 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
// release write access of the bitmaps
if ( mpAcc )
- mpBmp->ReleaseAccess( mpAcc ), mpAcc = NULL;
+ Bitmap::ReleaseAccess( mpAcc ), mpAcc = NULL;
if ( mpMaskAcc )
{
if ( mpAlphaMask )
mpAlphaMask->ReleaseAccess( mpMaskAcc );
else if ( mpMaskBmp )
- mpMaskBmp->ReleaseAccess( mpMaskAcc );
+ Bitmap::ReleaseAccess( mpMaskAcc );
mpMaskAcc = NULL;
}
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index 0b61f75eeb5e..d3ee25fbeff9 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -167,7 +167,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
ImplWriteTransparent();
ImplWriteIDAT();
}
- aBmp.ReleaseAccess(mpAccess);
+ Bitmap::ReleaseAccess(mpAccess);
mpAccess = NULL;
}
else
@@ -210,7 +210,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
ImplWritepHYs(rBmpEx);
ImplWriteIDAT();
}
- aMask.ReleaseAccess(mpMaskAccess);
+ Bitmap::ReleaseAccess(mpMaskAccess);
mpMaskAccess = NULL;
}
else
@@ -218,7 +218,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
mbStatus = false;
}
}
- aBmp.ReleaseAccess(mpAccess);
+ Bitmap::ReleaseAccess(mpAccess);
mpAccess = NULL;
}
else
@@ -240,7 +240,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
ImplWriteIDAT();
}
- aBmp.ReleaseAccess(mpAccess);
+ Bitmap::ReleaseAccess(mpAccess);
mpAccess = NULL;
}
else
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index c9339e3e31ad..76a471b45d99 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -225,7 +225,7 @@ void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
if( pRA->HasPalette() )
aActualColor = pRA->GetBestPaletteColor( aBgColor ).operator Color();
- aBmp.ReleaseAccess(pRA);
+ Bitmap::ReleaseAccess(pRA);
// did we get true white?
if( aActualColor.GetColorError( aBgColor ) )
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 760f1899f511..e3381ab2722d 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -53,7 +53,7 @@ SalFrameGeometry SalFrame::GetGeometry()
{
// mirror frame coordinates at parent
SalFrame *pParent = GetParent();
- if( pParent && Application::GetSettings().GetLayoutRTL() )
+ if( pParent && AllSettings::GetLayoutRTL() )
{
SalFrameGeometry aGeom = maGeometry;
int parent_x = aGeom.nX - pParent->maGeometry.nX;
@@ -69,7 +69,7 @@ SalGraphics::SalGraphics()
m_bAntiAliasB2DDraw(false)
{
// read global RTL settings
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
m_nLayout = SAL_LAYOUT_BIDI_RTL;
}
diff --git a/vcl/source/helper/canvasbitmap.cxx b/vcl/source/helper/canvasbitmap.cxx
index 6cbfd523a5c6..ab3d48a6d9c5 100644
--- a/vcl/source/helper/canvasbitmap.cxx
+++ b/vcl/source/helper/canvasbitmap.cxx
@@ -424,9 +424,9 @@ VclCanvasBitmap::VclCanvasBitmap( const BitmapEx& rBitmap ) :
VclCanvasBitmap::~VclCanvasBitmap()
{
if( m_pAlphaAcc )
- m_aAlpha.ReleaseAccess(m_pAlphaAcc);
+ Bitmap::ReleaseAccess(m_pAlphaAcc);
if( m_pBmpAcc )
- m_aBitmap.ReleaseAccess(m_pBmpAcc);
+ Bitmap::ReleaseAccess(m_pBmpAcc);
}
// XBitmap
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index ffac35c35a04..35ef02d1498a 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -1248,9 +1248,9 @@ namespace
}
}
- const_cast<Bitmap&>(rBitmap).ReleaseAccess( pBmp );
- aGrey.ReleaseAccess( pGrey );
- aGreyAlphaMask.ReleaseAccess( pGreyAlphaMask );
+ Bitmap::ReleaseAccess( pBmp );
+ Bitmap::ReleaseAccess( pGrey );
+ Bitmap::ReleaseAccess( pGreyAlphaMask );
return BitmapEx( aGrey, aGreyAlphaMask );
}
}
@@ -1427,8 +1427,8 @@ Bitmap OutputDevice::BlendBitmapWithAlpha(
}
}
- aBmp.ReleaseAccess( pB );
- aDither.ReleaseAccess( pW );
+ Bitmap::ReleaseAccess( pB );
+ Bitmap::ReleaseAccess( pW );
res = aDither;
}
else
@@ -1451,11 +1451,11 @@ Bitmap OutputDevice::BlendBitmapWithAlpha(
}
}
- aBmp.ReleaseAccess( pB );
+ Bitmap::ReleaseAccess( pB );
res = aBmp;
}
- aAlphaBitmap.ReleaseAccess( pAlphaW );
+ Bitmap::ReleaseAccess( pAlphaW );
mpAlphaVDev->DrawBitmap( aDstRect.TopLeft(), aAlphaBitmap );
mpAlphaVDev->EnableMapMode( bOldMapMode );
@@ -1513,8 +1513,8 @@ Bitmap OutputDevice::BlendBitmap(
}
}
- aBmp.ReleaseAccess( pB );
- aDither.ReleaseAccess( pW );
+ Bitmap::ReleaseAccess( pB );
+ Bitmap::ReleaseAccess( pW );
res = aDither;
}
else
@@ -1576,7 +1576,7 @@ Bitmap OutputDevice::BlendBitmap(
}
}
- aBmp.ReleaseAccess( pB );
+ Bitmap::ReleaseAccess( pB );
res = aBmp;
}
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 0747b7b210e8..372eb23bc8f4 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -120,7 +120,7 @@ OutputDevice::OutputDevice() :
mnDrawMode = 0;
mnTextLayoutMode = TEXT_LAYOUT_DEFAULT;
- if( Application::GetSettings().GetLayoutRTL() ) //#i84553# tip BiDi preference to RTL
+ if( AllSettings::GetLayoutRTL() ) //#i84553# tip BiDi preference to RTL
mnTextLayoutMode = TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_TEXTORIGIN_LEFT;
meOutDevType = OUTDEV_DONTKNOW;
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index c52cae5f858c..0bd7914bd125 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -2583,7 +2583,7 @@ bool OutputDevice::GetTextBoundRect( Rectangle& rRect,
nRight = nX;
}
- aBmp.ReleaseAccess( pAcc );
+ Bitmap::ReleaseAccess( pAcc );
if( nTop <= nBottom )
{
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx
index c180114315f1..fce446688a73 100644
--- a/vcl/source/outdev/transparent.cxx
+++ b/vcl/source/outdev/transparent.cxx
@@ -568,8 +568,8 @@ void OutputDevice::EmulateDrawTransparent ( const tools::PolyPolygon& rPolyPoly,
}
}
- aPolyMask.ReleaseAccess( pR );
- aPaint.ReleaseAccess( pW );
+ Bitmap::ReleaseAccess( pR );
+ Bitmap::ReleaseAccess( pW );
DrawBitmap( aDstRect.TopLeft(), aPaint );
diff --git a/vcl/source/window/dndevdis.cxx b/vcl/source/window/dndevdis.cxx
index 7ccaa99f298c..dabfef79569e 100644
--- a/vcl/source/window/dndevdis.cxx
+++ b/vcl/source/window/dndevdis.cxx
@@ -51,7 +51,7 @@ vcl::Window* DNDEventDispatcher::findTopLevelWindow(Point location)
// find the window that is toplevel for this coordinates
// because those coordinates come from outside, they must be mirrored if RTL layout is active
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
m_pTopWindow->ImplMirrorFramePos( location );
vcl::Window * pChildWindow = m_pTopWindow->ImplFindWindow( location );
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index f7089c162dda..13734851ab9b 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -221,7 +221,7 @@ Point FloatingWindow::ImplCalcPos( vcl::Window* pWindow,
Rectangle normRect( rRect ); // rRect is already relative to top-level window
normRect.SetPos( pW->ScreenToOutputPixel( normRect.TopLeft() ) );
- bool bRTL = Application::GetSettings().GetLayoutRTL();
+ bool bRTL = AllSettings::GetLayoutRTL();
Rectangle devRect( pW->OutputToAbsoluteScreenPixel( normRect.TopLeft() ),
pW->OutputToAbsoluteScreenPixel( normRect.BottomRight() ) );
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 8d7339fcb696..6fdb764bf2b5 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -905,7 +905,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p
}
if( pParent && ! mpWindowImpl->mbFrame )
- mbEnableRTL = Application::GetSettings().GetLayoutRTL();
+ mbEnableRTL = AllSettings::GetLayoutRTL();
// test for frame creation
if ( mpWindowImpl->mbFrame )
@@ -1192,7 +1192,7 @@ void Window::ImplInitWindowData( WindowType nType )
meOutDevType = OUTDEV_WINDOW;
- mbEnableRTL = Application::GetSettings().GetLayoutRTL(); // true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
+ mbEnableRTL = AllSettings::GetLayoutRTL(); // true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
}
void Window::getFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize, OutputDevice& rDev )
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index d3df6d03729d..890cb61a9452 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2536,7 +2536,7 @@ bool ImplWindowFrameProc( vcl::Window* pWindow, SalFrame* /*pFrame*/,
{
SalPaintEvent const * pPaintEvt = static_cast<SalPaintEvent const *>(pEvent);
- if( Application::GetSettings().GetLayoutRTL() )
+ if( AllSettings::GetLayoutRTL() )
{
// --- RTL --- (mirror paint rect)
SalFrame* pSalFrame = pWindow->ImplGetWindowImpl()->mpFrame;