diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-07 13:58:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-08 09:51:27 +0200 |
commit | 449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch) | |
tree | fad3597606f3fbae275ff990aac45ad8f00e1c86 /vcl/source | |
parent | b43fde69caf456585004b3e1da5161d76eadf057 (diff) |
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/metaact.cxx | 345 | ||||
-rw-r--r-- | vcl/source/gdi/region.cxx | 28 | ||||
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 37 | ||||
-rw-r--r-- | vcl/source/gdi/virdev.cxx | 8 | ||||
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 101 | ||||
-rw-r--r-- | vcl/source/outdev/map.cxx | 85 | ||||
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 23 | ||||
-rw-r--r-- | vcl/source/outdev/transparent.cxx | 10 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 54 | ||||
-rw-r--r-- | vcl/source/window/winproc.cxx | 2 |
10 files changed, 4 insertions, 689 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index 10b0e7f469ed..596ab10f1745 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -179,11 +179,6 @@ void MetaAction::Scale( double, double ) { } -bool MetaAction::Compare( const MetaAction& ) const -{ - return true; -} - void MetaAction::Write( SvStream& rOStm, ImplMetaWriteData* ) { rOStm.WriteUInt16( static_cast<sal_uInt16>(mnType) ); @@ -308,12 +303,6 @@ void MetaPixelAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maPt, fScaleX, fScaleY ); } -bool MetaPixelAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPt == static_cast<const MetaPixelAction&>(rMetaAction).maPt ) && - ( maColor == static_cast<const MetaPixelAction&>(rMetaAction).maColor ); -} - void MetaPixelAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -363,11 +352,6 @@ void MetaPointAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maPt, fScaleX, fScaleY ); } -bool MetaPointAction::Compare( const MetaAction& rMetaAction ) const -{ - return maPt == static_cast<const MetaPointAction&>(rMetaAction).maPt; -} - void MetaPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -430,13 +414,6 @@ void MetaLineAction::Scale( double fScaleX, double fScaleY ) ImplScaleLineInfo( maLineInfo, fScaleX, fScaleY ); } -bool MetaLineAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maLineInfo == static_cast<const MetaLineAction&>(rMetaAction).maLineInfo ) && - ( maStartPt == static_cast<const MetaLineAction&>(rMetaAction).maStartPt ) && - ( maEndPt == static_cast<const MetaLineAction&>(rMetaAction).maEndPt ); -} - void MetaLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -496,11 +473,6 @@ void MetaRectAction::Scale( double fScaleX, double fScaleY ) ImplScaleRect( maRect, fScaleX, fScaleY ); } -bool MetaRectAction::Compare( const MetaAction& rMetaAction ) const -{ - return maRect == static_cast<const MetaRectAction&>(rMetaAction).maRect; -} - void MetaRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -555,13 +527,6 @@ void MetaRoundRectAction::Scale( double fScaleX, double fScaleY ) mnVertRound = FRound( mnVertRound * fabs(fScaleY) ); } -bool MetaRoundRectAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaRoundRectAction&>(rMetaAction).maRect ) && - ( mnHorzRound == static_cast<const MetaRoundRectAction&>(rMetaAction).mnHorzRound ) && - ( mnVertRound == static_cast<const MetaRoundRectAction&>(rMetaAction).mnVertRound ); -} - void MetaRoundRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -610,11 +575,6 @@ void MetaEllipseAction::Scale( double fScaleX, double fScaleY ) ImplScaleRect( maRect, fScaleX, fScaleY ); } -bool MetaEllipseAction::Compare( const MetaAction& rMetaAction ) const -{ - return maRect == static_cast<const MetaEllipseAction&>(rMetaAction).maRect; -} - void MetaEllipseAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -669,13 +629,6 @@ void MetaArcAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maEndPt, fScaleX, fScaleY ); } -bool MetaArcAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaArcAction&>(rMetaAction).maRect ) && - ( maStartPt == static_cast<const MetaArcAction&>(rMetaAction).maStartPt ) && - ( maEndPt == static_cast<const MetaArcAction&>(rMetaAction).maEndPt ); -} - void MetaArcAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -734,13 +687,6 @@ void MetaPieAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maEndPt, fScaleX, fScaleY ); } -bool MetaPieAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaPieAction&>(rMetaAction).maRect ) && - ( maStartPt == static_cast<const MetaPieAction&>(rMetaAction).maStartPt ) && - ( maEndPt == static_cast<const MetaPieAction&>(rMetaAction).maEndPt ); -} - void MetaPieAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -799,13 +745,6 @@ void MetaChordAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maEndPt, fScaleX, fScaleY ); } -bool MetaChordAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaChordAction&>(rMetaAction).maRect ) && - ( maStartPt == static_cast<const MetaChordAction&>(rMetaAction).maStartPt ) && - ( maEndPt == static_cast<const MetaChordAction&>(rMetaAction).maEndPt ); -} - void MetaChordAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -867,17 +806,6 @@ void MetaPolyLineAction::Scale( double fScaleX, double fScaleY ) ImplScaleLineInfo( maLineInfo, fScaleX, fScaleY ); } -bool MetaPolyLineAction::Compare( const MetaAction& rMetaAction ) const -{ - bool bIsEqual = true; - if ( maLineInfo != static_cast<const MetaPolyLineAction&>(rMetaAction).maLineInfo ) - bIsEqual = false; - else - bIsEqual = maPoly.IsEqual(static_cast<const MetaPolyLineAction&>(rMetaAction).maPoly ); - return bIsEqual; - -} - void MetaPolyLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -948,11 +876,6 @@ void MetaPolygonAction::Scale( double fScaleX, double fScaleY ) ImplScalePoly( maPoly, fScaleX, fScaleY ); } -bool MetaPolygonAction::Compare( const MetaAction& rMetaAction ) const -{ - return maPoly.IsEqual(static_cast<const MetaPolygonAction&>(rMetaAction).maPoly ); -} - void MetaPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -1018,11 +941,6 @@ void MetaPolyPolygonAction::Scale( double fScaleX, double fScaleY ) ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY ); } -bool MetaPolyPolygonAction::Compare( const MetaAction& rMetaAction ) const -{ - return maPolyPoly.IsEqual(static_cast<const MetaPolyPolygonAction&>(rMetaAction).maPolyPoly ); -} - void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -1130,14 +1048,6 @@ void MetaTextAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maPt, fScaleX, fScaleY ); } -bool MetaTextAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPt == static_cast<const MetaTextAction&>(rMetaAction).maPt ) && - ( maStr == static_cast<const MetaTextAction&>(rMetaAction).maStr ) && - ( mnIndex == static_cast<const MetaTextAction&>(rMetaAction).mnIndex ) && - ( mnLen == static_cast<const MetaTextAction&>(rMetaAction).mnLen ); -} - void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -1246,15 +1156,6 @@ void MetaTextArrayAction::Scale( double fScaleX, double fScaleY ) } } -bool MetaTextArrayAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maStartPt == static_cast<const MetaTextArrayAction&>(rMetaAction).maStartPt ) && - ( maStr == static_cast<const MetaTextArrayAction&>(rMetaAction).maStr ) && - ( mnIndex == static_cast<const MetaTextArrayAction&>(rMetaAction).mnIndex ) && - ( mnLen == static_cast<const MetaTextArrayAction&>(rMetaAction).mnLen ) && - ( memcmp( mpDXAry, static_cast<const MetaTextArrayAction&>(rMetaAction).mpDXAry, mnLen ) == 0 ); -} - void MetaTextArrayAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { const sal_Int32 nAryLen = mpDXAry ? mnLen : 0; @@ -1381,15 +1282,6 @@ void MetaStretchTextAction::Scale( double fScaleX, double fScaleY ) mnWidth = (sal_uLong)FRound( mnWidth * fabs(fScaleX) ); } -bool MetaStretchTextAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPt == static_cast<const MetaStretchTextAction&>(rMetaAction).maPt ) && - ( maStr == static_cast<const MetaStretchTextAction&>(rMetaAction).maStr ) && - ( mnWidth == static_cast<const MetaStretchTextAction&>(rMetaAction).mnWidth ) && - ( mnIndex == static_cast<const MetaStretchTextAction&>(rMetaAction).mnIndex ) && - ( mnLen == static_cast<const MetaStretchTextAction&>(rMetaAction).mnLen ); -} - void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -1458,13 +1350,6 @@ void MetaTextRectAction::Scale( double fScaleX, double fScaleY ) ImplScaleRect( maRect, fScaleX, fScaleY ); } -bool MetaTextRectAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaTextRectAction&>(rMetaAction).maRect ) && - ( maStr == static_cast<const MetaTextRectAction&>(rMetaAction).maStr ) && - ( mnStyle == static_cast<const MetaTextRectAction&>(rMetaAction).mnStyle ); -} - void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -1535,15 +1420,6 @@ void MetaTextLineAction::Scale( double fScaleX, double fScaleY ) mnWidth = FRound( mnWidth * fabs(fScaleX) ); } -bool MetaTextLineAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPos == static_cast<const MetaTextLineAction&>(rMetaAction).maPos ) && - ( mnWidth == static_cast<const MetaTextLineAction&>(rMetaAction).mnWidth ) && - ( meStrikeout == static_cast<const MetaTextLineAction&>(rMetaAction).meStrikeout ) && - ( meUnderline == static_cast<const MetaTextLineAction&>(rMetaAction).meUnderline ) && - ( meOverline == static_cast<const MetaTextLineAction&>(rMetaAction).meOverline ); -} - void MetaTextLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -1613,12 +1489,6 @@ void MetaBmpAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maPt, fScaleX, fScaleY ); } -bool MetaBmpAction::Compare( const MetaAction& rMetaAction ) const -{ - return maBmp.IsEqual(static_cast<const MetaBmpAction&>(rMetaAction).maBmp ) && - ( maPt == static_cast<const MetaBmpAction&>(rMetaAction).maPt ); -} - void MetaBmpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmp ) @@ -1677,13 +1547,6 @@ void MetaBmpScaleAction::Scale( double fScaleX, double fScaleY ) maSz = aRectangle.GetSize(); } -bool MetaBmpScaleAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmp.IsEqual(static_cast<const MetaBmpScaleAction&>(rMetaAction).maBmp )) && - ( maPt == static_cast<const MetaBmpScaleAction&>(rMetaAction).maPt ) && - ( maSz == static_cast<const MetaBmpScaleAction&>(rMetaAction).maSz ); -} - void MetaBmpScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmp ) @@ -1747,15 +1610,6 @@ void MetaBmpScalePartAction::Scale( double fScaleX, double fScaleY ) maDstSz = aRectangle.GetSize(); } -bool MetaBmpScalePartAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmp.IsEqual(static_cast<const MetaBmpScalePartAction&>(rMetaAction).maBmp )) && - ( maDstPt == static_cast<const MetaBmpScalePartAction&>(rMetaAction).maDstPt ) && - ( maDstSz == static_cast<const MetaBmpScalePartAction&>(rMetaAction).maDstSz ) && - ( maSrcPt == static_cast<const MetaBmpScalePartAction&>(rMetaAction).maSrcPt ) && - ( maSrcSz == static_cast<const MetaBmpScalePartAction&>(rMetaAction).maSrcSz ); -} - void MetaBmpScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmp ) @@ -1815,12 +1669,6 @@ void MetaBmpExAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maPt, fScaleX, fScaleY ); } -bool MetaBmpExAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmpEx.IsEqual(static_cast<const MetaBmpExAction&>(rMetaAction).maBmpEx )) && - ( maPt == static_cast<const MetaBmpExAction&>(rMetaAction).maPt ); -} - void MetaBmpExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmpEx.GetBitmap() ) @@ -1879,13 +1727,6 @@ void MetaBmpExScaleAction::Scale( double fScaleX, double fScaleY ) maSz = aRectangle.GetSize(); } -bool MetaBmpExScaleAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmpEx.IsEqual(static_cast<const MetaBmpExScaleAction&>(rMetaAction).maBmpEx )) && - ( maPt == static_cast<const MetaBmpExScaleAction&>(rMetaAction).maPt ) && - ( maSz == static_cast<const MetaBmpExScaleAction&>(rMetaAction).maSz ); -} - void MetaBmpExScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmpEx.GetBitmap() ) @@ -1949,15 +1790,6 @@ void MetaBmpExScalePartAction::Scale( double fScaleX, double fScaleY ) maDstSz = aRectangle.GetSize(); } -bool MetaBmpExScalePartAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmpEx.IsEqual(static_cast<const MetaBmpExScalePartAction&>(rMetaAction).maBmpEx )) && - ( maDstPt == static_cast<const MetaBmpExScalePartAction&>(rMetaAction).maDstPt ) && - ( maDstSz == static_cast<const MetaBmpExScalePartAction&>(rMetaAction).maDstSz ) && - ( maSrcPt == static_cast<const MetaBmpExScalePartAction&>(rMetaAction).maSrcPt ) && - ( maSrcSz == static_cast<const MetaBmpExScalePartAction&>(rMetaAction).maSrcSz ); -} - void MetaBmpExScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmpEx.GetBitmap() ) @@ -2020,13 +1852,6 @@ void MetaMaskAction::Scale( double fScaleX, double fScaleY ) ImplScalePoint( maPt, fScaleX, fScaleY ); } -bool MetaMaskAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmp.IsEqual(static_cast<const MetaMaskAction&>(rMetaAction).maBmp )) && - ( maColor == static_cast<const MetaMaskAction&>(rMetaAction).maColor ) && - ( maPt == static_cast<const MetaMaskAction&>(rMetaAction).maPt ); -} - void MetaMaskAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmp ) @@ -2087,14 +1912,6 @@ void MetaMaskScaleAction::Scale( double fScaleX, double fScaleY ) maSz = aRectangle.GetSize(); } -bool MetaMaskScaleAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmp.IsEqual(static_cast<const MetaMaskScaleAction&>(rMetaAction).maBmp )) && - ( maColor == static_cast<const MetaMaskScaleAction&>(rMetaAction).maColor ) && - ( maPt == static_cast<const MetaMaskScaleAction&>(rMetaAction).maPt ) && - ( maSz == static_cast<const MetaMaskScaleAction&>(rMetaAction).maSz ); -} - void MetaMaskScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmp ) @@ -2160,16 +1977,6 @@ void MetaMaskScalePartAction::Scale( double fScaleX, double fScaleY ) maDstSz = aRectangle.GetSize(); } -bool MetaMaskScalePartAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maBmp.IsEqual(static_cast<const MetaMaskScalePartAction&>(rMetaAction).maBmp )) && - ( maColor == static_cast<const MetaMaskScalePartAction&>(rMetaAction).maColor ) && - ( maDstPt == static_cast<const MetaMaskScalePartAction&>(rMetaAction).maDstPt ) && - ( maDstSz == static_cast<const MetaMaskScalePartAction&>(rMetaAction).maDstSz ) && - ( maSrcPt == static_cast<const MetaMaskScalePartAction&>(rMetaAction).maSrcPt ) && - ( maSrcSz == static_cast<const MetaMaskScalePartAction&>(rMetaAction).maSrcSz ); -} - void MetaMaskScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { if( !!maBmp ) @@ -2231,12 +2038,6 @@ void MetaGradientAction::Scale( double fScaleX, double fScaleY ) ImplScaleRect( maRect, fScaleX, fScaleY ); } -bool MetaGradientAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaGradientAction&>(rMetaAction).maRect ) && - ( maGradient == static_cast<const MetaGradientAction&>(rMetaAction).maGradient ); -} - void MetaGradientAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2292,12 +2093,6 @@ void MetaGradientExAction::Scale( double fScaleX, double fScaleY ) ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY ); } -bool MetaGradientExAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPolyPoly == static_cast<const MetaGradientExAction&>(rMetaAction).maPolyPoly ) && - ( maGradient == static_cast<const MetaGradientExAction&>(rMetaAction).maGradient ); -} - void MetaGradientExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2354,12 +2149,6 @@ void MetaHatchAction::Scale( double fScaleX, double fScaleY ) ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY ); } -bool MetaHatchAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPolyPoly == static_cast<const MetaHatchAction&>(rMetaAction).maPolyPoly ) && - ( maHatch == static_cast<const MetaHatchAction&>(rMetaAction).maHatch ); -} - void MetaHatchAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2416,12 +2205,6 @@ void MetaWallpaperAction::Scale( double fScaleX, double fScaleY ) ImplScaleRect( maRect, fScaleX, fScaleY ); } -bool MetaWallpaperAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRect == static_cast<const MetaWallpaperAction&>(rMetaAction).maRect ) && - ( maWallpaper == static_cast<const MetaWallpaperAction&>(rMetaAction).maWallpaper ); -} - void MetaWallpaperAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2475,12 +2258,6 @@ void MetaClipRegionAction::Scale( double fScaleX, double fScaleY ) maRegion.Scale( fScaleX, fScaleY ); } -bool MetaClipRegionAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRegion == static_cast<const MetaClipRegionAction&>(rMetaAction).maRegion ) && - ( mbClip == static_cast<const MetaClipRegionAction&>(rMetaAction).mbClip ); -} - void MetaClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2531,11 +2308,6 @@ void MetaISectRectClipRegionAction::Scale( double fScaleX, double fScaleY ) ImplScaleRect( maRect, fScaleX, fScaleY ); } -bool MetaISectRectClipRegionAction::Compare( const MetaAction& rMetaAction ) const -{ - return maRect == static_cast<const MetaISectRectClipRegionAction&>(rMetaAction).maRect; -} - void MetaISectRectClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2584,11 +2356,6 @@ void MetaISectRegionClipRegionAction::Scale( double fScaleX, double fScaleY ) maRegion.Scale( fScaleX, fScaleY ); } -bool MetaISectRegionClipRegionAction::Compare( const MetaAction& rMetaAction ) const -{ - return maRegion == static_cast<const MetaISectRegionClipRegionAction&>(rMetaAction).maRegion; -} - void MetaISectRegionClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2635,12 +2402,6 @@ void MetaMoveClipRegionAction::Scale( double fScaleX, double fScaleY ) mnVertMove = FRound( mnVertMove * fScaleY ); } -bool MetaMoveClipRegionAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( mnHorzMove == static_cast<const MetaMoveClipRegionAction&>(rMetaAction).mnHorzMove ) && - ( mnVertMove == static_cast<const MetaMoveClipRegionAction&>(rMetaAction).mnVertMove ); -} - void MetaMoveClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2686,12 +2447,6 @@ MetaAction* MetaLineColorAction::Clone() return pClone; } -bool MetaLineColorAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maColor == static_cast<const MetaLineColorAction&>(rMetaAction).maColor ) && - ( mbSet == static_cast<const MetaLineColorAction&>(rMetaAction).mbSet ); -} - void MetaLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2736,12 +2491,6 @@ MetaAction* MetaFillColorAction::Clone() return pClone; } -bool MetaFillColorAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maColor == static_cast<const MetaFillColorAction&>(rMetaAction).maColor ) && - ( mbSet == static_cast<const MetaFillColorAction&>(rMetaAction).mbSet ); -} - void MetaFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2781,11 +2530,6 @@ MetaAction* MetaTextColorAction::Clone() return pClone; } -bool MetaTextColorAction::Compare( const MetaAction& rMetaAction ) const -{ - return maColor == static_cast<const MetaTextColorAction&>(rMetaAction).maColor; -} - void MetaTextColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2828,12 +2572,6 @@ MetaAction* MetaTextFillColorAction::Clone() return pClone; } -bool MetaTextFillColorAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maColor == static_cast<const MetaTextFillColorAction&>(rMetaAction).maColor ) && - ( mbSet == static_cast<const MetaTextFillColorAction&>(rMetaAction).mbSet ); -} - void MetaTextFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2878,12 +2616,6 @@ MetaAction* MetaTextLineColorAction::Clone() return pClone; } -bool MetaTextLineColorAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maColor == static_cast<const MetaTextLineColorAction&>(rMetaAction).maColor ) && - ( mbSet == static_cast<const MetaTextLineColorAction&>(rMetaAction).mbSet ); -} - void MetaTextLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2928,12 +2660,6 @@ MetaAction* MetaOverlineColorAction::Clone() return pClone; } -bool MetaOverlineColorAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maColor == static_cast<const MetaOverlineColorAction&>(rMetaAction).maColor ) && - ( mbSet == static_cast<const MetaOverlineColorAction&>(rMetaAction).mbSet ); -} - void MetaOverlineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -2974,11 +2700,6 @@ MetaAction* MetaTextAlignAction::Clone() return pClone; } -bool MetaTextAlignAction::Compare( const MetaAction& rMetaAction ) const -{ - return maAlign == static_cast<const MetaTextAlignAction&>(rMetaAction).maAlign; -} - void MetaTextAlignAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3026,11 +2747,6 @@ void MetaMapModeAction::Scale( double fScaleX, double fScaleY ) maMapMode.SetOrigin( aPoint ); } -bool MetaMapModeAction::Compare( const MetaAction& rMetaAction ) const -{ - return maMapMode == static_cast<const MetaMapModeAction&>(rMetaAction).maMapMode; -} - void MetaMapModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3086,11 +2802,6 @@ void MetaFontAction::Scale( double fScaleX, double fScaleY ) maFont.SetSize( aSize ); } -bool MetaFontAction::Compare( const MetaAction& rMetaAction ) const -{ - return maFont == static_cast<const MetaFontAction&>(rMetaAction).maFont; -} - void MetaFontAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3135,11 +2846,6 @@ MetaAction* MetaPushAction::Clone() return pClone; } -bool MetaPushAction::Compare( const MetaAction& rMetaAction ) const -{ - return mnFlags == static_cast<const MetaPushAction&>(rMetaAction).mnFlags; -} - void MetaPushAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3211,11 +2917,6 @@ MetaAction* MetaRasterOpAction::Clone() return pClone; } -bool MetaRasterOpAction::Compare( const MetaAction& rMetaAction ) const -{ - return meRasterOp == static_cast<const MetaRasterOpAction&>(rMetaAction).meRasterOp; -} - void MetaRasterOpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3268,12 +2969,6 @@ void MetaTransparentAction::Scale( double fScaleX, double fScaleY ) ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY ); } -bool MetaTransparentAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maPolyPoly == static_cast<const MetaTransparentAction&>(rMetaAction).maPolyPoly ) && - ( mnTransPercent == static_cast<const MetaTransparentAction&>(rMetaAction).mnTransPercent ); -} - void MetaTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3343,14 +3038,6 @@ void MetaFloatTransparentAction::Scale( double fScaleX, double fScaleY ) maSize = aRectangle.GetSize(); } -bool MetaFloatTransparentAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maMtf == static_cast<const MetaFloatTransparentAction&>(rMetaAction).maMtf ) && - ( maPoint == static_cast<const MetaFloatTransparentAction&>(rMetaAction).maPoint ) && - ( maSize == static_cast<const MetaFloatTransparentAction&>(rMetaAction).maSize ) && - ( maGradient == static_cast<const MetaFloatTransparentAction&>(rMetaAction).maGradient ); -} - void MetaFloatTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3412,14 +3099,6 @@ void MetaEPSAction::Scale( double fScaleX, double fScaleY ) maSize = aRectangle.GetSize(); } -bool MetaEPSAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maGfxLink.IsEqual(static_cast<const MetaEPSAction&>(rMetaAction).maGfxLink )) && - ( maSubst == static_cast<const MetaEPSAction&>(rMetaAction).maSubst ) && - ( maPoint == static_cast<const MetaEPSAction&>(rMetaAction).maPoint ) && - ( maSize == static_cast<const MetaEPSAction&>(rMetaAction).maSize ); -} - void MetaEPSAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3469,12 +3148,6 @@ MetaAction* MetaRefPointAction::Clone() return pClone; } -bool MetaRefPointAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maRefPoint == static_cast<const MetaRefPointAction&>(rMetaAction).maRefPoint ) && - ( mbSet == static_cast<const MetaRefPointAction&>(rMetaAction).mbSet ); -} - void MetaRefPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3666,14 +3339,6 @@ void MetaCommentAction::Scale( double fXScale, double fYScale ) } } -bool MetaCommentAction::Compare( const MetaAction& rMetaAction ) const -{ - return ( maComment == static_cast<const MetaCommentAction&>(rMetaAction).maComment ) && - ( mnValue == static_cast<const MetaCommentAction&>(rMetaAction).mnValue ) && - ( mnDataSize == static_cast<const MetaCommentAction&>(rMetaAction).mnDataSize ) && - ( memcmp( mpData, static_cast<const MetaCommentAction&>(rMetaAction).mpData, mnDataSize ) == 0 ); -} - void MetaCommentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3729,11 +3394,6 @@ MetaAction* MetaLayoutModeAction::Clone() return pClone; } -bool MetaLayoutModeAction::Compare( const MetaAction& rMetaAction ) const -{ - return mnLayoutMode == static_cast<const MetaLayoutModeAction&>(rMetaAction).mnLayoutMode; -} - void MetaLayoutModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); @@ -3774,11 +3434,6 @@ MetaAction* MetaTextLanguageAction::Clone() return pClone; } -bool MetaTextLanguageAction::Compare( const MetaAction& rMetaAction ) const -{ - return meTextLanguage == static_cast<const MetaTextLanguageAction&>(rMetaAction).meTextLanguage; -} - void MetaTextLanguageAction::Write( SvStream& rOStm, ImplMetaWriteData* pData ) { MetaAction::Write(rOStm, pData); diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 943559582d4d..493a02204255 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -1383,34 +1383,6 @@ bool vcl::Region::IsInside( const Point& rPoint ) const return false; } -bool vcl::Region::IsInside( const Rectangle& rRect ) const -{ - if(IsEmpty()) - { - // no rectangle can be in empty region - return false; - } - - if(IsNull()) - { - // rectangle always inside null-region - return true; - } - - if ( rRect.IsEmpty() ) - { - // is rectangle empty? -> not inside - return false; - } - - // create region from rectangle and intersect own region - vcl::Region aRegion(rRect); - aRegion.Exclude(*this); - - // rectangle is inside if exclusion is empty - return aRegion.IsEmpty(); -} - bool vcl::Region::IsOver( const Rectangle& rRect ) const { if(IsEmpty()) diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 39c2f777d754..2e1461f83152 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -942,43 +942,6 @@ DeviceCoordinate GenericSalLayout::GetTextWidth() const return nWidth; } -Rectangle GenericSalLayout::GetTextRect() const -{ - if( m_GlyphItems.empty() ) - return Rectangle(Point(0, 0), Size(0, 0)); - - // initialize the extent - DeviceCoordinate nMinXPos = 0; - DeviceCoordinate nMaxXPos = 0; - - DeviceCoordinate nMinYPos = 0; - DeviceCoordinate nMaxYPos = 0; - - for( GlyphVector::const_iterator pGlyphIter = m_GlyphItems.begin(), end = m_GlyphItems.end(); pGlyphIter != end ; ++pGlyphIter ) - { - // update the text extent with the glyph extent - DeviceCoordinate nXPos = pGlyphIter->maLinearPos.X(); - DeviceCoordinate nYPos = pGlyphIter->maLinearPos.Y(); - - if( nMinXPos > nXPos ) - nMinXPos = nXPos; - nXPos += pGlyphIter->mnNewWidth - pGlyphIter->mnXOffset; - if( nMaxXPos < nXPos ) - nMaxXPos = nXPos; - - if( nMinYPos > nYPos ) - nMinYPos = nYPos; - nYPos += pGlyphIter->mnNewWidth - pGlyphIter->mnYOffset; - if( nMaxYPos < nYPos ) - nMaxYPos = nYPos; - } - - DeviceCoordinate nWidth = nMaxXPos - nMinXPos; - DeviceCoordinate nHeight = nMaxYPos - nMinYPos; - - return Rectangle( Point(nMinXPos, nMinYPos), Size(nWidth, nHeight) ); -} - void GenericSalLayout::AdjustLayout( ImplLayoutArgs& rArgs ) { SalLayout::AdjustLayout( rArgs ); diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx index 04ac2d72a700..b8dc0613fda4 100644 --- a/vcl/source/gdi/virdev.cxx +++ b/vcl/source/gdi/virdev.cxx @@ -543,14 +543,6 @@ sal_uInt16 VirtualDevice::GetBitCount() const return mnBitCount; } -sal_uInt16 VirtualDevice::GetAlphaBitCount() const -{ - if (mpAlphaVDev) - return mpAlphaVDev->GetBitCount(); - - return 0; -} - bool VirtualDevice::UsePolyPolygonForComplexGradient() { return true; diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 0d0a157b171a..c106067dbc2b 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -60,7 +60,6 @@ OpenGLContext::OpenGLContext(): mnRefCount(1), mbRequestLegacyContext(false), mbUseDoubleBufferedRendering(true), - mbRequestVirtualDevice(false), mnFramebufferCount(0), mpCurrentFramebuffer(NULL), mpFirstFramebuffer(NULL), @@ -152,11 +151,6 @@ void OpenGLContext::requestSingleBufferedRendering() mbUseDoubleBufferedRendering = false; } -void OpenGLContext::requestVirtualDevice() -{ - mbRequestVirtualDevice = true; -} - #if defined( _WIN32 ) static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { @@ -513,56 +507,6 @@ int oglErrorHandler( Display* /*dpy*/, XErrorEvent* /*evnt*/ ) return 0; } -GLXFBConfig* getFBConfigForPixmap(Display* dpy, int& nBestFBC, bool bUseDoubleBufferedRendering, int screen) -{ - static int visual_attribs[] = - { - GLX_DOUBLEBUFFER, False, - GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT, - GLX_X_RENDERABLE, True, - GLX_RED_SIZE, 8, - GLX_GREEN_SIZE, 8, - GLX_BLUE_SIZE, 8, - GLX_ALPHA_SIZE, 8, - GLX_DEPTH_SIZE, 24, - GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR, - None - }; - - if (bUseDoubleBufferedRendering) - visual_attribs[1] = True; - - int fbCount = 0; - GLXFBConfig* pFBC = glXChooseFBConfig( dpy, - screen, - visual_attribs, &fbCount ); - - if(!pFBC) - { - SAL_WARN("vcl.opengl", "no suitable fb format found"); - return NULL; - } - - int best_num_samp = -1; - for(int i = 0; i < fbCount; ++i) - { - // pick the one with the most samples per pixel - int nSampleBuf = 0; - int nSamples = 0; - glXGetFBConfigAttrib( dpy, pFBC[i], GLX_SAMPLE_BUFFERS, &nSampleBuf ); - glXGetFBConfigAttrib( dpy, pFBC[i], GLX_SAMPLES , &nSamples ); - - if ( nBestFBC < 0 || (nSampleBuf && ( nSamples > best_num_samp )) ) - { - nBestFBC = i; - best_num_samp = nSamples; - } - } - - CHECK_GL_ERROR(); - return pFBC; -} - GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC, bool bUseDoubleBufferedRendering, bool bWithSameVisualID) { if( dpy == 0 || !glXQueryExtension( dpy, NULL, NULL ) ) @@ -709,36 +653,7 @@ bool OpenGLContext::init(Display* dpy, Window win, int screen) return ImplInit(); } -bool OpenGLContext::init(Display* dpy, Pixmap pix, unsigned int width, unsigned int height, int nScreen) -{ - if(mbInitialized) - return true; - - if (!dpy) - return false; - - initOpenGLFunctionPointers(); - - SAL_INFO("vcl.opengl", "init with pixmap"); - m_aGLWin.dpy = dpy; - m_aGLWin.Width = width; - m_aGLWin.Height = height; - m_aGLWin.pix = pix; - const int attrib_list[] = { GLX_TEXTURE_FORMAT_EXT, GLX_TEXTURE_FORMAT_RGB_EXT, - GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_2D_EXT, - None}; - int best_fbc = -1; - GLXFBConfig* config = getFBConfigForPixmap(dpy, best_fbc, mbUseDoubleBufferedRendering, nScreen); - if (best_fbc == -1) - return false; - - m_aGLWin.vi = glXGetVisualFromFBConfig( dpy, config[best_fbc] ); - m_aGLWin.glPix = glXCreatePixmap(dpy, config[best_fbc], pix, attrib_list); - mbPixmap = true; - - return ImplInit(); -} bool OpenGLContext::ImplInit() { @@ -899,15 +814,12 @@ bool OpenGLContext::ImplInit() // rendering - otherwise we get errors with virtual devices PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER; - if (mbRequestVirtualDevice) - PixelFormatFront.dwFlags |= PFD_DRAW_TO_BITMAP; - else - PixelFormatFront.dwFlags |= PFD_DRAW_TO_WINDOW; + PixelFormatFront.dwFlags |= PFD_DRAW_TO_WINDOW; // we must check whether can set the MSAA int WindowPix = 0; bool bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix, - mbUseDoubleBufferedRendering, mbRequestVirtualDevice); + mbUseDoubleBufferedRendering, false); if (bMultiSampleSupport && WindowPix != 0) { m_aGLWin.bMultiSampleSupported = true; @@ -1073,14 +985,7 @@ void OpenGLContext::setWinSize(const Size& rSize) m_aGLWin.Height = rSize.Height(); } -void OpenGLContext::renderToFile() -{ - int iWidth = m_aGLWin.Width; - int iHeight = m_aGLWin.Height; - static int nIdx = 0; - OUString aName = "file:///home/moggi/Documents/work/output" + OUString::number( nIdx++ ) + ".png"; - OpenGLHelper::renderToFile(iWidth, iHeight, aName); -} + #if defined( WNT ) diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index 4f2863ece132..530df0257627 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -1054,14 +1054,6 @@ tools::PolyPolygon OutputDevice::LogicToPixel( const tools::PolyPolygon& rLogicP return aPolyPoly; } -basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly ) const -{ - basegfx::B2DPolygon aTransformedPoly = rLogicPoly; - const ::basegfx::B2DHomMatrix& rTransformationMatrix = GetViewTransformation(); - aTransformedPoly.transform( rTransformationMatrix ); - return aTransformedPoly; -} - basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly ) const { basegfx::B2DPolyPolygon aTransformedPoly = rLogicPolyPoly; @@ -1231,49 +1223,6 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygo return aTransformedPoly; } -basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly, - const MapMode& rMapMode ) const -{ - basegfx::B2DPolygon aTransformedPoly = rLogicPoly; - const ::basegfx::B2DHomMatrix& rTransformationMatrix = GetViewTransformation( rMapMode ); - aTransformedPoly.transform( rTransformationMatrix ); - return aTransformedPoly; -} - -vcl::Region OutputDevice::LogicToPixel( const vcl::Region& rLogicRegion, const MapMode& rMapMode ) const -{ - - if(rMapMode.IsDefault() || rLogicRegion.IsNull() || rLogicRegion.IsEmpty()) - { - return rLogicRegion; - } - - vcl::Region aRegion; - - if(rLogicRegion.getB2DPolyPolygon()) - { - aRegion = vcl::Region(LogicToPixel(*rLogicRegion.getB2DPolyPolygon(), rMapMode)); - } - else if(rLogicRegion.getPolyPolygon()) - { - aRegion = vcl::Region(LogicToPixel(*rLogicRegion.getPolyPolygon(), rMapMode)); - } - else if(rLogicRegion.getRegionBand()) - { - RectangleVector aRectangles; - rLogicRegion.GetRegionRectangles(aRectangles); - const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work - - // make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring - for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter) - { - aRegion.Union(LogicToPixel(*aRectIter, rMapMode)); - } - } - - return aRegion; -} - Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const { @@ -1549,40 +1498,6 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo return aTransformedPoly; } -vcl::Region OutputDevice::PixelToLogic( const vcl::Region& rDeviceRegion, const MapMode& rMapMode ) const -{ - - if(rMapMode.IsDefault() || rDeviceRegion.IsNull() || rDeviceRegion.IsEmpty()) - { - return rDeviceRegion; - } - - vcl::Region aRegion; - - if(rDeviceRegion.getB2DPolyPolygon()) - { - aRegion = vcl::Region(PixelToLogic(*rDeviceRegion.getB2DPolyPolygon(), rMapMode)); - } - else if(rDeviceRegion.getPolyPolygon()) - { - aRegion = vcl::Region(PixelToLogic(*rDeviceRegion.getPolyPolygon(), rMapMode)); - } - else if(rDeviceRegion.getRegionBand()) - { - RectangleVector aRectangles; - rDeviceRegion.GetRegionRectangles(aRectangles); - const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work - - // make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring - for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter) - { - aRegion.Union(PixelToLogic(*aRectIter, rMapMode)); - } - } - - return aRegion; -} - #define ENTER1( rSource, pMapModeSource, pMapModeDest ) \ if ( !pMapModeSource ) \ pMapModeSource = &maMapMode; \ diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index daaea0ab87f5..ecc6c8f31ed2 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -433,29 +433,6 @@ sal_uLong OutputDevice::GetColorCount() const return( ( nBitCount > 31 ) ? ULONG_MAX : ( ( (sal_uLong) 1 ) << nBitCount) ); } -css::uno::Reference< css::rendering::XCanvas > OutputDevice::GetCanvas() const -{ - css::uno::Sequence< css::uno::Any > aArg(6); - - aArg[ 0 ] = css::uno::makeAny( reinterpret_cast<sal_Int64>(this) ); - aArg[ 2 ] = css::uno::makeAny( css::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ) ); - aArg[ 3 ] = css::uno::makeAny( sal_False ); - aArg[ 5 ] = GetSystemGfxDataAny(); - - css::uno::Reference<css::uno::XComponentContext> xContext = comphelper::getProcessComponentContext(); - - // Create canvas instance with window handle - static css::uno::Reference<css::lang::XMultiComponentFactory > xCanvasFactory( css::rendering::CanvasFactory::create( xContext ) ); - - css::uno::Reference<css::rendering::XCanvas> xCanvas; - xCanvas.set( - xCanvasFactory->createInstanceWithArgumentsAndContext( - "com.sun.star.rendering.Canvas", aArg, xContext ), - css::uno::UNO_QUERY ); - - return xCanvas; -} - css::uno::Reference< css::awt::XGraphics > OutputDevice::CreateUnoGraphics() { UnoWrapperBase* pWrapper = Application::GetUnoWrapper(); diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index bc4d8228b1fc..07ff0678effe 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -113,16 +113,6 @@ Color OutputDevice::ImplDrawModeToColor( const Color& rColor ) const return aColor; } -sal_uInt16 OutputDevice::GetAlphaBitCount() const -{ - return 0; -} - -bool OutputDevice::HasAlpha() -{ - return mpAlphaVDev != nullptr; -} - void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask, const Point& rDestPt, const Size& rDestSize, const Point& rSrcPtPixel, const Size& rSrcSizePixel ) diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 8ecf0f4172bd..199888a1141a 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3433,11 +3433,6 @@ void Window::DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlig DrawSelectionBackground( rRect, highlight, bChecked, bDrawBorder, bDrawExtBorderOnly, 0, NULL, NULL ); } -void Window::DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly, Color* pSelectionTextColor ) -{ - DrawSelectionBackground( rRect, highlight, bChecked, bDrawBorder, bDrawExtBorderOnly, 0, pSelectionTextColor, NULL ); -} - void Window::DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, @@ -3872,45 +3867,6 @@ void Window::ApplySettings(vcl::RenderContext& /*rRenderContext*/) { } -void Window::DrawGradientWallpaper(vcl::RenderContext& rRenderContext, - long nX, long nY, long nWidth, long nHeight, - const Wallpaper& rWallpaper) -{ - Rectangle aBound; - GDIMetaFile* pOldMetaFile = mpMetaFile; - const bool bOldMap = mbMap; - bool bNeedGradient = true; - - aBound = Rectangle(Point(nX, nY), Size(nWidth, nHeight)); - - mpMetaFile = NULL; - rRenderContext.EnableMapMode(false); - rRenderContext.Push(PushFlags::CLIPREGION); - rRenderContext.IntersectClipRegion(Rectangle(Point(nX, nY), Size(nWidth, nHeight))); - - if (rWallpaper.GetStyle() == WALLPAPER_APPLICATIONGRADIENT) - { - // limit gradient to useful size, so that it still can be noticed - // in maximized windows - long gradientWidth = GetDesktopRectPixel().GetSize().Width(); - if (gradientWidth > 1024) - gradientWidth = 1024; - if (mnOutOffX + nWidth > gradientWidth) - rRenderContext.DrawColorWallpaper(nX, nY, nWidth, nHeight, rWallpaper.GetGradient().GetEndColor()); - if (mnOutOffX > gradientWidth) - bNeedGradient = false; - else - aBound = Rectangle(Point(-mnOutOffX, nY), Size(gradientWidth, nHeight)); - } - - if (bNeedGradient) - rRenderContext.DrawGradient(aBound, rWallpaper.GetGradient()); - - rRenderContext.Pop(); - rRenderContext.EnableMapMode(bOldMap); - mpMetaFile = pOldMetaFile; -} - const SystemEnvData* Window::GetSystemData() const { @@ -3929,21 +3885,11 @@ Any Window::GetSystemDataAny() const return aRet; } -vcl::RenderSettings& Window::GetRenderSettings() -{ - return mpWindowImpl->maRenderSettings; -} - bool Window::SupportsDoubleBuffering() const { return mpWindowImpl->mbDoubleBuffering; } -void Window::SetDoubleBuffering(bool bDoubleBuffering) -{ - mpWindowImpl->mbDoubleBuffering = bDoubleBuffering; -} - /* * The rational here is that we moved destructors to * dispose and this altered a lot of code paths, that diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 5d73c49bbb14..c1b31962b6a5 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -1578,7 +1578,7 @@ public: HandleSwipeEvent(vcl::Window *pWindow, const SalSwipeEvent& rEvt) : HandleGestureEvent(pWindow, Point(rEvt.mnX, rEvt.mnY)) { - m_aSwipeData = CommandSwipeData(rEvt.mnVelocityX, rEvt.mnVelocityY); + m_aSwipeData = CommandSwipeData(rEvt.mnVelocityX); } virtual bool CallCommand(vcl::Window *pWindow, const Point &/*rMousePos*/) SAL_OVERRIDE { |