diff options
133 files changed, 325 insertions, 311 deletions
diff --git a/avmedia/source/gstreamer/gstframegrabber.cxx b/avmedia/source/gstreamer/gstframegrabber.cxx index 71f1bf7b3298..f240530edafc 100644 --- a/avmedia/source/gstreamer/gstframegrabber.cxx +++ b/avmedia/source/gstreamer/gstframegrabber.cxx @@ -191,7 +191,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe } } } - aBmp.ReleaseAccess( pWrite ); + Bitmap::ReleaseAccess( pWrite ); #ifndef AVMEDIA_GST_0_10 gst_buffer_unmap( pBuf, &aMapInfo ); diff --git a/canvas/source/cairo/cairo_canvasbitmap.cxx b/canvas/source/cairo/cairo_canvasbitmap.cxx index 22ca7fdfa932..fe9b378a6c87 100644 --- a/canvas/source/cairo/cairo_canvasbitmap.cxx +++ b/canvas/source/cairo/cairo_canvasbitmap.cxx @@ -169,7 +169,7 @@ namespace cairocanvas } aMask.ReleaseAccess( pMaskWrite ); } - aRGB.ReleaseAccess( pRGBWrite ); + ::Bitmap::ReleaseAccess( pRGBWrite ); } // ignore potential errors above. will get caller a diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index 72969790e49f..6157ea671020 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -639,7 +639,7 @@ namespace cairocanvas } } - aBitmap.ReleaseAccess( pBitmapReadAcc ); + ::Bitmap::ReleaseAccess( pBitmapReadAcc ); if( pAlphaReadAcc ) aAlpha.ReleaseAccess( pAlphaReadAcc ); diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx index b6a20b89cfa6..b0d009c69358 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx @@ -1320,7 +1320,7 @@ uno::Reference< uno::XInterface > SAL_CALL ChartDocumentWrapper::createInstance( if( aTemplateWithService.first.is()) aTemplateWithService.first->resetStyles( xDiagram );//#i109371# xTemplate->changeDiagram( xDiagram ); - if( Application::GetSettings().GetMathLayoutRTL() ) + if( AllSettings::GetMathLayoutRTL() ) AxisHelper::setRTLAxisLayout( AxisHelper::getCoordinateSystemByIndex( xDiagram, 0 ) ); ThreeDHelper::setScheme( xDiagram, e3DScheme ); } diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx index b0d96fda4df2..f7f5fcc9ecb9 100644 --- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx +++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx @@ -349,7 +349,7 @@ bool ChartTypeDialogController::commitToModel( const ChartTypeParameter& rParame if( aTemplateWithService.first.is()) aTemplateWithService.first->resetStyles( xDiagram ); xTemplate->changeDiagram( xDiagram ); - if( Application::GetSettings().GetMathLayoutRTL() ) + if( AllSettings::GetMathLayoutRTL() ) AxisHelper::setRTLAxisLayout( AxisHelper::getCoordinateSystemByIndex( xDiagram, 0 ) ); if( rParameter.b3DLook ) ThreeDHelper::setScheme( xDiagram, rParameter.eThreeDLookScheme ); diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx index 23a3c290af07..2535c7506372 100644 --- a/chart2/source/model/main/ChartModel_Persistence.cxx +++ b/chart2/source/model/main/ChartModel_Persistence.cxx @@ -411,7 +411,7 @@ void ChartModel::insertDefaultChart() setFirstDiagram( xDiagram ); - bool bIsRTL = Application::GetSettings().GetMathLayoutRTL(); + bool bIsRTL = AllSettings::GetMathLayoutRTL(); //reverse x axis for rtl charts if( bIsRTL ) AxisHelper::setRTLAxisLayout( AxisHelper::getCoordinateSystemByIndex( xDiagram, 0 ) ); diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx index b3f1b587cd29..eb5c06bed5fc 100644 --- a/compilerplugins/clang/staticmethods.cxx +++ b/compilerplugins/clang/staticmethods.cxx @@ -61,6 +61,9 @@ std::string StaticMethods::getFilename(SourceLocation loc) return compiler.getSourceManager().getFilename(spellingLocation); } +static bool startsWith(const std::string& rStr, const char* pSubStr) { + return rStr.compare(0, strlen(pSubStr), pSubStr) == 0; +} bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl) { if (ignoreLocation(pCXXMethodDecl)) { @@ -109,6 +112,10 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl) if (aParentName == "osl::OGlobalTimer") { return true; } + // leave the TopLeft() method alone for consistency with the other "corner" methods + if (aParentName == "BitmapInfoAccess") { + return true; + } // can't change it because in debug mode it can't be static // sal/cpprt/operators_new_delete.cxx if (aParentName == "(anonymous namespace)::AllocatorTraits") { @@ -119,6 +126,13 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl) if (aParentName == "(anonymous namespace)::recently_used_item") { return true; } + // the unotools and svl config code stuff is doing weird stuff with a reference-counted statically allocated pImpl class + if (startsWith(getFilename(pCXXMethodDecl->getCanonicalDecl()->getLocStart()), SRCDIR "/include/unotools")) { + return true; + } + if (startsWith(getFilename(pCXXMethodDecl->getCanonicalDecl()->getLocStart()), SRCDIR "/include/svl")) { + return true; + } bVisitedThis = false; TraverseStmt(pCXXMethodDecl->getBody()); diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 798597ba6bdc..d1015e844e97 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -518,7 +518,7 @@ void ColorFieldControl::UpdateBitmap() break; } - mpBitmap->ReleaseAccess( pWriteAccess ); + Bitmap::ReleaseAccess( pWriteAccess ); } } @@ -563,7 +563,7 @@ void ColorFieldControl::ShowPosition( const Point& rPos, bool bUpdate ) { // mpBitmap always has a bit count of 24 => use of GetPixel(...) is safe maColor = pReadAccess->GetPixel( nY, nX ); - mpBitmap->ReleaseAccess( pReadAccess ); + Bitmap::ReleaseAccess( pReadAccess ); pReadAccess = NULL; } } @@ -836,7 +836,7 @@ void ColorSliderControl::UpdateBitmap() break; } - mpBitmap->ReleaseAccess( pWriteAccess ); + Bitmap::ReleaseAccess( pWriteAccess ); } } diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index c9ced2ca8033..eeac4d70eedf 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -491,7 +491,7 @@ IMPL_LINK( SvxGrfCropPage, CropHdl, const MetricField *, pField ) m_pRightMF->SetValue( m_pRightMF->Normalize( nRight ), eUnit ); } } - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) { m_pExampleWN->SetLeft(nRight); m_pExampleWN->SetRight(nLeft); diff --git a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx index 4ddd4dd99781..6ccd174df2dc 100644 --- a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx +++ b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx @@ -116,7 +116,7 @@ namespace } aAlpha.ReleaseAccess(pAlpha); - aContent.ReleaseAccess(pContent); + Bitmap::ReleaseAccess(pContent); aRetval = BitmapEx(aContent, aAlpha); diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index 8cfbc3cabe21..bd0b335f6af7 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -274,7 +274,7 @@ namespace pcr aText.append("..........."); // for Issue 69452 - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) { sal_Unicode cRTL_mark = 0x200F; aText.append( OUString(cRTL_mark) ); @@ -290,7 +290,7 @@ namespace pcr OUString sDisplayName = m_aFtTitle.GetText(); // for Issue 69452 - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) { sal_Unicode cRTL_mark = 0x200F; sDisplayName = comphelper::string::stripEnd(sDisplayName, cRTL_mark); diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx index 2b532d8ff6a9..06dcb7323516 100644 --- a/filter/source/flash/swfwriter1.cxx +++ b/filter/source/flash/swfwriter1.cxx @@ -779,7 +779,7 @@ void getBitmapData( const BitmapEx& aBmpEx, sal_uInt8*& tgadata, sal_uInt8*& tga aAlpha.ReleaseAccess( pAAcc ); } - aBmp.ReleaseAccess( pRAcc ); + Bitmap::ReleaseAccess( pRAcc ); } } } diff --git a/filter/source/graphicfilter/egif/egif.cxx b/filter/source/graphicfilter/egif/egif.cxx index 4cbbe2092955..621cf32fe43e 100644 --- a/filter/source/graphicfilter/egif/egif.cxx +++ b/filter/source/graphicfilter/egif/egif.cxx @@ -284,7 +284,7 @@ bool GIFWriter::CreateAccess( const BitmapEx& rBmpEx ) void GIFWriter::DestroyAccess() { - aAccBmp.ReleaseAccess( m_pAcc ); + Bitmap::ReleaseAccess( m_pAcc ); m_pAcc = NULL; } diff --git a/filter/source/graphicfilter/epbm/epbm.cxx b/filter/source/graphicfilter/epbm/epbm.cxx index b9b9bfa7d085..1e1118a76c61 100644 --- a/filter/source/graphicfilter/epbm/epbm.cxx +++ b/filter/source/graphicfilter/epbm/epbm.cxx @@ -99,7 +99,7 @@ bool PBMWriter::WritePBM( const Graphic& rGraphic, FilterConfigItem* pFilterConf if ( ImplWriteHeader() ) ImplWriteBody(); - aBmp.ReleaseAccess( mpAcc ); + Bitmap::ReleaseAccess( mpAcc ); } else mbStatus = false; diff --git a/filter/source/graphicfilter/epgm/epgm.cxx b/filter/source/graphicfilter/epgm/epgm.cxx index c27fab059bf0..71b33098678b 100644 --- a/filter/source/graphicfilter/epgm/epgm.cxx +++ b/filter/source/graphicfilter/epgm/epgm.cxx @@ -95,7 +95,7 @@ bool PGMWriter::WritePGM( const Graphic& rGraphic, FilterConfigItem* pFilterConf { ImplWriteBody(); } - aBmp.ReleaseAccess( mpAcc ); + Bitmap::ReleaseAccess( mpAcc ); } else mbStatus = false; diff --git a/filter/source/graphicfilter/epict/epict.cxx b/filter/source/graphicfilter/epict/epict.cxx index 93936b473a5c..e9a7568a9bbd 100644 --- a/filter/source/graphicfilter/epict/epict.cxx +++ b/filter/source/graphicfilter/epict/epict.cxx @@ -1266,7 +1266,7 @@ void PictWriter::WriteOpcode_BitsRect(const Point & rPoint, const Size & rSize, nWrittenBitmaps++; nActBitmapPercent = 0; if ( pAcc ) - aBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); } void PictWriter::WriteOpcode_EndOfFile() diff --git a/filter/source/graphicfilter/eppm/eppm.cxx b/filter/source/graphicfilter/eppm/eppm.cxx index 258f0721cd90..dfd48d3bc161 100644 --- a/filter/source/graphicfilter/eppm/eppm.cxx +++ b/filter/source/graphicfilter/eppm/eppm.cxx @@ -97,7 +97,7 @@ bool PPMWriter::WritePPM( const Graphic& rGraphic, FilterConfigItem* pFilterConf { ImplWriteBody(); } - aBmp.ReleaseAccess( mpAcc ); + Bitmap::ReleaseAccess( mpAcc ); } else mbStatus = false; diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx index 165352807024..edd7061a13d0 100644 --- a/filter/source/graphicfilter/eps/eps.cxx +++ b/filter/source/graphicfilter/eps/eps.cxx @@ -572,7 +572,7 @@ void PSWriter::ImplWriteProlog( const Graphic* pPreview ) nCount2--; } } - aTmpBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); ImplExecMode( PS_RET ); ImplWriteLine( "%%EndPreview" ); } @@ -2074,7 +2074,7 @@ void PSWriter::ImplBmp( Bitmap* pBitmap, Bitmap* pMaskBitmap, const Point & rPoi else ImplWriteLine( "pom" ); - aTileBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); nHeightLeft -= nHeight; if ( nHeightLeft ) { diff --git a/filter/source/graphicfilter/eras/eras.cxx b/filter/source/graphicfilter/eras/eras.cxx index 589f69802cbd..3950a40ea164 100644 --- a/filter/source/graphicfilter/eras/eras.cxx +++ b/filter/source/graphicfilter/eras/eras.cxx @@ -123,7 +123,7 @@ bool RASWriter::WriteRAS( const Graphic& rGraphic, FilterConfigItem* pFilterConf m_rOStm.SetEndian( nOStmOldModus ); - aBmp.ReleaseAccess( mpAcc ); + Bitmap::ReleaseAccess( mpAcc ); } else mbStatus = false; diff --git a/filter/source/graphicfilter/etiff/etiff.cxx b/filter/source/graphicfilter/etiff/etiff.cxx index a4b2768005fb..619187cdf4b6 100644 --- a/filter/source/graphicfilter/etiff/etiff.cxx +++ b/filter/source/graphicfilter/etiff/etiff.cxx @@ -224,7 +224,7 @@ bool TIFFWriter::WriteTIFF( const Graphic& rGraphic, FilterConfigItem* pFilterCo m_rOStm.WriteUInt16( mnTagCount ); m_rOStm.Seek( nCurPos ); - aBmp.ReleaseAccess( mpAcc ); + Bitmap::ReleaseAccess( mpAcc ); } else mbStatus = false; diff --git a/filter/source/graphicfilter/expm/expm.cxx b/filter/source/graphicfilter/expm/expm.cxx index b8e7a470302e..fca1788fa1a7 100644 --- a/filter/source/graphicfilter/expm/expm.cxx +++ b/filter/source/graphicfilter/expm/expm.cxx @@ -132,7 +132,7 @@ bool XPMWriter::WriteXPM( const Graphic& rGraphic, FilterConfigItem* pFilterConf m_rOStm.SetEndian(nOStmOldModus); - aBmp.ReleaseAccess( mpAcc ); + Bitmap::ReleaseAccess( mpAcc ); } else mbStatus = false; diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx index a7fcbe514313..8a6953a449d8 100644 --- a/filter/source/graphicfilter/icgm/bitmap.cxx +++ b/filter/source/graphicfilter/icgm/bitmap.cxx @@ -203,7 +203,7 @@ void CGMBitmap::ImplGetBitmap( CGMBitmapDescriptor& rDesc ) if ( rDesc.mpAcc ) { - rDesc.mpBitmap->ReleaseAccess( rDesc.mpAcc ); + Bitmap::ReleaseAccess( rDesc.mpAcc ); rDesc.mpAcc = NULL; } if ( rDesc.mbStatus == false ) diff --git a/filter/source/graphicfilter/icgm/bitmap.hxx b/filter/source/graphicfilter/icgm/bitmap.hxx index 3b6a80d2d7c1..732a3d41467d 100644 --- a/filter/source/graphicfilter/icgm/bitmap.hxx +++ b/filter/source/graphicfilter/icgm/bitmap.hxx @@ -66,7 +66,7 @@ class CGMBitmapDescriptor ~CGMBitmapDescriptor() { if ( mpAcc ) - mpBitmap->ReleaseAccess( mpAcc ); + ::Bitmap::ReleaseAccess( mpAcc ); delete mpBitmap; }; }; diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx index 93800c536f5b..b933574f4ed8 100644 --- a/filter/source/graphicfilter/ieps/ieps.cxx +++ b/filter/source/graphicfilter/ieps/ieps.cxx @@ -697,7 +697,7 @@ GraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* ) aGraphic = aMtf; bHasPreview = bRetValue = true; } - aBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); } } } diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx b/filter/source/graphicfilter/ipbm/ipbm.cxx index 95472946a4d0..6415066af397 100644 --- a/filter/source/graphicfilter/ipbm/ipbm.cxx +++ b/filter/source/graphicfilter/ipbm/ipbm.cxx @@ -131,7 +131,7 @@ bool PBMReader::ReadPBM(Graphic & rGraphic ) if ( mpAcc ) { - maBmp.ReleaseAccess( mpAcc ), mpAcc = NULL; + Bitmap::ReleaseAccess( mpAcc ), mpAcc = NULL; } if ( mbStatus ) rGraphic = maBmp; diff --git a/filter/source/graphicfilter/ipcd/ipcd.cxx b/filter/source/graphicfilter/ipcd/ipcd.cxx index 3bbdc8052ce7..d1b521749524 100644 --- a/filter/source/graphicfilter/ipcd/ipcd.cxx +++ b/filter/source/graphicfilter/ipcd/ipcd.cxx @@ -161,7 +161,7 @@ bool PCDReader::ReadPCD( Graphic & rGraphic, FilterConfigItem* pConfigItem ) ReadImage(); - aBmp.ReleaseAccess( mpAcc ), mpAcc = NULL; + Bitmap::ReleaseAccess( mpAcc ), mpAcc = NULL; rGraphic = aBmp; } return bStatus; diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx index ed4da5bab4b6..9ab206f67534 100644 --- a/filter/source/graphicfilter/ipict/ipict.cxx +++ b/filter/source/graphicfilter/ipict/ipict.cxx @@ -304,9 +304,9 @@ public: #define BITMAPERROR \ { \ if ( pAcc ) \ - aBitmap.ReleaseAccess( pAcc ); \ + Bitmap::ReleaseAccess( pAcc ); \ if ( pReadAcc ) \ - aBitmap.ReleaseAccess( pReadAcc ); \ + Bitmap::ReleaseAccess( pReadAcc ); \ return 0xffffffff; \ } @@ -1107,8 +1107,8 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo else BITMAPERROR; if ( pReadAcc ) - aBitmap.ReleaseAccess( pReadAcc ); - aBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pReadAcc ); + Bitmap::ReleaseAccess( pAcc ); rBitmap = aBitmap; return nDataSize; } diff --git a/filter/source/graphicfilter/ipsd/ipsd.cxx b/filter/source/graphicfilter/ipsd/ipsd.cxx index c3c767cf0e45..222f90d4a282 100644 --- a/filter/source/graphicfilter/ipsd/ipsd.cxx +++ b/filter/source/graphicfilter/ipsd/ipsd.cxx @@ -160,11 +160,11 @@ bool PSDReader::ReadPSD(Graphic & rGraphic ) else mbStatus = false; if ( mpWriteAcc ) - maBmp.ReleaseAccess( mpWriteAcc ); + Bitmap::ReleaseAccess( mpWriteAcc ); if ( mpReadAcc ) - maBmp.ReleaseAccess( mpReadAcc ); + Bitmap::ReleaseAccess( mpReadAcc ); if ( mpMaskWriteAcc ) - maMaskBmp.ReleaseAccess( mpMaskWriteAcc ); + Bitmap::ReleaseAccess( mpMaskWriteAcc ); return mbStatus; } diff --git a/filter/source/graphicfilter/itga/itga.cxx b/filter/source/graphicfilter/itga/itga.cxx index 29dc073303dc..1fd3df839eac 100644 --- a/filter/source/graphicfilter/itga/itga.cxx +++ b/filter/source/graphicfilter/itga/itga.cxx @@ -161,7 +161,7 @@ bool TGAReader::ReadTGA(Graphic & rGraphic) mbStatus = false; if ( mpAcc ) - aBitmap.ReleaseAccess ( mpAcc), mpAcc = NULL; + Bitmap::ReleaseAccess ( mpAcc), mpAcc = NULL; if ( mbStatus ) rGraphic = aBitmap; diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx index 7bc0f03908d9..c34bc0b8aec7 100644 --- a/filter/source/graphicfilter/itiff/itiff.cxx +++ b/filter/source/graphicfilter/itiff/itiff.cxx @@ -1356,7 +1356,7 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic ) if( pAcc ) { - aBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); if ( pMaskAcc ) { diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 8a0ecd53fc1e..b2f7093416d4 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -1205,7 +1205,7 @@ void ApplyRectangularGradientAsBitmap( const SvxMSDffManager& rManager, SvStream pAcc->SetPixel( nY, nX, BitmapColor( static_cast< sal_Int8 >( nRed ), static_cast< sal_Int8 >( nGreen ), static_cast< sal_Int8 >( nBlue ) ) ); } } - aBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); if ( nFix16Angle ) { diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 47e05d2a75fb..1a55e465cce6 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5592,7 +5592,7 @@ void PPTPortionObj::ApplyTo( SfxItemSet& rSet, SdrPowerPointImport& rManager, s } } } - aBmp.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); sal_uInt32 nC = ( aSize.Width() * aSize.Height() ); nRt /= nC; nGn /= nC; diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index 3e53fdf6f4bd..913a0a747678 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -426,7 +426,7 @@ void ImageProducer::ImplInitConsumer( const Graphic& rGraphic ) (*iter)->setColorModel( pBmpAcc->GetBitCount(),aRGBPal, nRMask, nGMask, nBMask, nAMask ); } - aBmp.ReleaseAccess( pBmpAcc ); + Bitmap::ReleaseAccess( pBmpAcc ); mbConsInit = true; } } @@ -534,8 +534,8 @@ void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic ) (*iter)->setPixelsByLongs( nStartX, nStartY, nPartWidth, nPartHeight, aData, 0UL, nPartWidth ); } - aBmp.ReleaseAccess( pBmpAcc ); - aMask.ReleaseAccess( pMskAcc ); + Bitmap::ReleaseAccess( pBmpAcc ); + Bitmap::ReleaseAccess( pMskAcc ); } } diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx index e3d35fac72ee..e96f436b705e 100644 --- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx +++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx @@ -420,7 +420,7 @@ throw( SAXException, RuntimeException, std::exception ) //fix for fdo#39370 /// check whether RTL interface or not - if(Application::GetSettings().GetLayoutRTL()){ + if(AllSettings::GetLayoutRTL()){ if (aCommandURL == ".uno:ParaLeftToRight") aCommandURL = ".uno:ParaRightToLeft"; else if (aCommandURL == ".uno:ParaRightToLeft") diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 89fef35ec1d4..7d71a66fdc0d 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -860,7 +860,7 @@ public: BitmapInfoAccess* AcquireInfoAccess(); BitmapReadAccess* AcquireReadAccess(); BitmapWriteAccess* AcquireWriteAccess(); - void ReleaseAccess( BitmapInfoAccess* pAccess ); + static void ReleaseAccess( BitmapInfoAccess* pAccess ); typedef vcl::ScopedBitmapAccess<BitmapReadAccess, Bitmap, &Bitmap::AcquireReadAccess> ScopedReadAccess; typedef vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap, &Bitmap::AcquireWriteAccess> ScopedWriteAccess; diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index 824e2c44f1ac..179ca334bf52 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -354,7 +354,7 @@ private: bool extractGroup(const OString &id, stringmap &rVec); bool extractModel(const OString &id, stringmap &rVec); bool extractBuffer(const OString &id, stringmap &rVec); - bool extractAdjustmentToMap(const OString &id, stringmap &rVec, std::vector<WidgetAdjustmentMap>& rAdjustmentMap); + static bool extractAdjustmentToMap(const OString &id, stringmap &rVec, std::vector<WidgetAdjustmentMap>& rAdjustmentMap); bool extractButtonImage(const OString &id, stringmap &rMap, bool bRadio); bool extractStock(const OString &id, stringmap &rMap); void extractMnemonicWidget(const OString &id, stringmap &rMap); diff --git a/include/vcl/debugevent.hxx b/include/vcl/debugevent.hxx index 868fd882567f..6dc3dbffc5ab 100644 --- a/include/vcl/debugevent.hxx +++ b/include/vcl/debugevent.hxx @@ -21,11 +21,11 @@ class VCL_DLLPUBLIC DebugEventInjector : Timer { sal_uInt32 mnEventsLeft; DebugEventInjector( sal_uInt32 nMaxEvents ); - vcl::Window *ChooseWindow(); - void InjectTextEvent(); - void InjectMenuEvent(); - void InjectEvent(); - void InjectKeyNavEdit(); + static vcl::Window *ChooseWindow(); + static void InjectTextEvent(); + static void InjectMenuEvent(); + static void InjectEvent(); + static void InjectKeyNavEdit(); virtual void Invoke() SAL_OVERRIDE; public: diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index b514296a9ec9..d2313c52266e 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -654,8 +654,8 @@ public: void SetLanguageTag( const LanguageTag& rLanguageTag ); const LanguageTag& GetLanguageTag() const; const LanguageTag& GetUILanguageTag() const; - bool GetLayoutRTL() const; // returns true if UI language requires right-to-left Text Layout - bool GetMathLayoutRTL() const; // returns true if UI language requires right-to-left Math Layout + static bool GetLayoutRTL(); // returns true if UI language requires right-to-left Text Layout + static bool GetMathLayoutRTL(); // returns true if UI language requires right-to-left Math Layout const LocaleDataWrapper& GetLocaleDataWrapper() const; const LocaleDataWrapper& GetUILocaleDataWrapper() const; const vcl::I18nHelper& GetLocaleI18nHelper() const; diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx index ffaa7525bdda..107850d5b472 100644 --- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx +++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx @@ -118,7 +118,7 @@ XFBGImage* LwpBackgroundStuff::GetFillPattern() BitmapWriteAccess* pWA = aBmp.AcquireWriteAccess(); sal_uInt8* pBuf = pWA->GetBuffer(); memcpy(pBuf, aPttnArray, 32); - aBmp.ReleaseAccess(pWA); + Bitmap::ReleaseAccess(pWA); // create XOBitmap object from bitmap object XOBitmap aXOBitmap( aBmp ); diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index e4366f2821ab..62c2beada3a2 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -395,7 +395,7 @@ void XclExpImgData::Save( XclExpStream& rStrm ) rStrm.EndRecord(); } - aBmp.ReleaseAccess( pAccess ); + Bitmap::ReleaseAccess( pAccess ); } } diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 747ff2e69321..a70b0697404c 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1448,7 +1448,7 @@ ScTextWnd::ScTextWnd( vcl::Window* pParent, ScTabViewShell* pViewSh ) { EnableRTL( false ); // EditEngine can't be used with VCL EnableRTL - bIsRTL = GetSettings().GetLayoutRTL(); + bIsRTL = AllSettings::GetLayoutRTL(); // always use application font, so a font with cjk chars can be installed vcl::Font aAppFont = GetFont(); @@ -1994,7 +1994,7 @@ void ScTextWnd::MakeDialogEditView() void ScTextWnd::ImplInitSettings() { - bIsRTL = GetSettings().GetLayoutRTL(); + bIsRTL = AllSettings::GetLayoutRTL(); const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); diff --git a/sc/source/ui/dbgui/csvcontrol.cxx b/sc/source/ui/dbgui/csvcontrol.cxx index 4b42c914f8fd..ac0b16c91122 100644 --- a/sc/source/ui/dbgui/csvcontrol.cxx +++ b/sc/source/ui/dbgui/csvcontrol.cxx @@ -36,7 +36,7 @@ ScCsvLayoutData::ScCsvLayoutData() : mnPosCursor( CSV_POS_INVALID ), mnColCursor( 0 ), mnNoRepaint( 0 ), - mbAppRTL( !!Application::GetSettings().GetLayoutRTL() ) + mbAppRTL( !!AllSettings::GetLayoutRTL() ) { } diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx index b062a3ebba04..ffd54c8547c8 100644 --- a/sc/source/ui/miscdlgs/autofmt.cxx +++ b/sc/source/ui/miscdlgs/autofmt.cxx @@ -505,7 +505,7 @@ void ScAutoFmtPreview::DoPaint( const Rectangle& /* rRect */ ) DrawRect( aRect ); Point aPos( (aWndSize.Width() - aPrvSize.Width()) / 2, (aWndSize.Height() - aPrvSize.Height()) / 2 ); - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) aPos.X() = -aPos.X(); DrawOutDev( aPos, aWndSize, Point(), aWndSize, aVD ); diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx index 7c5e01c15403..dcac934968eb 100644 --- a/sc/source/ui/pagedlg/scuitphfedit.cxx +++ b/sc/source/ui/pagedlg/scuitphfedit.cxx @@ -112,7 +112,7 @@ ScHFEditPage::ScHFEditPage( vcl::Window* pParent, m_pFtCustomHF->Show(); //swap left/right areas and their labels in RTL mode - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { vcl::Window *pLeft = get<vcl::Window>("labelFT_LEFT"); vcl::Window *pRight = get<vcl::Window>("labelFT_RIGHT"); diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx index dcb9b89927c9..af0bfe8fbe90 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx @@ -326,7 +326,7 @@ void CellAppearancePropertyPanel::NotifyItemUpdate( if(pBoxItem->GetBottom()) mbBottom = true; - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) mpCellBorderUpdater->UpdateCellBorder(mbTop, mbBottom, mbLeft, mbRight, maIMGCellBorder, mbVer, mbHor); else mpCellBorderUpdater->UpdateCellBorder(mbTop, mbBottom, mbRight, mbLeft, maIMGCellBorder, mbVer, mbHor); @@ -369,7 +369,7 @@ void CellAppearancePropertyPanel::NotifyItemUpdate( if(!pBoxInfoItem->IsValid( SvxBoxInfoItemValidFlags::BOTTOM ) || mbBottom) bBottom = true; - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) mpCellBorderUpdater->UpdateCellBorder(bTop, bBottom, bLeft, bRight, maIMGCellBorder, mbVer, mbHor); else mpCellBorderUpdater->UpdateCellBorder(bTop, bBottom, bRight, bLeft, maIMGCellBorder, mbVer, mbHor); diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.cxx b/sc/source/ui/sidebar/CellBorderStyleControl.cxx index 5fad23d1f1cb..08f7417bea08 100644 --- a/sc/source/ui/sidebar/CellBorderStyleControl.cxx +++ b/sc/source/ui/sidebar/CellBorderStyleControl.cxx @@ -216,7 +216,7 @@ IMPL_LINK(CellBorderStyleControl, TB2SelectHdl, ToolBox *, pToolBox) break; case TBI_BORDER2_RIGHT: - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) { pRight = &theDefLine; nValidFlags |= FRM_VALID_RIGHT; diff --git a/sc/source/ui/sidebar/CellBorderUpdater.cxx b/sc/source/ui/sidebar/CellBorderUpdater.cxx index 98f0e2655aa7..83f1ee8a3d6f 100644 --- a/sc/source/ui/sidebar/CellBorderUpdater.cxx +++ b/sc/source/ui/sidebar/CellBorderUpdater.cxx @@ -104,9 +104,9 @@ void CellBorderUpdater::UpdateCellBorder(bool bTop, bool bBot, bool bLeft, bool } } - aBmp.ReleaseAccess( pBmpAcc ); + Bitmap::ReleaseAccess( pBmpAcc ); if( pMskAcc ) - aMsk.ReleaseAccess( pMskAcc ); + Bitmap::ReleaseAccess( pMskAcc ); if( aBmpEx.IsAlpha() ) aBmpEx = BitmapEx( aBmp, AlphaMask( aMsk ) ); diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 5c301f0cce59..7b1959f5f49b 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -1095,7 +1095,7 @@ void ScGridWindow::LaunchDataSelectMenu( SCCOL nCol, SCROW nRow, bool bDataSelec ScFilterBoxMode eFilterMode = bDataSelect ? SC_FILTERBOX_DATASELECT : SC_FILTERBOX_FILTER; mpFilterBox.reset(new ScFilterListBox(mpFilterFloat.get(), this, nCol, nRow, eFilterMode)); // Fix for bug fdo#44925 - if (Application::GetSettings().GetLayoutRTL() != bLayoutRTL) + if (AllSettings::GetLayoutRTL() != bLayoutRTL) mpFilterBox->EnableMirroring(); nSizeX += 1; diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index eb5a3364a03d..21694cbf3c8e 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -106,7 +106,7 @@ void ScTabView::Init() is needed to draw the 3D effect correctly. The base TabBar implementes mirroring independent from the GUI direction. Have to set RTL mode explicitly because the parent frame window is already RTL disabled. */ - pTabControl->EnableRTL( Application::GetSettings().GetLayoutRTL() ); + pTabControl->EnableRTL( AllSettings::GetLayoutRTL() ); InitScrollBar( aHScrollLeft, MAXCOL+1 ); InitScrollBar( aHScrollRight, MAXCOL+1 ); diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index 5cef329d5f5c..24ce6a43e0e5 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -300,7 +300,7 @@ void AnnotationWindow::InitControls() // window control for author and date mpMeta = new MultiLineEdit(this,0); mpMeta->SetReadOnly(); - mpMeta->SetRightToLeft(Application::GetSettings().GetLayoutRTL()); + mpMeta->SetRightToLeft(AllSettings::GetLayoutRTL()); mpMeta->AlwaysDisableInput(true); mpMeta->SetCallHandlersOnInputDisabled(true); diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx index 2755789683f2..71d6ed9dd558 100644 --- a/sd/source/ui/dlg/vectdlg.cxx +++ b/sd/source/ui/dlg/vectdlg.cxx @@ -187,7 +187,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf ) AddTile( pRAcc, aNewMtf, nCountX * nTileX, nCountY * nTileY, nRestX, nRestY ); } - aTmp.ReleaseAccess( pRAcc ); + Bitmap::ReleaseAccess( pRAcc ); for( size_t n = 0, nCount = rMtf.GetActionSize(); n < nCount; n++ ) aNewMtf.AddAction( rMtf.GetAction( n )->Clone() ); diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 4879b51bd339..314d6b1339e5 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -827,7 +827,7 @@ bool SlideshowImpl::startPreview( else if( mpViewShell ) { Rectangle aContentRect (mpViewShell->GetViewShellBase().getClientRectangle()); - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) { aContentRect.Left() = aContentRect.Right(); aContentRect.Right() += aContentRect.Right(); diff --git a/sd/source/ui/slidesorter/view/SlsFramePainter.cxx b/sd/source/ui/slidesorter/view/SlsFramePainter.cxx index 6a737066f120..07e9d2865e06 100644 --- a/sd/source/ui/slidesorter/view/SlsFramePainter.cxx +++ b/sd/source/ui/slidesorter/view/SlsFramePainter.cxx @@ -83,7 +83,7 @@ void FramePainter::AdaptColor ( if (pReadAccess == NULL) return; const Color aSourceColor = pReadAccess->GetColor(0,0); - maCenter.maBitmap.GetBitmap().ReleaseAccess(pReadAccess); + Bitmap::ReleaseAccess(pReadAccess); // Erase the center bitmap. if (bEraseCenter) diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 564b9265eab2..8e9f65b1a5c7 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -728,7 +728,7 @@ const Bitmap CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle, } } - aPreviewBmp.ReleaseAccess( pAccess ); + Bitmap::ReleaseAccess( pAccess ); } return aPreviewBmp; diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx index 4b3bf639c623..d0d22bfc6250 100644 --- a/sdext/source/presenter/PresenterHelpView.cxx +++ b/sdext/source/presenter/PresenterHelpView.cxx @@ -315,7 +315,7 @@ void PresenterHelpView::Paint (const awt::Rectangle& rUpdateBox) sal_Int32 RightX2 = aWindowBox.Width - gnHorizontalGap; /* check whether RTL interface or not then replace the windowbox position */ - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) { LeftX1 = aWindowBox.Width/2 + gnHorizontalGap; LeftX2 = aWindowBox.Width - gnHorizontalGap; @@ -581,7 +581,7 @@ double LineDescriptorList::Paint( { double nX; /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) { nX = rBBox.X1; if ( ! bFlushLeft) diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx index 079b89a4b954..26191735870c 100644 --- a/sdext/source/presenter/PresenterNotesView.cxx +++ b/sdext/source/presenter/PresenterNotesView.cxx @@ -456,7 +456,7 @@ void PresenterNotesView::Layout (void) if (nHeight > nTextBoxHeight) { bShowVerticalScrollbar = true; - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) aNewTextBoundingBox.X2 -= mpScrollBar->GetSize(); else aNewTextBoundingBox.X1 += mpScrollBar->GetSize(); @@ -467,7 +467,7 @@ void PresenterNotesView::Layout (void) { OSL_ASSERT(false); } - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) { mpScrollBar->SetVisible(bShowVerticalScrollbar); mpScrollBar->SetPosSize( diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx index 4bf2d73be048..098e85dfc972 100644 --- a/sdext/source/presenter/PresenterSlideSorter.cxx +++ b/sdext/source/presenter/PresenterSlideSorter.cxx @@ -512,7 +512,7 @@ void SAL_CALL PresenterSlideSorter::mousePressed (const css::awt::MouseEvent& rE { css::awt::MouseEvent rTemp =rEvent; /// check whether RTL interface or not - if(Application::GetSettings().GetLayoutRTL()){ + if(AllSettings::GetLayoutRTL()){ awt::Rectangle aBox = mxWindow->getPosSize(); rTemp.X=aBox.Width-rEvent.X; } @@ -525,7 +525,7 @@ void SAL_CALL PresenterSlideSorter::mouseReleased (const css::awt::MouseEvent& r { css::awt::MouseEvent rTemp =rEvent; /// check whether RTL interface or not - if(Application::GetSettings().GetLayoutRTL()){ + if(AllSettings::GetLayoutRTL()){ awt::Rectangle aBox = mxWindow->getPosSize(); rTemp.X=aBox.Width-rEvent.X; } @@ -575,7 +575,7 @@ void SAL_CALL PresenterSlideSorter::mouseMoved (const css::awt::MouseEvent& rEve { css::awt::MouseEvent rTemp =rEvent; /// check whether RTL interface or not - if(Application::GetSettings().GetLayoutRTL()){ + if(AllSettings::GetLayoutRTL()){ awt::Rectangle aBox = mxWindow->getPosSize(); rTemp.X=aBox.Width-rEvent.X; } @@ -757,7 +757,7 @@ geometry::RealRectangle2D PresenterSlideSorter::PlaceScrollBars ( { if (bIsScrollBarNeeded) { - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) { mpVerticalScrollBar->SetPosSize(geometry::RealRectangle2D( rUpperBox.X1, @@ -897,7 +897,7 @@ void PresenterSlideSorter::PaintPreview ( } Reference<rendering::XBitmap> xPreview (GetPreview(nSlideIndex)); - bool isRTL = Application::GetSettings().GetLayoutRTL(); + bool isRTL = AllSettings::GetLayoutRTL(); const geometry::RealPoint2D aTopLeft ( mpLayout->GetWindowPosition( @@ -1269,7 +1269,7 @@ bool PresenterSlideSorter::Layout::IsScrollBarNeeded (const sal_Int32 nSlideCoun geometry::RealPoint2D PresenterSlideSorter::Layout::GetLocalPosition( const geometry::RealPoint2D& rWindowPoint) const { - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) { return css::geometry::RealPoint2D( -rWindowPoint.X + maBoundingBox.X2 + mnHorizontalOffset, @@ -1286,7 +1286,7 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetLocalPosition( geometry::RealPoint2D PresenterSlideSorter::Layout::GetWindowPosition( const geometry::RealPoint2D& rLocalPoint) const { - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) { return css::geometry::RealPoint2D( -rLocalPoint.X + mnHorizontalOffset + maBoundingBox.X2, @@ -1384,7 +1384,7 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetPoint ( awt::Rectangle PresenterSlideSorter::Layout::GetBoundingBox (const sal_Int32 nSlideIndex) const { - bool isRTL = Application::GetSettings().GetLayoutRTL(); + bool isRTL = AllSettings::GetLayoutRTL(); const geometry::RealPoint2D aWindowPosition(GetWindowPosition(GetPoint(nSlideIndex, isRTL?1:-1, -1))); return PresenterGeometryHelper::ConvertRectangle( geometry::RealRectangle2D( diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index 442c89872b14..05d88a6dc2ea 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -793,7 +793,7 @@ void PresenterToolBar::Layout ( /* push front or back ? ... */ /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()){ + if(!AllSettings::GetLayoutRTL()){ for (iPart=maElementContainer.begin(), nIndex=0; iPart!=iEnd; ++iPart,++nIndex) { geometry::RealRectangle2D aBoundingBox( @@ -894,7 +894,7 @@ void PresenterToolBar::LayoutPart ( ElementContainerPart::const_iterator iBegin (rpPart->begin()); /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()){ + if(!AllSettings::GetLayoutRTL()){ for (iElement=rpPart->begin(); iElement!=iEnd; ++iElement) { if (iElement->get() == NULL) @@ -1025,7 +1025,7 @@ void PresenterToolBar::CheckMouseOver ( const bool bMouseDown) { css::awt::MouseEvent rTemp =rEvent; - if(Application::GetSettings().GetLayoutRTL()){ + if(AllSettings::GetLayoutRTL()){ awt::Rectangle aWindowBox = mxWindow->getPosSize(); rTemp.X=aWindowBox.Width-rTemp.X; } @@ -1582,7 +1582,7 @@ void Button::PaintIcon ( if (xBitmap.is()) { /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()){ + if(!AllSettings::GetLayoutRTL()){ const sal_Int32 nX (maLocation.X + (maSize.Width-xBitmap->getSize().Width) / 2); const sal_Int32 nY (maLocation.Y diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx index 520b160845b4..95406faee57b 100644 --- a/sdext/source/presenter/PresenterWindowManager.cxx +++ b/sdext/source/presenter/PresenterWindowManager.cxx @@ -669,7 +669,7 @@ void PresenterWindowManager::LayoutStandardMode (void) nSlidePreviewTop = (aBox.Height - aCurrentSlideOuterBox.Height) / 2; double Temp=nGap; /// check whether RTL interface or not - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) Temp=aBox.Width - aCurrentSlideOuterBox.Width - nGap; SetPanePosSizeAbsolute ( PresenterPaneFactory::msCurrentSlidePreviewPaneURL, @@ -690,7 +690,7 @@ void PresenterWindowManager::LayoutStandardMode (void) PresenterPaneFactory::msNextSlidePreviewPaneURL)); double Temp=aBox.Width - aNextSlideOuterBox.Width - nGap; /// check whether RTL interface or not - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) Temp=nGap; SetPanePosSizeAbsolute ( PresenterPaneFactory::msNextSlidePreviewPaneURL, @@ -731,7 +731,7 @@ void PresenterWindowManager::LayoutNotesMode (void) - aToolBarBox.Y2 + aToolBarBox.Y1 - aNotesViewOuterSize.Height) / 2; /// check whether RTL interface or not double Temp=aBox.Width - aNotesViewOuterSize.Width - nGap; - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) Temp=nGap; SetPanePosSizeAbsolute ( PresenterPaneFactory::msNotesPaneURL, @@ -753,7 +753,7 @@ void PresenterWindowManager::LayoutNotesMode (void) PresenterPaneFactory::msCurrentSlidePreviewPaneURL)); /// check whether RTL interface or not double Temp=nGap; - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) Temp=aBox.Width - aCurrentSlideOuterBox.Width - nGap; SetPanePosSizeAbsolute ( PresenterPaneFactory::msCurrentSlidePreviewPaneURL, @@ -774,7 +774,7 @@ void PresenterWindowManager::LayoutNotesMode (void) PresenterPaneFactory::msNextSlidePreviewPaneURL)); /// check whether RTL interface or not double Temp=nGap; - if(Application::GetSettings().GetLayoutRTL()) + if(AllSettings::GetLayoutRTL()) Temp=aBox.Width - aNextSlideOuterBox.Width - nGap; SetPanePosSizeAbsolute ( PresenterPaneFactory::msNextSlidePreviewPaneURL, diff --git a/svl/source/config/itemholder2.hxx b/svl/source/config/itemholder2.hxx index b2b304527647..a4f837270bd1 100644 --- a/svl/source/config/itemholder2.hxx +++ b/svl/source/config/itemholder2.hxx @@ -50,8 +50,8 @@ class ItemHolder2 : private ItemHolderMutexBase void impl_addItem(EItem eItem); void impl_releaseAllItems(); - void impl_newItem(TItemInfo& rItem); - void impl_deleteItem(TItemInfo& rItem); + static void impl_newItem(TItemInfo& rItem); + static void impl_deleteItem(TItemInfo& rItem); }; #endif // INCLUDED_SVTOOLS_ITEMHOLDER2_HXX_ diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx index 932ffda73cba..28ba70b60294 100644 --- a/svl/source/fsstor/fsstorage.hxx +++ b/svl/source/fsstor/fsstorage.hxx @@ -57,7 +57,7 @@ public: ::ucbhelper::Content* GetContent(); - void CopyStreamToSubStream( const OUString& aSourceURL, + static void CopyStreamToSubStream( const OUString& aSourceURL, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest, const OUString& aNewEntryName ); diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index 86b26d76c5f4..b5fe90a5c708 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -274,9 +274,9 @@ bool createUrlRecord( bool bName, // only needed to support empty user names const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler ) throw(::com::sun::star::uno::RuntimeException); - OUString GetDefaultMasterPassword(); + static OUString GetDefaultMasterPassword(); - OUString RequestPasswordFromUser( + static OUString RequestPasswordFromUser( ::com::sun::star::task::PasswordRequestMode aRMode, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& xHandler ); @@ -293,10 +293,10 @@ bool createUrlRecord( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) throw(::com::sun::star::uno::RuntimeException); - ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) + static ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); - OUString EncodePasswords(const std::vector< OUString >& lines, const OUString& aMasterPassword ) + static OUString EncodePasswords(const std::vector< OUString >& lines, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); public: diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 4d531c931a58..3987cbb2384e 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -128,7 +128,7 @@ class INetURLHistory_Impl: private boost::noncopyable return (sal_uInt16)(INETHIST_SIZE_LIMIT); } - sal_uInt32 crc32 (OUString const & rData) const + static sal_uInt32 crc32 (OUString const & rData) { return rtl_crc32 (0, rData.getStr(), rData.getLength() * sizeof(sal_Unicode)); } diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx index 1f03fb9e15ff..c9f260a37c42 100644 --- a/svl/source/numbers/zforfind.hxx +++ b/svl/source/numbers/zforfind.hxx @@ -192,12 +192,12 @@ private: // decimal separator has to be '.' // If bForceFraction==true the string is taken to be the fractional part // of 0.1234 without the leading 0. (thus being just "1234"). - double StringToDouble( const OUString& rStr, - bool bForceFraction = false ); + static double StringToDouble( const OUString& rStr, + bool bForceFraction = false ); // Next number/string symbol - bool NextNumberStringSymbol( const sal_Unicode*& pStr, - OUString& rSymbol ); + static bool NextNumberStringSymbol( const sal_Unicode*& pStr, + OUString& rSymbol ); // Concatenate ,000,23 blocks // in input to 000123 @@ -310,8 +310,8 @@ private: sal_Int32& nPos ); // Get sign of exponent and advance string position - short GetESign( const OUString& rString, - sal_Int32& nPos ); + static short GetESign( const OUString& rString, + sal_Int32& nPos ); // Get next number as array offset inline bool GetNextNumber( sal_uInt16& i, diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index ad9345f3dd70..45807d372c26 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -2287,12 +2287,12 @@ void TabBar::SetMirrored(bool bMirrored) void TabBar::SetEffectiveRTL( bool bRTL ) { - SetMirrored( bRTL != Application::GetSettings().GetLayoutRTL() ); + SetMirrored( bRTL != AllSettings::GetLayoutRTL() ); } bool TabBar::IsEffectiveRTL() const { - return IsMirrored() != Application::GetSettings().GetLayoutRTL(); + return IsMirrored() != AllSettings::GetLayoutRTL(); } void TabBar::SetMaxPageWidth( long nMaxWidth ) diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index 55b09cc170f8..a8daae01f1b0 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -613,11 +613,11 @@ bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAttrib } } - aOutBmp.ReleaseAccess( pWriteAccess ); + Bitmap::ReleaseAccess( pWriteAccess ); bRet = true; } - aBmp.ReleaseAccess( pReadAccess ); + Bitmap::ReleaseAccess( pReadAccess ); } // mask processing @@ -846,12 +846,12 @@ bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAttrib pMapLY.reset(); if( pMAcc ) - aMsk.ReleaseAccess( pMAcc ); + Bitmap::ReleaseAccess( pMAcc ); bRet = true; } - aOutMsk.ReleaseAccess( pWriteAccess ); + Bitmap::ReleaseAccess( pWriteAccess ); } if( bRet ) diff --git a/svtools/source/graphic/transformer.cxx b/svtools/source/graphic/transformer.cxx index 06c259558d65..9be39c0beba8 100644 --- a/svtools/source/graphic/transformer.cxx +++ b/svtools/source/graphic/transformer.cxx @@ -70,7 +70,7 @@ void setAlpha( Bitmap& rBitmap, AlphaMask& rAlpha, sal_uInt8 cIndexFrom, sal_Int } } } - rBitmap.ReleaseAccess( pReadAccess ); + Bitmap::ReleaseAccess( pReadAccess ); rAlpha.ReleaseAccess( pWriteAccess ); } diff --git a/svtools/source/hatchwindow/ipwin.cxx b/svtools/source/hatchwindow/ipwin.cxx index d347ad41e645..0d55780c2a6e 100644 --- a/svtools/source/hatchwindow/ipwin.cxx +++ b/svtools/source/hatchwindow/ipwin.cxx @@ -211,7 +211,7 @@ Point SvResizeHelper::GetTrackPosPixel( const Rectangle & rRect ) const Point aBR = aOuter.BottomRight(); Point aTR = aOuter.TopRight(); Point aBL = aOuter.BottomLeft(); - bool bRTL = Application::GetSettings().GetLayoutRTL(); + bool bRTL = AllSettings::GetLayoutRTL(); switch( nGrab ) { case 0: @@ -276,7 +276,7 @@ Rectangle SvResizeHelper::GetTrackRectPixel( const Point & rTrackPos ) const Point aDiff = rTrackPos - aSelPos; aTrackRect = aOuter; Point aBR = aOuter.BottomRight(); - bool bRTL = Application::GetSettings().GetLayoutRTL(); + bool bRTL = AllSettings::GetLayoutRTL(); switch( nGrab ) { case 0: diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx index 60d0bae1bb0c..0498e6acac62 100644 --- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx +++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx @@ -484,7 +484,7 @@ uno::Reference<XAccessible> SvxPixelCtlAccessible::CreateChild (long nIndex,Poin { long nX = mPoint.X(); long nY = mPoint.Y(); - if( Application::GetSettings().GetLayoutRTL()) + if( AllSettings::GetLayoutRTL()) { nX = (sal_uInt16) mrPixelCtl.GetWidth() - 1 - nX; } diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 6606c6491a39..075cc89b29ae 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -550,7 +550,7 @@ Point SvxRectCtl::SetActualRPWithoutInvalidate( RECT_POINT eNewRP ) aPtNew.Y() = aPtMM.Y(); // fdo#74751 this fix reverse base point on RTL UI. - bool bRTL = Application::GetSettings().GetLayoutRTL(); + bool bRTL = AllSettings::GetLayoutRTL(); eNewRP = GetRPFromPoint( aPtNew, bRTL ); eDefRP = eNewRP; @@ -1087,7 +1087,7 @@ void SvxPixelCtl::SetXBitmap( const BitmapEx& rBitmapEx ) } } - aBitmap.ReleaseAccess(pRead); + Bitmap::ReleaseAccess(pRead); } } diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 6afcf3d33372..2ac5aaeb7234 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -983,7 +983,7 @@ void SvxRuler::UpdatePage() long lPos = 0; Point aOwnPos = GetPosPixel(); Point aEdtWinPos = pEditWin->GetPosPixel(); - if( Application::GetSettings().GetLayoutRTL() && bHorz ) + if( AllSettings::GetLayoutRTL() && bHorz ) { //#i73321# in RTL the window and the ruler is not mirrored but the // influence of the vertical ruler is inverted diff --git a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx index 0ffbee0ec289..21cf0812545c 100644 --- a/svx/source/sdr/primitive2d/sdrprimitivetools.cxx +++ b/svx/source/sdr/primitive2d/sdrprimitivetools.cxx @@ -64,8 +64,8 @@ namespace drawinglayer pWMask->SetPixel(2, 0, aMaskColor); pWMask->SetPixel(2, 2, aMaskColor); - aContent.ReleaseAccess(pWContent); - aMask.ReleaseAccess(pWMask); + Bitmap::ReleaseAccess(pWContent); + Bitmap::ReleaseAccess(pWMask); // create and exchange at aRetVal delete aRetVal.set(new BitmapEx(aContent, aMask)); diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 543dda1702dd..f0e2ed04a60e 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -298,7 +298,7 @@ sal_uInt16 BulletsTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLe sal_Unicode cChar = aFmt.GetBulletChar(); //const vcl::Font* pFont = aFmt.GetBulletFont(); //sal_uInt16 nLength = 0; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); for(sal_uInt16 i = 0; i < nLength; i++) @@ -354,7 +354,7 @@ bool BulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uI sal_Unicode cChar = aFmt.GetBulletChar(); const vcl::Font* pFont = aFmt.GetBulletFont(); //sal_uInt16 nLength = 0; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); @@ -396,7 +396,7 @@ bool BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1 sal_Unicode cChar; //sal_uInt16 nLength = 0; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); @@ -482,7 +482,7 @@ sal_Unicode BulletsTypeMgr::GetBulChar(sal_uInt16 nIndex) else cChar = pActualBullets[nIndex]->cBulletChar; - /*if( Application::GetSettings().GetLayoutRTL() ) + /*if( AllSettings::GetLayoutRTL() ) { nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode); @@ -1761,7 +1761,7 @@ bool OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1 sal_Unicode cChar = 0; if( !pLevelSettings->sBulletChar.isEmpty() ) cChar = pLevelSettings->sBulletChar[0]; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { if( 0 == i && cChar == BulletsTypeMgr::aDynamicBulletTypes[5] ) cChar = BulletsTypeMgr::aDynamicRTLBulletTypes[5]; diff --git a/svx/source/sidebar/possize/SidebarDialControl.cxx b/svx/source/sidebar/possize/SidebarDialControl.cxx index b4d0bee4703c..2f422a9b5166 100644 --- a/svx/source/sidebar/possize/SidebarDialControl.cxx +++ b/svx/source/sidebar/possize/SidebarDialControl.cxx @@ -69,7 +69,7 @@ void SidebarDialControl::HandleMouseEvent( const Point& rPos, bool bInitial ) if( bInitial ) // round to entire 15 degrees nAngle = ((nAngle + 750) / 1500) * 1500; - if (Application::GetSettings().GetLayoutRTL()) + if (AllSettings::GetLayoutRTL()) nAngle = 18000 - nAngle; SetRotation( nAngle, true ); } diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 32eb75aebca3..a4c62ebda45e 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -375,7 +375,7 @@ bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol) if(pAccess) { - aBitmap.ReleaseAccess(pAccess); + Bitmap::ReleaseAccess(pAccess); } break; diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index a3826c74b85a..238166b932a8 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -372,10 +372,10 @@ SdrObject* ImpCreateShadowObjectClone(const SdrObject& rOriginal, const SfxItemS } } - aDestBitmap.ReleaseAccess(pWriteAccess); + Bitmap::ReleaseAccess(pWriteAccess); } - aBitmap.ReleaseAccess(pReadAccess); + Bitmap::ReleaseAccess(pReadAccess); if(aBitmapEx.IsTransparent()) { diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx index 27f9de9fedb2..13029b6f1b24 100644 --- a/svx/source/tbxctrls/tbxcolorupdate.cxx +++ b/svx/source/tbxctrls/tbxcolorupdate.cxx @@ -176,10 +176,10 @@ namespace svx pMskAcc->DrawRect(maUpdRect); } - aBmp.ReleaseAccess(pBmpAcc); + Bitmap::ReleaseAccess(pBmpAcc); if (pMskAcc) - aMsk.ReleaseAccess(pMskAcc); + Bitmap::ReleaseAccess(pMskAcc); if (aBmpEx.IsAlpha()) aBmpEx = BitmapEx(aBmp, AlphaMask(aMsk)); diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index bc3ee582fd24..ed7682953c86 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -453,8 +453,8 @@ Bitmap XOutBitmap::DetectEdges( const Bitmap& rBmp, const sal_uInt8 cThreshold ) bRet = true; } - aWorkBmp.ReleaseAccess( pReadAcc ); - aDstBmp.ReleaseAccess( pWriteAcc ); + Bitmap::ReleaseAccess( pReadAcc ); + Bitmap::ReleaseAccess( pWriteAcc ); if( bRet ) aRetBmp = aDstBmp; diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index e977f02f2283..0518bdddf0e6 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -240,7 +240,7 @@ Bitmap createHistorical8x8FromArray(const sal_uInt16* pArray, Color aColorPix, C } } - aBitmap.ReleaseAccess(pContent); + Bitmap::ReleaseAccess(pContent); } return aBitmap; diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index c9360f447fd5..bf54c2d56428 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -2007,7 +2007,7 @@ DECLARE_OOXMLIMPORT_TEST(testPictureWithSchemeColor, "picture-with-schemecolor.d CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), RGB_COLORDATA( 0xb1, 0xc8, 0xdd )); aColor = pAccess->GetPixel(130, 260); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), RGB_COLORDATA( 0xb1, 0xc8, 0xdd )); - aBitmap.ReleaseAccess(pAccess); + Bitmap::ReleaseAccess(pAccess); } DECLARE_OOXMLIMPORT_TEST(testFdo69656, "Table_cell_auto_width_fdo69656.docx") @@ -2228,7 +2228,7 @@ DECLARE_OOXMLIMPORT_TEST(testMsoBrightnessContrast, "msobrightnesscontrast.docx" CPPUNIT_ASSERT_EQUAL(320L, pAccess->Height()); Color aColor(pAccess->GetPixel(30, 20)); CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), RGB_COLORDATA( 0xce, 0xce, 0xce )); - aBitmap.ReleaseAccess(pAccess); + Bitmap::ReleaseAccess(pAccess); } DECLARE_OOXMLIMPORT_TEST(testChartSize, "chart-size.docx") diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 16e6d44eab99..5de242999117 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -3888,7 +3888,7 @@ void SwPageFrm::PaintDecorators( ) const ( gProp.pSGlobalShell->IsShowHeaderFooterSeparator( Header ) || gProp.pSGlobalShell->IsShowHeaderFooterSeparator( Footer ) ) ) { - bool bRtl = Application::GetSettings().GetLayoutRTL(); + bool bRtl = AllSettings::GetLayoutRTL(); const SwRect& rVisArea = gProp.pSGlobalShell->VisArea(); long nXOff = std::min( aBodyRect.Right(), rVisArea.Right() ); if ( bRtl ) diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx index 722c5dce4faf..fc4468e05b8d 100644 --- a/sw/source/core/view/pagepreviewlayout.cxx +++ b/sw/source/core/view/pagepreviewlayout.cxx @@ -558,7 +558,7 @@ void SwPagePreviewLayout::_CalcPreviewPages() // calculate initial paint offset Point aInitialPaintOffset; /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()){ + if(!AllSettings::GetLayoutRTL()){ if ( maPaintStartPageOffset != Point( -1, -1 ) ) aInitialPaintOffset = Point(0,0) - maPaintStartPageOffset; else @@ -616,7 +616,7 @@ void SwPagePreviewLayout::_CalcPreviewPages() // first page in 2nd column // --> continue with increased paint offset and next column /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) aCurrPaintOffset.X() += mnColWidth; else aCurrPaintOffset.X() -= mnColWidth; ++nCurrCol; @@ -642,7 +642,7 @@ void SwPagePreviewLayout::_CalcPreviewPages() pPage = static_cast<const SwPageFrm*>(pPage->GetNext()); /// check whether RTL interface or not - if(!Application::GetSettings().GetLayoutRTL()) + if(!AllSettings::GetLayoutRTL()) aCurrPaintOffset.X() += mnColWidth; else aCurrPaintOffset.X() -= mnColWidth; ++nCurrCol; diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index efe4b02b7917..8810fb934890 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -4793,7 +4793,7 @@ void WW8AttributeOutput::ParaAdjust( const SvxAdjustItem& rAdjust ) nDirection = rItem.GetValue(); } if ( ( nDirection == FRMDIR_HORI_RIGHT_TOP ) || - ( nDirection == FRMDIR_ENVIRONMENT && Application::GetSettings().GetLayoutRTL() ) ) + ( nDirection == FRMDIR_ENVIRONMENT && AllSettings::GetLayoutRTL() ) ) { bBiDiSwap = true; } diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx index 763208a5a3d3..8a8c02aa56f0 100644 --- a/sw/source/ui/table/tautofmt.cxx +++ b/sw/source/ui/table/tautofmt.cxx @@ -530,7 +530,7 @@ void AutoFmtPreview::Resize() void AutoFmtPreview::DetectRTL(SwWrtShell* pWrtShell) { if (!pWrtShell->IsCrsrInTbl()) // We haven't created the table yet - mbRTL = Application::GetSettings().GetLayoutRTL(); + mbRTL = AllSettings::GetLayoutRTL(); else mbRTL = pWrtShell->IsTableRightToLeft(); } diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index de95e174ea68..43dc81dac543 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -215,7 +215,7 @@ void SwHeaderFooterWin::SetOffset( Point aOffset, long nXLineStart, long nXLineE Point aBoxPos( aOffset.X() - aBoxSize.Width() - BOX_DISTANCE, aOffset.Y() - nYFooterOff ); - if ( Application::GetSettings().GetLayoutRTL() ) + if ( AllSettings::GetLayoutRTL() ) { aBoxPos.setX( aOffset.X() + BOX_DISTANCE ); } diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx index b28429028b1e..42027fbea9ed 100644 --- a/sw/source/uibase/docvw/PageBreakWin.cxx +++ b/sw/source/uibase/docvw/PageBreakWin.cxx @@ -146,7 +146,7 @@ void SwPageBreakWin::Paint( const Rectangle& ) aOtherColor = rSettings.GetDialogColor( ).getBColor(); } - bool bRtl = Application::GetSettings().GetLayoutRTL(); + bool bRtl = AllSettings::GetLayoutRTL(); drawinglayer::primitive2d::Primitive2DSequence aSeq( 3 ); B2DRectangle aBRect( double( aRect.Left() ), double( aRect.Top( ) ), diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index d60987bc5d10..3832f7c5c60a 100644 --- a/sw/source/uibase/docvw/SidebarWin.cxx +++ b/sw/source/uibase/docvw/SidebarWin.cxx @@ -359,7 +359,7 @@ void SwSidebarWin::InitControls() // window controls for author and date mpMetadataAuthor = new Edit( this, 0 ); mpMetadataAuthor->SetAccessibleName( SW_RES( STR_ACCESS_ANNOTATION_AUTHOR_NAME ) ); - mpMetadataAuthor->EnableRTL(Application::GetSettings().GetLayoutRTL()); + mpMetadataAuthor->EnableRTL(AllSettings::GetLayoutRTL()); mpMetadataAuthor->SetReadOnly(); mpMetadataAuthor->AlwaysDisableInput(true); mpMetadataAuthor->SetCallHandlersOnInputDisabled(true); @@ -378,7 +378,7 @@ void SwSidebarWin::InitControls() mpMetadataDate = new Edit( this, 0 ); mpMetadataDate->SetAccessibleName( SW_RES( STR_ACCESS_ANNOTATION_DATE_NAME ) ); - mpMetadataDate->EnableRTL(Application::GetSettings().GetLayoutRTL()); + mpMetadataDate->EnableRTL(AllSettings::GetLayoutRTL()); mpMetadataDate->SetReadOnly(); mpMetadataDate->AlwaysDisableInput(true); mpMetadataDate->SetCallHandlersOnInputDisabled(true); @@ -760,7 +760,7 @@ void SwSidebarWin::DoResize() } mpOutlinerView->SetOutputArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) ); - if (!Application::GetSettings().GetLayoutRTL()) + if (!AllSettings::GetLayoutRTL()) { mpSidebarTxtControl->setPosSizePixel(0, 0, aWidth, aHeight); mpVScrollbar->setPosSizePixel( aWidth, 0, GetScrollbarWidth(), aHeight); diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx index 172a0b39c483..b9d43d094ec1 100644 --- a/sw/source/uibase/misc/swruler.cxx +++ b/sw/source/uibase/misc/swruler.cxx @@ -97,7 +97,7 @@ void SwCommentRuler::DrawCommentControl() // TODO Discover why it should be 0 instead of CONTROL_BORDER_WIDTH + CONTROL_TOP_OFFSET aLabelPos.Y() = 0; aArrowPos.Y() = CONTROL_BORDER_WIDTH + CONTROL_TOP_OFFSET; - if ( !Application::GetSettings().GetLayoutRTL() ) + if ( !AllSettings::GetLayoutRTL() ) { // LTR if ( bIsCollapsed ) diff --git a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx index ed85a1007e29..9c7204921934 100644 --- a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx +++ b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx @@ -115,7 +115,7 @@ void WrapPropertyPanel::Initialize() ::GetImage( mxFrame, UNO_WRAPIDEAL, false ) ); mpRBNoWrap->SetModeRadioImage( aWrapIL.GetImage(UNO_WRAPOFF) ); - if ( Application::GetSettings().GetLayoutRTL() ) + if ( AllSettings::GetLayoutRTL() ) { mpRBWrapLeft->SetModeRadioImage( aWrapIL.GetImage(UNO_WRAPRIGHT) ); mpRBWrapRight->SetModeRadioImage( aWrapIL.GetImage(UNO_WRAPLEFT) ); diff --git a/vcl/inc/cupsmgr.hxx b/vcl/inc/cupsmgr.hxx index 4db4c1d5e0c7..96b1c80098d1 100644 --- a/vcl/inc/cupsmgr.hxx +++ b/vcl/inc/cupsmgr.hxx @@ -80,7 +80,7 @@ class CUPSManager : public PrinterInfoManager virtual void initialize() SAL_OVERRIDE; - void getOptionsFromDocumentSetup( const JobData& rJob, bool bBanner, int& rNumOptions, void** rOptions ) const; + static void getOptionsFromDocumentSetup( const JobData& rJob, bool bBanner, int& rNumOptions, void** rOptions ); void runDests(); OString threadedCupsGetPPD(const char* pPrinter); diff --git a/vcl/inc/dndevdis.hxx b/vcl/inc/dndevdis.hxx index 60b6bb3c297d..978910a46f01 100644 --- a/vcl/inc/dndevdis.hxx +++ b/vcl/inc/dndevdis.hxx @@ -46,23 +46,23 @@ class DNDEventDispatcher: public ::cppu::WeakImplHelper3< * fire the events on the dnd listener container of the specified window */ - sal_Int32 fireDragEnterEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext, + static sal_Int32 fireDragEnterEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext, const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction, const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& aFlavorList ) throw(::com::sun::star::uno::RuntimeException); - sal_Int32 fireDragOverEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext, + static sal_Int32 fireDragOverEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext, const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction ) throw(::com::sun::star::uno::RuntimeException); - sal_Int32 fireDragExitEvent( vcl::Window *pWindow ) throw(::com::sun::star::uno::RuntimeException); + static sal_Int32 fireDragExitEvent( vcl::Window *pWindow ) throw(::com::sun::star::uno::RuntimeException); - sal_Int32 fireDropActionChangedEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext, + static sal_Int32 fireDropActionChangedEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext, const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction ) throw(::com::sun::star::uno::RuntimeException); - sal_Int32 fireDropEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDropContext >& xContext, + static sal_Int32 fireDropEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDropContext >& xContext, const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable ) throw(::com::sun::star::uno::RuntimeException); - sal_Int32 fireDragGestureEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource >& xSource, + static sal_Int32 fireDragGestureEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource >& xSource, const ::com::sun::star::uno::Any& event, const Point& rOrigin, const sal_Int8 nDragAction )throw(::com::sun::star::uno::RuntimeException); public: diff --git a/vcl/inc/graphite_features.hxx b/vcl/inc/graphite_features.hxx index e957b508e1cb..7b9c083e0034 100644 --- a/vcl/inc/graphite_features.hxx +++ b/vcl/inc/graphite_features.hxx @@ -59,8 +59,8 @@ namespace grutils private: GrFeatureParser(const GrFeatureParser & copy) SAL_DELETED_FUNCTION; void setLang(const gr_face * face, const OString & lang); - bool isCharId(const OString & id, size_t offset, size_t length); - gr_uint32 getCharId(const OString & id, size_t offset, size_t length); + static bool isCharId(const OString & id, size_t offset, size_t length); + static gr_uint32 getCharId(const OString & id, size_t offset, size_t length); short getIntValue(const OString & id, size_t offset, size_t length); size_t mnNumSettings; FeatId maLang; diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index 3d68e7649314..297d28a7f4fa 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -54,7 +54,7 @@ protected: basegfx::B2IVector GetSize() { return m_aOrigDevice->getSize(); } public: - GlyphCache& getPlatformGlyphCache(); + static GlyphCache& getPlatformGlyphCache(); void setDevice(basebmp::BitmapDeviceSharedPtr& rDevice); void BlendTextColor(const basebmp::Color &rTextColor, const basebmp::BitmapDeviceSharedPtr &rAlphaMask, const basegfx::B2IPoint &rDstPoint); diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index d177aa2a1b08..61dd536b2f47 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1265,7 +1265,7 @@ void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_u if( mpParent ) { - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { if( (nFlags & SAL_FRAME_POSSIZE_WIDTH) != 0 ) nX = mpParent->maGeometry.nWidth - nWidth-1 - nX; diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index 04c6e90cfd84..67c0a9a4fc61 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -628,7 +628,7 @@ private: aEvent.mnCode = aEvent.mnButton | nModMask; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = pDispatchFrame->maGeometry.nWidth-1-aEvent.mnX; pDispatchFrame->CallCallback( nEvent, &aEvent ); @@ -790,7 +790,7 @@ private: aEvent.mbDeltaIsPixel = TRUE; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX; aEvent.mnDelta = nDeltaZ; @@ -846,7 +846,7 @@ private: aEvent.mbDeltaIsPixel = TRUE; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX; if( dX != 0.0 ) @@ -906,7 +906,7 @@ private: aEvent.mbDeltaIsPixel = FALSE; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX; if( dX != 0.0 ) diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index cd2b8c5b892e..559b41897f1c 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -746,7 +746,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, { ButtonValue aButtonValue = aValue.getTristateVal(); - if( Application::GetSettings().GetLayoutRTL() && aButtonValue == BUTTONVALUE_OFF ) + if( AllSettings::GetLayoutRTL() && aButtonValue == BUTTONVALUE_OFF ) { // FIXME: a value of kThemeDisclosureLeft // should draw a theme compliant left disclosure triangle @@ -784,7 +784,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, case BUTTONVALUE_OFF: // FIXME: this should have drawn a theme compliant disclosure triangle // (see above) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { aInfo.value = kThemeDisclosureLeft;//collapsed, RTL } @@ -815,7 +815,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, aTrackInfo.bounds.origin.y -= 2; // FIXME: magic for shadow aTrackInfo.bounds.size.width -= 2; // FIXME: magic for shadow aTrackInfo.attributes = kThemeTrackHorizontal; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aTrackInfo.attributes |= kThemeTrackRightToLeft; aTrackInfo.enableState = getTrackState( nState ); // the intro bitmap never gets key anyway; we want to draw that enabled @@ -972,7 +972,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, //support for RTL //see issue 79748 - if( Application::GetSettings().GetLayoutRTL() ) { + if( AllSettings::GetLayoutRTL() ) { if( aTabItemDrawInfo.position == kHIThemeTabPositionFirst ) aTabItemDrawInfo.position = kHIThemeTabPositionLast; else if( aTabItemDrawInfo.position == kHIThemeTabPositionLast ) @@ -1105,7 +1105,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, HIRect buttonRc = ImplGetHIRectFromRectangle(aSpinRect); // FIXME: without this fuzz factor there is some unwanted clipping - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) buttonRc.origin.x -= FOCUS_RING_WIDTH - CLIP_FUZZ; else buttonRc.origin.x += FOCUS_RING_WIDTH + CLIP_FUZZ; diff --git a/vcl/qa/cppunit/canvasbitmaptest.cxx b/vcl/qa/cppunit/canvasbitmaptest.cxx index d15508f9994c..54faf897b807 100644 --- a/vcl/qa/cppunit/canvasbitmaptest.cxx +++ b/vcl/qa/cppunit/canvasbitmaptest.cxx @@ -778,7 +778,7 @@ void CanvasBitmapTest::runTest() CPPUNIT_ASSERT_MESSAGE("(9,2) incorrect content", pBmpAcc->GetPixel(2,9) == BitmapColor(9)); - aBmp.GetBitmap().ReleaseAccess(pBmpAcc); + Bitmap::ReleaseAccess(pBmpAcc); } xTestBmp.set( new TestBitmap( geometry::IntegerSize2D(10,10), false )); @@ -815,7 +815,7 @@ void CanvasBitmapTest::runTest() pAlphaAcc->GetPixel(2,9) == BitmapColor(253)); aBmp.GetAlpha().ReleaseAccess(pAlphaAcc); - aBmp.GetBitmap().ReleaseAccess(pBmpAcc); + Bitmap::ReleaseAccess(pBmpAcc); } } 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; diff --git a/vcl/unx/generic/printer/cupsmgr.cxx b/vcl/unx/generic/printer/cupsmgr.cxx index 8a12fbb42562..4611f377ac48 100644 --- a/vcl/unx/generic/printer/cupsmgr.cxx +++ b/vcl/unx/generic/printer/cupsmgr.cxx @@ -569,7 +569,7 @@ struct less_ppd_key : public ::std::binary_function<double, double, bool> { return left->getOrderDependency() < right->getOrderDependency(); } }; -void CUPSManager::getOptionsFromDocumentSetup( const JobData& rJob, bool bBanner, int& rNumOptions, void** rOptions ) const +void CUPSManager::getOptionsFromDocumentSetup( const JobData& rJob, bool bBanner, int& rNumOptions, void** rOptions ) { rNumOptions = 0; *rOptions = NULL; diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 413d47c02a70..b39dd8e1d7b3 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -242,7 +242,7 @@ static void CreateNetWmAppIcon( sal_uInt16 nIcon, NetWmIconData& netwm_icon ) BitmapColor alpha = maskData->GetColor( y, x ); netwm_icon[ pos++ ] = (((( 255 - alpha.GetBlue()) * 256U ) + col.GetRed()) * 256 + col.GetGreen()) * 256 + col.GetBlue(); } - icon.ReleaseAccess( iconData ); + Bitmap::ReleaseAccess( iconData ); mask.ReleaseAccess( maskData ); } netwm_icon.resize( pos ); @@ -1902,7 +1902,7 @@ void X11SalFrame::SetPosSize( const Rectangle &rPosSize ) if( mpParent && ! IsSysChildWindow() ) { // --- RTL --- (mirror window pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) values.x = mpParent->maGeometry.nWidth-values.width-1-values.x; ::Window aChild; @@ -2960,7 +2960,7 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent ) nEvent = SALEVENT_WHEELMOUSE; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aWheelEvt.mnX = nWidth_-1-aWheelEvt.mnX; return CallCallback( nEvent, &aWheelEvt ); } @@ -2974,7 +2974,7 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent ) ) { // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aMouseEvt.mnX = nWidth_-1-aMouseEvt.mnX; nRet = CallCallback( nEvent, &aMouseEvt ); } diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index ab0ab95d9d0e..32a3de583d6e 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -2518,7 +2518,7 @@ bool GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart, // Draw an edit field for SpinBoxes and ComboBoxes Rectangle aEditBoxRect( pixmapRect ); aEditBoxRect.SetSize( Size( pixmapRect.GetWidth() - upBtnRect.GetWidth(), aEditBoxRect.GetHeight() ) ); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEditBoxRect.setX( upBtnRect.GetWidth() ); else aEditBoxRect.setX( 0 ); @@ -2567,7 +2567,7 @@ static Rectangle NWGetSpinButtonRect( SalX11Screen nScreen, buttonSize -= buttonSize % 2 - 1; /* force odd */ buttonRect.SetSize( Size( buttonSize + 2 * gWidgetData[nScreen].gSpinButtonWidget->style->xthickness, buttonRect.GetHeight() ) ); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) buttonRect.setX( aAreaRect.Left() ); else buttonRect.setX( aAreaRect.Left() + (aAreaRect.GetWidth() - buttonRect.GetWidth()) ); @@ -2583,7 +2583,7 @@ static Rectangle NWGetSpinButtonRect( SalX11Screen nScreen, } else { - if( Application::GetSettings().GetLayoutRTL() ) { + if( AllSettings::GetLayoutRTL() ) { buttonRect.Left() = buttonRect.Right()+1; buttonRect.Right() = aAreaRect.Right(); } else { @@ -2675,7 +2675,7 @@ bool GtkSalGraphics::NWPaintGTKComboBox( GdkDrawable* gdkDrawable, Rectangle aEditBoxRect( pixmapRect ); aEditBoxRect.SetSize( Size( pixmapRect.GetWidth() - buttonRect.GetWidth(), aEditBoxRect.GetHeight() ) ); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEditBoxRect.SetPos( Point( x + buttonRect.GetWidth() , y ) ); #define ARROW_EXTENT 0.7 @@ -2744,7 +2744,7 @@ static Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen, if( nPart == PART_BUTTON_DOWN ) { aButtonRect.SetSize( Size( nButtonWidth, aAreaRect.GetHeight() ) ); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aButtonRect.SetPos( Point( aAreaRect.Left(), aAreaRect.Top() ) ); else aButtonRect.SetPos( Point( aAreaRect.Left() + aAreaRect.GetWidth() - nButtonWidth, @@ -2764,7 +2764,7 @@ static Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen, Point aEditPos = aAreaRect.TopLeft(); aEditPos.X() += adjust_x; aEditPos.Y() += adjust_y; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEditPos.X() += nButtonWidth; aButtonRect.SetPos( aEditPos ); } @@ -3404,7 +3404,7 @@ bool GtkSalGraphics::NWPaintGTKPopupMenu( nState, nStateType ); GtkArrowType eArrow; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) eArrow = GTK_ARROW_LEFT; else eArrow = GTK_ARROW_RIGHT; @@ -3548,7 +3548,7 @@ bool GtkSalGraphics::NWPaintGTKProgress( if( nProgressWidth > 0 ) { // paint progress - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { gtk_paint_box( gWidgetData[m_nXScreen].gProgressBar->style, pixDrawable, @@ -3708,7 +3708,7 @@ static Rectangle NWGetListBoxButtonRect( SalX11Screen nScreen, case PART_SUB_EDIT: aPartSize.Width() = aAreaRect.GetWidth() - nButtonAreaWidth - xthickness; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aPartPos.X() = aAreaRect.Left() + nButtonAreaWidth; else aPartPos.X() = aAreaRect.Left() + xthickness; @@ -3761,7 +3761,7 @@ static Rectangle NWGetListBoxIndicatorRect( SalX11Screen nScreen, right = pIndicatorSpacing->right; aIndicatorRect.SetSize( Size( width, height ) ); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) x = aAreaRect.Left() + right; else x = aAreaRect.Left() + aAreaRect.GetWidth() - width - right - gWidgetData[nScreen].gOptionMenuWidget->style->xthickness; diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx index acf170f2da09..78d561554831 100644 --- a/vcl/unx/gtk/window/gtksalframe.cxx +++ b/vcl/unx/gtk/window/gtksalframe.cxx @@ -2051,7 +2051,7 @@ void GtkSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u { if( m_pParent ) { - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) nX = m_pParent->maGeometry.nWidth-maGeometry.nWidth-1-nX; nX += m_pParent->maGeometry.nX; nY += m_pParent->maGeometry.nY; @@ -3272,7 +3272,7 @@ gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer } // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = pThis->maGeometry.nWidth-1-aEvent.mnX; vcl::DeletionListener aDel( pThis ); @@ -3340,7 +3340,7 @@ gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame aEvent.mbHorz = (pSEvent->direction == GDK_SCROLL_LEFT || pSEvent->direction == GDK_SCROLL_RIGHT); // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = pThis->maGeometry.nWidth-1-aEvent.mnX; pThis->CallCallback( SALEVENT_WHEELMOUSE, &aEvent ); @@ -3398,7 +3398,7 @@ gboolean GtkSalFrame::signalMotion( GtkWidget*, GdkEventMotion* pEvent, gpointer aEvent.mnButton = 0; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aEvent.mnX = pThis->maGeometry.nWidth-1-aEvent.mnX; vcl::DeletionListener aDel( pThis ); diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx index aedbf8987e56..e7b8899e595a 100644 --- a/vcl/win/source/gdi/salnativewidgets-luna.cxx +++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx @@ -1005,7 +1005,7 @@ bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, long nProgressWidth = aValue.getNumericVal(); nProgressWidth *= (aProgressRect.right - aProgressRect.left); nProgressWidth /= (rc.right - rc.left); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aProgressRect.left = aProgressRect.right - nProgressWidth; else aProgressRect.right = aProgressRect.left + nProgressWidth; @@ -1074,7 +1074,7 @@ bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, if( nPart == PART_ENTIRE_CONTROL ) { RECT aGutterRC = rc; - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { aGutterRC.right -= aValue.getNumericVal()+1; aGutterRC.left = aGutterRC.right-3; @@ -1107,7 +1107,7 @@ bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, const MenupopupValue& rMVal( static_cast<const MenupopupValue&>(aValue) ); aBGRect.top = rMVal.maItemRect.Top(); aBGRect.bottom = rMVal.maItemRect.Bottom()+1; // see below in drawNativeControl - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) { aBGRect.right = rMVal.maItemRect.Right()+1; aBGRect.left = aBGRect.right - (rMVal.getNumericVal()-rMVal.maItemRect.Left()); @@ -1133,7 +1133,7 @@ bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, else if( nPart == PART_MENU_SEPARATOR ) { // adjust for gutter position - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) rc.right -= aValue.getNumericVal()+1; else rc.left += aValue.getNumericVal()+1; diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 1544b2f11c82..47a72052f417 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -1286,7 +1286,7 @@ void WinSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, // --- RTL --- (mirror window pos) RECT aParentRect; GetClientRect( ImplGetParentHwnd( mhWnd ), &aParentRect ); - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) nX = (aParentRect.right - aParentRect.left) - nWidth-1 - nX; //#110386#, do not transform coordinates for system child windows @@ -3173,7 +3173,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg, UpdateWindow( hWnd ); // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aMouseEvt.mnX = pFrame->maGeometry.nWidth-1-aMouseEvt.mnX; nRet = pFrame->CallCallback( nEvent, &aMouseEvt ); @@ -3263,7 +3263,7 @@ static long ImplHandleWheelMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPar aWheelEvt.mnCode |= KEY_MOD2; // --- RTL --- (mirror mouse pos) - if( Application::GetSettings().GetLayoutRTL() ) + if( AllSettings::GetLayoutRTL() ) aWheelEvt.mnX = pFrame->maGeometry.nWidth-1-aWheelEvt.mnX; nRet = pFrame->CallCallback( SALEVENT_WHEELMOUSE, &aWheelEvt ); diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx index 1c3d285ee76b..ebf716c3abd1 100644 --- a/vcl/workben/svptest.cxx +++ b/vcl/workben/svptest.cxx @@ -119,7 +119,7 @@ MyWin::MyWin( vcl::Window* pParent, WinBits nWinStyle ) : pAcc->SetPixel( nY, nX, BitmapColor( sal_uInt8(fRed), sal_uInt8(fGreen), sal_uInt8(fBlue) ) ); } } - m_aBitmap.ReleaseAccess( pAcc ); + Bitmap::ReleaseAccess( pAcc ); } void MyWin::MouseMove( const MouseEvent& rMEvt ) |