main/sw/source/core/layout/paintfrm.cxx
/** SwPageFrm::GetDrawBackgrdColor - for #102450#

    determine the color, that is respectively will be drawn as background
    for the page frame.
    Using existing method SwFrm::GetBackgroundBrush to determine the color
    that is set at the page frame respectively is parent. If none is found
    return the global retouche color

    @author OD

    @return Color
*/
:GetDrawBackgrdColor - for #102450
determine the color, that is respectively will be drawn as background
for the page frame.
Using existing method SwFrm::GetBackgroundBrush to determine the color
that is set at the page frame respectively is parent. If none is found
return the global retouche color
: GetDrawBackgrdColor - for #102450 determine the color that is respectively will be drawn as background for the page frame . Using existing method SwFrm :: GetBackgroundBrush to determine the color that is set at the page frame respectively is parent . If none is found return the global retouche color
const Color SwPageFrm::GetDrawBackgrdColor() const
{
    const SvxBrushItem* pBrushItem;
    const Color* pDummyColor;
    SwRect aDummyRect;
    drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes;
    if ( GetBackgroundBrush( aFillAttributes, pBrushItem, pDummyColor, aDummyRect, true) )
    {
        if(aFillAttributes.get() && aFillAttributes->isUsed()) 
        {
            return Color(aFillAttributes->getAverageColor(aGlobalRetoucheColor.getBColor()));
        }
        else if(pBrushItem)
        {
            const Graphic* pGraphic = pBrushItem->GetGraphic();
            if(pGraphic)
            {
            }
            else
            {
                return pBrushItem->GetColor();
            }
        }
    }
    return aGlobalRetoucheColor;
}
const Color SwPageFrm :: GetDrawBackgrdColor ( ) const { const SvxBrushItem * pBrushItem ; const Color * pDummyColor ; SwRect aDummyRect ; drawinglayer :: attribute :: SdrAllFillAttributesHelperPtr aFillAttributes ; if ( GetBackgroundBrush ( aFillAttributes , pBrushItem , pDummyColor , aDummyRect , true ) ) { if ( aFillAttributes . get ( ) && aFillAttributes -> isUsed ( ) ) { return Color ( aFillAttributes -> getAverageColor ( aGlobalRetoucheColor . getBColor ( ) ) ) ; } else if ( pBrushItem ) { const Graphic * pGraphic = pBrushItem -> GetGraphic ( ) ; if ( pGraphic ) { } else { return pBrushItem -> GetColor ( ) ; } } } return aGlobalRetoucheColor ; }
SwPageFrm::GetDrawBackgrdColor - for #102450
determine the color, that is respectively will be drawn as background
for the page frame.
SwPageFrm :: GetDrawBackgrdColor - for #102450 determine the color that is respectively will be drawn as background for the page frame .
//UUUU //UUUU // let SdrAllFillAttributesHelper do the average color calculation // #29105# when a graphic is set, it may be possible to calculate a single // color which looks good in all places of the graphic. Since it is // planned to have text edit on the overlay one day and the fallback // to aGlobalRetoucheColor returns something useful, just use that // for now. // not a graphic, use (hopefully) initialized color