main/sw/source/core/layout/paintfrm.cxx
/** paint margin area of a page

    OD 20.11.2002 for #104598#:
    implement paint of margin area; margin area will be painted for a
    view shell with a window and if the document is not in online layout.

    @author OD

    @param _rOutputRect
    input parameter - constant instance reference of the rectangle, for
    which an output has to be generated.

    @param _pViewShell
    input parameter - instance of the view shell, on which the output
    has to be generated.
*/
paint margin area of a page
OD 20.11.2002 for #104598#:
implement paint of margin area; margin area will be painted for a
view shell with a window and if the document is not in online layout.
paint margin area of a page OD 20 . 11 . 2002 for #104598# : implement paint of margin area ; margin area will be painted for a view shell with a window and if the document is not in online layout .
void SwPageFrm::PaintMarginArea( const SwRect& _rOutputRect,
                                 ViewShell* _pViewShell ) const
{
    if (  _pViewShell->GetWin() && !_pViewShell->GetViewOptions()->getBrowseMode() )
    {
        SwRect aPgRect = Frm();
        aPgRect._Intersection( _rOutputRect );
        if(!aPgRect.IsEmpty())
        {
            OutputDevice *pOut = _pViewShell->GetOut();
            if(pOut->GetFillColor() != aGlobalRetoucheColor)
            {
                pOut->SetFillColor(aGlobalRetoucheColor);
            }
            pOut->DrawRect(aPgRect.SVRect());
        }
    }
}
void SwPageFrm :: PaintMarginArea ( const SwRect & _rOutputRect , ViewShell * _pViewShell ) const { if ( _pViewShell -> GetWin ( ) && ! _pViewShell -> GetViewOptions ( ) -> getBrowseMode ( ) ) { SwRect aPgRect = Frm ( ) ; aPgRect . _Intersection ( _rOutputRect ) ; if ( ! aPgRect . IsEmpty ( ) ) { OutputDevice * pOut = _pViewShell -> GetOut ( ) ; if ( pOut -> GetFillColor ( ) != aGlobalRetoucheColor ) { pOut -> SetFillColor ( aGlobalRetoucheColor ) ; } pOut -> DrawRect ( aPgRect . SVRect ( ) ) ; } } }
paint margin area of a page
OD 20.11.2002 for #104598#:
implement paint of margin area; margin area will be painted for a
view shell with a window and if the document is not in online layout.
paint margin area of a page OD 20 . 11 . 2002 for #104598# : implement paint of margin area ; margin area will be painted for a view shell with a window and if the document is not in online layout .
//UUUU Simplified paint with DrawingLayer FillStyle