Kaydet (Commit) 677fe9e4 authored tarafından August Sodora's avatar August Sodora

Remove unused code

üst 1e847dad
......@@ -161,7 +161,6 @@ public:
sal_Bool operator!=( const GDIMetaFile& rMtf ) const { return !( *this == rMtf ); }
void Clear();
sal_Bool IsEqual( const GDIMetaFile& rMtf ) const;
sal_Bool Mirror( sal_uLong nMirrorFlags );
void Move( long nX, long nY );
// additional Move method getting specifics how to handle MapMode( MAP_PIXEL )
......@@ -186,7 +185,6 @@ public:
);
void Convert( MtfConversion eConversion );
void ReplaceColors( const Color& rSearchColor, const Color& rReplaceColor, sal_uLong nTol = 0 );
void ReplaceColors( const Color* pSearchColors, const Color* rReplaceColors,
sal_uLong nColorCount, sal_uLong* pTols = NULL );
......@@ -206,10 +204,7 @@ public:
void Stop();
void WindStart();
void WindEnd();
void Wind( size_t nAction );
void WindPrev();
void WindNext();
size_t GetActionSize() const;
......@@ -224,8 +219,6 @@ public:
MetaAction* GetCurAction() const { return GetAction( nCurrentActionElement ); }
MetaAction* ReplaceAction( MetaAction* pAction, size_t nAction );
sal_Bool SaveStatus();
const Size& GetPrefSize() const { return aPrefSize; }
void SetPrefSize( const Size& rSize ) { aPrefSize = rSize; }
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment