summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-22 00:10:04 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-22 00:52:32 +0100
commitef026f335902a278f8594d612826508277d81bff (patch)
treedf455bffc4dac7380fbd5dde992ba83b7ecbe804 /sw
parentunusedcode.easy: vcl: remove DrawNativeControlText() (diff)
downloadcore-ef026f335902a278f8594d612826508277d81bff.tar.gz
core-ef026f335902a278f8594d612826508277d81bff.zip
unusedcode.easy: remove some more
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/txtfly.cxx77
-rw-r--r--sw/source/core/text/txtfly.hxx8
2 files changed, 0 insertions, 85 deletions
diff --git a/sw/source/core/text/txtfly.cxx b/sw/source/core/text/txtfly.cxx
index c2695f935a02..0fc70b8619f9 100644
--- a/sw/source/core/text/txtfly.cxx
+++ b/sw/source/core/text/txtfly.cxx
@@ -1734,83 +1734,6 @@ const SwRect SwContourCache::ContourRect( const SwFmt* pFmt,
}
/*************************************************************************
- * SwContourCache::ShowContour()
- * zeichnet die PolyPolygone des Caches zu Debugzwecken.
- *************************************************************************/
-#ifdef DBG_UTIL
-void SwContourCache::ShowContour( OutputDevice* pOut, const SdrObject* pObj,
- const Color& rClosedColor, const Color& rOpenColor )
-{
- MSHORT nPos = 0; // Suche im Cache ...
- while( nPos < POLY_CNT && pObj != pSdrObj[ nPos ] )
- ++nPos;
- if( POLY_CNT != nPos )
- {
- const PolyPolygon* pPol = pTextRanger[ nPos ]->GetLinePolygon();
- if( !pPol )
- pPol = &(pTextRanger[ nPos ]->GetPolyPolygon());
- for( MSHORT i = 0; i < pPol->Count(); ++i )
- {
- pOut->SetLineColor( rOpenColor );
- const Polygon& rPol = (*pPol)[ i ];
- MSHORT nCount = rPol.GetSize();
- if( nCount > 1 && rPol[ 0 ] == rPol[ nCount - 1 ] )
- pOut->SetLineColor( rClosedColor );
- pOut->DrawPolygon( rPol );
- }
- static KSHORT nRadius = 0;
- if( nRadius )
- {
- KSHORT nHalf = nRadius / 2;
- Size aSz( nRadius, nRadius );
- for( MSHORT i = 0; i < pPol->Count(); ++i )
- {
- const Polygon& rPol = (*pPol)[ i ];
- MSHORT nCount = rPol.GetSize();
- for( MSHORT k = 0; k < nCount; ++k )
- {
- Point aPt( rPol[ k ] );
- aPt.X() -= nHalf;
- aPt.Y() -= nHalf;
- Rectangle aTmp( aPt, aSz );
- pOut->DrawEllipse( aTmp );
- }
- }
- }
- }
-}
-#endif
-
-/*************************************************************************
- * SwTxtFly::ShowContour()
- * zeichnet die PolyPolygone des Caches zu Debugzwecken.
- *************************************************************************/
-#ifdef DBG_UTIL
-void SwTxtFly::ShowContour( OutputDevice* pOut )
-{
- MSHORT nFlyCount;
- if( bOn && ( 0 != ( nFlyCount = static_cast<sal_uInt16>(GetAnchoredObjList()->size() ) ) ) )
- {
- Color aRedColor( COL_LIGHTRED );
- Color aGreenColor( COL_LIGHTGREEN );
- Color aSaveColor( pOut->GetLineColor() );
- for( MSHORT j = 0; j < nFlyCount; ++j )
- {
- const SwAnchoredObject* pObj = (*mpAnchoredObjList)[ j ];
- if( !pObj->GetFrmFmt().GetSurround().IsContour() )
- {
- Rectangle aRect = pObj->GetObjRectWithSpaces().SVRect();
- pOut->DrawRect( aRect );
- continue;
- }
- pContourCache->ShowContour( pOut, pObj->GetDrawObj(), aRedColor, aGreenColor );
- }
- pOut->SetLineColor( aSaveColor );
- }
-}
-#endif
-
-/*************************************************************************
* SwTxtFly::ForEach()
*
* sucht nach dem ersten Objekt, welches mit dem Rechteck ueberlappt
diff --git a/sw/source/core/text/txtfly.hxx b/sw/source/core/text/txtfly.hxx
index 9b559bcb32d9..336b3dcf7d2f 100644
--- a/sw/source/core/text/txtfly.hxx
+++ b/sw/source/core/text/txtfly.hxx
@@ -89,10 +89,6 @@ public:
const SwTxtFrm* pFrm,
const long nXPos,
const sal_Bool bRight );
-#ifdef DBG_UTIL
- void ShowContour( OutputDevice* pOut, const SdrObject* pObj,
- const Color& rClosedColor, const Color& rOpenColor );
-#endif
};
/*************************************************************************
@@ -189,10 +185,6 @@ public:
{
mbIgnoreObjsInHeaderFooter = _bNew;
}
-
-#ifdef DBG_UTIL
- void ShowContour( OutputDevice* pOut );
-#endif
};
// Wenn in das rRect (meist die aktuelle Zeile) kein freifliegender