diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-05 23:33:23 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-06 17:38:16 +0100 |
commit | c7c6be20b026b6409a2bc79f027297d78bb395d9 (patch) | |
tree | 516fceaa0d837fe52f59b540f97ca881ba1701c0 /sw/source/core/layout/paintfrm.cxx | |
parent | 599c7662a153b5202721118c2f802011fa1e18d8 (diff) |
Remove some dead code
Diffstat (limited to 'sw/source/core/layout/paintfrm.cxx')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index f4888e812df7..b65c455949bc 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -1524,16 +1524,6 @@ void MA_FASTCALL lcl_SubtractFlys( const SwFrm *pFrm, const SwPageFrm *pPage, pRetoucheFly = 0; } -// --> OD 2008-05-16 #i84659# - no longer needed -//inline BOOL IsShortCut( const SwRect &rRect, const SwRect &rFrmRect ) -//{ -// //Wenn der Frm vollstaendig rechts neben bzw. unter dem -// //Rect sitzt ist's genug mit Painten. -// return rFrmRect.Top() > rRect.Bottom(); -// // PAGES01 || (rFrmRect.Left() > rRect.Right()) ); -//} -// <-- - //---------------- Ausgabe fuer das BrushItem ---------------- /** lcl_DrawGraphicBackgrd - local help method to draw a background for a graphic @@ -2807,8 +2797,6 @@ void SwRootFrm::Paint( const SwRect& rRect, const SwPrtOptions *pPrintData ) con // --> OD 2008-10-07 #i92745# // Extend check on certain states of the 'current' <ViewShell> instance to // all existing <ViewShell> instances. -// if ( !pSh->IsInEndAction() && !pSh->IsPaintInProgress() && -// (!pSh->Imp()->IsAction() || !pSh->Imp()->GetLayAction().IsActionInProgress() ) ) bool bPerformLayoutAction( true ); { ViewShell* pTmpViewShell = pSh; @@ -3571,7 +3559,6 @@ void SwFlyFrm::Paint( const SwRect& rRect, const SwPrtOptions* /* pPrintData */ // --> OD 2007-12-13 #i80822# // suppress painting of background in printing area for // non-transparent graphics. -// if ( bPaintMarginOnly ) if ( bPaintMarginOnly || ( pNoTxt && !bIsGraphicTransparent ) ) // <-- @@ -3589,7 +3576,6 @@ void SwFlyFrm::Paint( const SwRect& rRect, const SwPrtOptions* /* pPrintData */ // used in <SwNoTxtFrm::Paint(..)> to set the clip region // for painting the graphic/OLE. Thus, the clip region is // also applied for the PDF export. -// if ( !pOut->GetConnectMetaFile() || pOut->GetOutDevType() == OUTDEV_PRINTER ) ViewShell *pSh = GetShell(); if ( !pOut->GetConnectMetaFile() || !pSh->GetWin() ) // <-- @@ -4707,9 +4693,6 @@ void SwFrm::PaintBorder( const SwRect& rRect, const SwPageFrm *pPage, { const SwFrm* pDirRefFrm = IsCellFrm() ? FindTabFrm() : this; SWRECTFN( pDirRefFrm ) - // OD 19.05.2003 #109667# - use new method <lcl_PaintLeftRightLine(..)> - //::lcl_PaintLeftLine ( this, pPage, aRect, rRect, rAttrs, fnRect ); - //::lcl_PaintRightLine ( this, pPage, aRect, rRect, rAttrs, fnRect ); ::lcl_PaintLeftRightLine ( sal_True, *(this), *(pPage), aRect, rRect, rAttrs, fnRect ); ::lcl_PaintLeftRightLine ( sal_False, *(this), *(pPage), aRect, rRect, rAttrs, fnRect ); if ( !IsCntntFrm() || rAttrs.GetTopLine( *(this) ) ) @@ -4722,14 +4705,10 @@ void SwFrm::PaintBorder( const SwRect& rRect, const SwPageFrm *pPage, SwBorderAttrAccess aAccess( SwFrm::GetCache(), pCellFrmForTopBorderAttrs ); const SwBorderAttrs &rTopAttrs = *aAccess.Get(); - // OD 19.05.2003 #109667# - use new method <lcl_PaintTopBottomLine(..)> - //::lcl_PaintTopLine( this, pPage, aRect, rRect, rTopAttrs, fnRect ); ::lcl_PaintTopBottomLine( sal_True, *(this), *(pPage), aRect, rRect, rTopAttrs, fnRect ); } else { - // OD 19.05.2003 #109667# - use new method <lcl_PaintTopBottomLine(..)> - //::lcl_PaintTopLine( this, pPage, aRect, rRect, rAttrs, fnRect ); ::lcl_PaintTopBottomLine( sal_True, *(this), *(pPage), aRect, rRect, rAttrs, fnRect ); } } @@ -4743,14 +4722,10 @@ void SwFrm::PaintBorder( const SwRect& rRect, const SwPageFrm *pPage, SwBorderAttrAccess aAccess( SwFrm::GetCache(), pCellFrmForBottomBorderAttrs ); const SwBorderAttrs &rBottomAttrs = *aAccess.Get(); - // OD 19.05.2003 #109667# - use new method <lcl_PaintTopBottomLine(..)> - //::lcl_PaintBottomLine(this, pPage, aRect, rRect, rBottomAttrs, fnRect); ::lcl_PaintTopBottomLine(sal_False, *(this), *(pPage), aRect, rRect, rBottomAttrs, fnRect); } else { - // OD 19.05.2003 #109667# - use new method <lcl_PaintTopBottomLine(..)> - //::lcl_PaintBottomLine(this, pPage, aRect, rRect, rAttrs, fnRect); ::lcl_PaintTopBottomLine(sal_False, *(this), *(pPage), aRect, rRect, rAttrs, fnRect); } } @@ -5232,17 +5207,6 @@ void SwPageFrm::PaintMarginArea( const SwRect& _rOutputRect, } } -// ---------------------------------------------------------------------- -// -// const SwPageFrm::mnBorderPxWidth, const SwPageFrm::mnShadowPxWidth -// SwPageFrm::GetBorderRect (..), SwPageFrm::GetRightShadowRect(..), -// SwPageFrm::GetBottomShadowRect(..), -// SwPageFrm::PaintBorderAndShadow(..), -// SwPageFrm::GetBorderAndShadowBoundRect(..) -// -// OD 12.02.2003 for #i9719# and #105645# -// ---------------------------------------------------------------------- - const sal_Int8 SwPageFrm::mnBorderPxWidth = 1; const sal_Int8 SwPageFrm::mnShadowPxWidth = 2; |