diff options
author | August Sodora <augsod@gmail.com> | 2012-01-06 11:35:29 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2012-01-07 17:47:05 -0500 |
commit | 677fe9e4a886c04debb74a4fbe8b255e630d5665 (patch) | |
tree | 41a02fc115741bcbb13ac0b81452eaf4dc63cce4 /vcl/source | |
parent | 1e847daddfb4002278049ada523834c196aa8b10 (diff) |
Remove unused code
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index c90624172627..38d66edb8d4d 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -292,34 +292,6 @@ sal_Bool GDIMetaFile::operator==( const GDIMetaFile& rMtf ) const // ------------------------------------------------------------------------ -sal_Bool GDIMetaFile::IsEqual( const GDIMetaFile& rMtf ) const -{ - const size_t nObjCount = aList.size(); - sal_Bool bRet = sal_False; - - if( this == &rMtf ) - bRet = sal_True; - else if( rMtf.GetActionSize() == nObjCount && - rMtf.GetPrefSize() == aPrefSize && - rMtf.GetPrefMapMode() == aPrefMapMode ) - { - bRet = sal_True; - - for( size_t n = 0; n < nObjCount; n++ ) - { - if( !aList[ n ]->IsEqual( *(rMtf.GetAction( n )) ) ) - { - bRet = sal_False; - break; - } - } - } - - return bRet; -} - -// ------------------------------------------------------------------------ - void GDIMetaFile::Clear() { if( bRecord ) @@ -735,22 +707,6 @@ void GDIMetaFile::WindStart() // ------------------------------------------------------------------------ -void GDIMetaFile::WindEnd() -{ - if( !bRecord ) - nCurrentActionElement = aList.empty() ? 0 : (aList.size() - 1); -} - -// ------------------------------------------------------------------------ - -void GDIMetaFile::Wind( size_t nActionPos ) -{ - if( !bRecord ) - nCurrentActionElement = nActionPos < aList.size() ? nActionPos : nCurrentActionElement; -} - -// ------------------------------------------------------------------------ - void GDIMetaFile::WindPrev() { if( !bRecord ) @@ -760,15 +716,6 @@ void GDIMetaFile::WindPrev() // ------------------------------------------------------------------------ -void GDIMetaFile::WindNext() -{ - if( !bRecord ) - if ( nCurrentActionElement + 1 < aList.size() ) - ++nCurrentActionElement; -} - -// ------------------------------------------------------------------------ - void GDIMetaFile::AddAction( MetaAction* pAction ) { aList.push_back( pAction ); @@ -829,42 +776,6 @@ void GDIMetaFile::RemoveAction( size_t nPos ) // ------------------------------------------------------------------------ -sal_Bool GDIMetaFile::SaveStatus() -{ - if ( bRecord ) - { - if ( bPause ) - Linker( pOutDev, sal_True ); - - AddAction( new MetaLineColorAction( pOutDev->GetLineColor(), - pOutDev->IsLineColor() ) ); - AddAction( new MetaFillColorAction( pOutDev->GetFillColor(), - pOutDev->IsFillColor() ) ); - AddAction( new MetaFontAction( pOutDev->GetFont() ) ); - AddAction( new MetaTextColorAction( pOutDev->GetTextColor() ) ); - AddAction( new MetaTextFillColorAction( pOutDev->GetTextFillColor(), - pOutDev->IsTextFillColor() ) ); - AddAction( new MetaTextLineColorAction( pOutDev->GetTextLineColor(), - pOutDev->IsTextLineColor() ) ); - AddAction( new MetaOverlineColorAction( pOutDev->GetOverlineColor(), - pOutDev->IsOverlineColor() ) ); - AddAction( new MetaTextAlignAction( pOutDev->GetTextAlign() ) ); - AddAction( new MetaRasterOpAction( pOutDev->GetRasterOp() ) ); - AddAction( new MetaMapModeAction( pOutDev->GetMapMode() ) ); - AddAction( new MetaClipRegionAction( pOutDev->GetClipRegion(), - pOutDev->IsClipRegion() ) ); - - if ( bPause ) - Linker( pOutDev, sal_False ); - - return sal_True; - } - else - return sal_False; -} - -// ------------------------------------------------------------------------ - sal_Bool GDIMetaFile::Mirror( sal_uLong nMirrorFlags ) { const Size aOldPrefSize( GetPrefSize() ); @@ -2491,13 +2402,6 @@ void GDIMetaFile::Convert( MtfConversion eConversion ) // ------------------------------------------------------------------------ -void GDIMetaFile::ReplaceColors( const Color& rSearchColor, const Color& rReplaceColor, sal_uLong nTol ) -{ - ReplaceColors( &rSearchColor, &rReplaceColor, 1, &nTol ); -} - -// ------------------------------------------------------------------------ - void GDIMetaFile::ReplaceColors( const Color* pSearchColors, const Color* pReplaceColors, sal_uLong nColorCount, sal_uLong* pTols ) { ImplColReplaceParam aColParam; |