main/sw/source/core/layout/paintfrm.cxx
/// OD 06.08.2002 #99657# - Note: the transparency of the background graphic
///     is saved in SvxBrushItem.GetGraphicObject(<shell>).GetAttr().Set/GetTransparency()
///     and is considered in the drawing of the graphic.
///     Thus, to provide transparent background graphic for text frames nothing
///     has to be coded.
/// OD 25.09.2002 #99739# - use align rectangle for drawing graphic
/// OD 25.09.2002 #99739# - pixel-align coordinations for drawing graphic.
/// OD 17.10.2002 #103876# - outsource code for drawing background of the graphic
///     with a background color in method <lcl_DrawGraphicBackgrd>
///     Also, change type of <bGrfNum> and <bClip> from <sal_Bool> to <bool>.
OD 06.08.2002 #99657# - Note: the transparency of the background graphic
is saved in SvxBrushItem.GetGraphicObject().GetAttr().Set/GetTransparency()
and is considered in the drawing of the graphic.
Thus, to provide transparent background graphic for text frames nothing
has to be coded.
OD 25.09.2002 #99739# - use align rectangle for drawing graphic
OD 25.09.2002 #99739# - pixel-align coordinations for drawing graphic.
OD 17.10.2002 #103876# - outsource code for drawing background of the graphic
with a background color in method 
Also, change type of  and  from  to .
OD 06 . 08 . 2002 #99657# - Note : the transparency of the background graphic is saved in SvxBrushItem . GetGraphicObject () . GetAttr () . Set / GetTransparency () and is considered in the drawing of the graphic . Thus to provide transparent background graphic for text frames nothing has to be coded . OD 25 . 09 . 2002 #99739# - use align rectangle for drawing graphic OD 25 . 09 . 2002 #99739# - pixel - align coordinations for drawing graphic . OD 17 . 10 . 2002 #103876# - outsource code for drawing background of the graphic with a background color in method Also change type of and from to .
void lcl_DrawGraphic( const SvxBrushItem& rBrush, OutputDevice *pOut,
					  ViewShell &rSh, const SwRect &rGrf, const SwRect &rOut,
                      bool bClip, bool bGrfNum,
                      bool bBackgrdAlreadyDrawn = false )
{
    SwRect aAlignedGrfRect = rGrf;
    ::SwAlignRect( aAlignedGrfRect, &rSh );
    const bool bNotInside = bClip && !rOut.IsInside( aAlignedGrfRect );
	if ( bNotInside )
	{
		pOut->Push( PUSH_CLIPREGION );
		pOut->IntersectClipRegion( rOut.SVRect() );
	}
    ((SvxBrushItem&)rBrush).SetDoneLink( Link() );
	GraphicObject *pGrf = (GraphicObject*)rBrush.GetGraphicObject();
    ::lcl_DrawGraphicBackgrd( rBrush, pOut, aAlignedGrfRect, *pGrf, bGrfNum, bBackgrdAlreadyDrawn );
    ::SwAlignGrfRect( &aAlignedGrfRect, *pOut );
    pGrf->DrawWithPDFHandling( *pOut, aAlignedGrfRect.Pos(), aAlignedGrfRect.SSize() );
	if ( bNotInside )
		pOut->Pop();
}
void lcl_DrawGraphic ( const SvxBrushItem & rBrush , OutputDevice * pOut , ViewShell & rSh , const SwRect & rGrf , const SwRect & rOut , bool bClip , bool bGrfNum , bool bBackgrdAlreadyDrawn = false ) { SwRect aAlignedGrfRect = rGrf ; :: SwAlignRect ( aAlignedGrfRect , & rSh ) ; const bool bNotInside = bClip && ! rOut . IsInside ( aAlignedGrfRect ) ; if ( bNotInside ) { pOut -> Push ( PUSH_CLIPREGION ) ; pOut -> IntersectClipRegion ( rOut . SVRect ( ) ) ; } ( ( SvxBrushItem & ) rBrush ) . SetDoneLink ( Link ( ) ) ; GraphicObject * pGrf = ( GraphicObject * ) rBrush . GetGraphicObject ( ) ; :: lcl_DrawGraphicBackgrd ( rBrush , pOut , aAlignedGrfRect , * pGrf , bGrfNum , bBackgrdAlreadyDrawn ) ; :: SwAlignGrfRect ( & aAlignedGrfRect , * pOut ) ; pGrf -> DrawWithPDFHandling ( * pOut , aAlignedGrfRect . Pos ( ) , aAlignedGrfRect . SSize ( ) ) ; if ( bNotInside ) pOut -> Pop ( ) ; }
OD 06.08.2002 #99657# - Note: the transparency of the background graphic
is saved in SvxBrushItem.GetGraphicObject(<shell>).GetAttr().Set/GetTransparency()
and is considered in the drawing of the graphic.
OD 06 . 08 . 2002 #99657# - Note : the transparency of the background graphic is saved in SvxBrushItem . GetGraphicObject ( <shell > ) . GetAttr () . Set / GetTransparency () and is considered in the drawing of the graphic .
/// OD 02.09.2002 #99657# /// add parameter <bBackgrdAlreadyDrawn> to indicate /// that the background is already drawn. /// OD 25.09.2002 #99739# - calculate align rectangle from parameter <rGrf> ///     and use aligned rectangle <aAlignedGrfRect> in the following code /// OD 17.10.2002 #103876# - change type from <sal_Bool> to <bool>. //Hier kein Link, wir wollen die Grafik synchron laden! /// OD 17.10.2002 #103876# - outsourcing drawing of background with a background color. /// OD 25.09.2002 #99739# - /// Because for drawing a graphic left-top-corner and size coordinations are /// used, these coordinations have to be determined on pixel level.