summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2012-01-06 11:35:29 -0500
committerAugust Sodora <augsod@gmail.com>2012-01-07 17:47:05 -0500
commit677fe9e4a886c04debb74a4fbe8b255e630d5665 (patch)
tree41a02fc115741bcbb13ac0b81452eaf4dc63cce4 /vcl
parentyet another few strings to localize (diff)
downloadcore-677fe9e4a886c04debb74a4fbe8b255e630d5665.tar.gz
core-677fe9e4a886c04debb74a4fbe8b255e630d5665.zip
Remove unused code
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/gdimtf.hxx7
-rw-r--r--vcl/source/gdi/gdimtf.cxx96
2 files changed, 0 insertions, 103 deletions
diff --git a/vcl/inc/vcl/gdimtf.hxx b/vcl/inc/vcl/gdimtf.hxx
index 6c682bd35c1f..95d8069fcdb1 100644
--- a/vcl/inc/vcl/gdimtf.hxx
+++ b/vcl/inc/vcl/gdimtf.hxx
@@ -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; }
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;