diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-08-03 01:51:28 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-08-03 01:51:28 +0200 |
commit | 5fd54f2f3de2fec39b372e2f8ece0ee73f080c8f (patch) | |
tree | 580aaed1b4aab01dd2598c6f46c6d629f2de454e /svx/source | |
parent | 228d801ab1d5e1dd86b814703b2e25baf69ad07c (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index d34a5df97c42..453800ffac0d 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -320,139 +320,6 @@ void UShortCont::Sort() //////////////////////////////////////////////////////////////////////////////////////////////////// -class ImpClipMerk { - Region aClip; - bool bClip; -public: - ImpClipMerk(const OutputDevice& rOut): aClip(rOut.GetClipRegion()),bClip(rOut.IsClipRegion()) {} - void Restore(OutputDevice& rOut) - { - // Kein Clipping in die Metafileaufzeichnung - GDIMetaFile* pMtf=rOut.GetConnectMetaFile(); - if (pMtf!=NULL && (!pMtf->IsRecord() || pMtf->IsPause())) pMtf=NULL; - if (pMtf!=NULL) pMtf->Pause(sal_True); - if (bClip) rOut.SetClipRegion(aClip); - else rOut.SetClipRegion(); - if (pMtf!=NULL) pMtf->Pause(sal_False); - } -}; - -class ImpColorMerk { - Color aLineColor; - Color aFillColor; - Color aBckgrdColor; - Font aFont; -public: - ImpColorMerk(const OutputDevice& rOut): - aLineColor( rOut.GetLineColor() ), - aFillColor( rOut.GetFillColor() ), - aBckgrdColor( rOut.GetBackground().GetColor() ), - aFont (rOut.GetFont()) {} - - ImpColorMerk(const OutputDevice& rOut, sal_uInt16 nMode) - { - if ( (nMode & SDRHDC_SAVEPEN) == SDRHDC_SAVEPEN ) - aLineColor = rOut.GetLineColor(); - - if ( (nMode & SDRHDC_SAVEBRUSH) == SDRHDC_SAVEBRUSH) - { - aFillColor = rOut.GetFillColor(); - aBckgrdColor = rOut.GetBackground().GetColor(); - } - - if ( (nMode & SDRHDC_SAVEFONT) == SDRHDC_SAVEFONT) - aFont=rOut.GetFont(); - } - - void Restore(OutputDevice& rOut, sal_uInt16 nMode=SDRHDC_SAVEPENANDBRUSHANDFONT) - { - if ( (nMode & SDRHDC_SAVEPEN) == SDRHDC_SAVEPEN) - rOut.SetLineColor( aLineColor ); - - if ( (nMode & SDRHDC_SAVEBRUSH) == SDRHDC_SAVEBRUSH) - { - rOut.SetFillColor( aFillColor ); - rOut.SetBackground( Wallpaper( aBckgrdColor ) ); - } - if ((nMode & SDRHDC_SAVEFONT) ==SDRHDC_SAVEFONT) - { - if (!rOut.GetFont().IsSameInstance(aFont)) - { - rOut.SetFont(aFont); - } - } - } - - const Color& GetLineColor() const { return aLineColor; } -}; - -ImpSdrHdcMerk::ImpSdrHdcMerk(const OutputDevice& rOut, sal_uInt16 nNewMode, bool bAutoMerk): - pFarbMerk(NULL), - pClipMerk(NULL), - pLineColorMerk(NULL), - nMode(nNewMode) -{ - if (bAutoMerk) Save(rOut); -} - -ImpSdrHdcMerk::~ImpSdrHdcMerk() -{ - if (pFarbMerk!=NULL) delete pFarbMerk; - if (pClipMerk!=NULL) delete pClipMerk; - if (pLineColorMerk !=NULL) delete pLineColorMerk; -} - -void ImpSdrHdcMerk::Save(const OutputDevice& rOut) -{ - if (pFarbMerk!=NULL) - { - delete pFarbMerk; - pFarbMerk=NULL; - } - if (pClipMerk!=NULL) - { - delete pClipMerk; - pClipMerk=NULL; - } - if (pLineColorMerk !=NULL) - { - delete pLineColorMerk ; - pLineColorMerk =NULL; - } - if ((nMode & SDRHDC_SAVECLIPPING) ==SDRHDC_SAVECLIPPING) - pClipMerk=new ImpClipMerk(rOut); - - sal_uInt16 nCol=nMode & SDRHDC_SAVEPENANDBRUSHANDFONT; - - if (nCol==SDRHDC_SAVEPEN) - pLineColorMerk=new Color( rOut.GetLineColor() ); - else if (nCol==SDRHDC_SAVEPENANDBRUSHANDFONT) - pFarbMerk=new ImpColorMerk(rOut); - else if (nCol!=0) - pFarbMerk=new ImpColorMerk(rOut,nCol); -} - -void ImpSdrHdcMerk::Restore(OutputDevice& rOut, sal_uInt16 nMask) const -{ - nMask&=nMode; // nur restaurieren, was auch gesichert wurde - - if ((nMask & SDRHDC_SAVECLIPPING) ==SDRHDC_SAVECLIPPING && pClipMerk!=NULL) - pClipMerk->Restore(rOut); - - sal_uInt16 nCol=nMask & SDRHDC_SAVEPENANDBRUSHANDFONT; - - if (nCol==SDRHDC_SAVEPEN) - { - if (pLineColorMerk!=NULL) - rOut.SetLineColor(*pLineColorMerk); - else if (pFarbMerk!=NULL) - rOut.SetLineColor( pFarbMerk->GetLineColor() ); - } else if (nCol!=0 && pFarbMerk!=NULL) - pFarbMerk->Restore(rOut,nCol); -} - -//////////////////////////////////////////////////////////////////////////////////////////////////// - void SdrLinkList::Clear() { unsigned nAnz=GetLinkCount(); |