main/sw/source/core/layout/paintfrm.cxx
/** FlyFrm::IsBackgroundTransparent - for feature #99657#

    OD 12.08.2002
    determines, if background of fly frame has to be drawn transparent
    declaration found in /core/inc/flyfrm.cxx
    OD 08.10.2002 #103898# - If the background of the fly frame itself is not
    transparent and the background is inherited from its parent/grandparent,
    the background brush, used for drawing, has to be investigated for transparency.

    @author OD

    @return true, if background is transparent drawn.
*/
:IsBackgroundTransparent - for feature #99657
OD 12.08.2002
determines, if background of fly frame has to be drawn transparent
declaration found in /core/inc/flyfrm.cxx
OD 08.10.2002 #103898# - If the background of the fly frame itself is not
transparent and the background is inherited from its parent/grandparent,
the background brush, used for drawing, has to be investigated for transparency.
: IsBackgroundTransparent - for feature #99657 OD 12 . 08 . 2002 determines if background of fly frame has to be drawn transparent declaration found in / core / inc / flyfrm . cxx OD 08 . 10 . 2002 #103898# - If the background of the fly frame itself is not transparent and the background is inherited from its parent / grandparent the background brush used for drawing has to be investigated for transparency .
sal_Bool SwFlyFrm::IsBackgroundTransparent() const
{
    sal_Bool bBackgroundTransparent = GetFmt()->IsBackgroundTransparent();
    if ( !bBackgroundTransparent &&
         static_cast<const SwFlyFrmFmt*>(GetFmt())->IsBackgroundBrushInherited() )
    {
        const SvxBrushItem* pBackgrdBrush = 0;
        const Color* pSectionTOXColor = 0;
        SwRect aDummyRect;
        drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFillAttributes;
        if ( GetBackgroundBrush( aFillAttributes, pBackgrdBrush, pSectionTOXColor, aDummyRect, false) )
        {
            if ( pSectionTOXColor &&
                 (pSectionTOXColor->GetTransparency() != 0) &&
                 (pSectionTOXColor->GetColor() != COL_TRANSPARENT) )
            {
                bBackgroundTransparent = sal_True;
            }
            else if(aFillAttributes.get() && aFillAttributes->isUsed()) 
            {
                bBackgroundTransparent = aFillAttributes->isTransparent();
            }
            else if ( pBackgrdBrush )
            {
                if ( (pBackgrdBrush->GetColor().GetTransparency() != 0) &&
                     (pBackgrdBrush->GetColor() != COL_TRANSPARENT) )
                {
                    bBackgroundTransparent = sal_True;
                }
                else
                {
                    const GraphicObject *pTmpGrf =
                            static_cast<const GraphicObject*>(pBackgrdBrush->GetGraphicObject());
                    if ( (pTmpGrf) &&
                         (pTmpGrf->GetAttr().GetTransparency() != 0)
                       )
                    {
                        bBackgroundTransparent = sal_True;
                    }
                }
            }
        }
    }
    return bBackgroundTransparent;
}
sal_Bool SwFlyFrm :: IsBackgroundTransparent ( ) const { sal_Bool bBackgroundTransparent = GetFmt ( ) -> IsBackgroundTransparent ( ) ; if ( ! bBackgroundTransparent && static_cast < const SwFlyFrmFmt * > ( GetFmt ( ) ) -> IsBackgroundBrushInherited ( ) ) { const SvxBrushItem * pBackgrdBrush = 0 ; const Color * pSectionTOXColor = 0 ; SwRect aDummyRect ; drawinglayer :: attribute :: SdrAllFillAttributesHelperPtr aFillAttributes ; if ( GetBackgroundBrush ( aFillAttributes , pBackgrdBrush , pSectionTOXColor , aDummyRect , false ) ) { if ( pSectionTOXColor && ( pSectionTOXColor -> GetTransparency ( ) != 0 ) && ( pSectionTOXColor -> GetColor ( ) != COL_TRANSPARENT ) ) { bBackgroundTransparent = sal_True ; } else if ( aFillAttributes . get ( ) && aFillAttributes -> isUsed ( ) ) { bBackgroundTransparent = aFillAttributes -> isTransparent ( ) ; } else if ( pBackgrdBrush ) { if ( ( pBackgrdBrush -> GetColor ( ) . GetTransparency ( ) != 0 ) && ( pBackgrdBrush -> GetColor ( ) != COL_TRANSPARENT ) ) { bBackgroundTransparent = sal_True ; } else { const GraphicObject * pTmpGrf = static_cast < const GraphicObject * > ( pBackgrdBrush -> GetGraphicObject ( ) ) ; if ( ( pTmpGrf ) && ( pTmpGrf -> GetAttr ( ) . GetTransparency ( ) != 0 ) ) { bBackgroundTransparent = sal_True ; } } } } } return bBackgroundTransparent ; }
FlyFrm::IsBackgroundTransparent - for feature #99657
OD 12.08.2002
determines, if background of fly frame has to be drawn transparent
declaration found in /core/inc/flyfrm.cxx
OD 08.10.2002 #103898# - If the background of the fly frame itself is not
transparent and the background is inherited from its parent/grandparent,
the background brush, used for drawing, has to be investigated for transparency.
FlyFrm :: IsBackgroundTransparent - for feature #99657 OD 12 . 08 . 2002 determines if background of fly frame has to be drawn transparent declaration found in / core / inc / flyfrm . cxx OD 08 . 10 . 2002 #103898# - If the background of the fly frame itself is not transparent and the background is inherited from its parent / grandparent the background brush used for drawing has to be investigated for transparency .
//UUUU //UUUU