summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/svlbitm.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-05-17 10:52:21 +0000
committerFrank Schönheit <fs@openoffice.org>2002-05-17 10:52:21 +0000
commit92faf44b8a3d87dd0940ca898a8a14eb228d35ed (patch)
tree351156885a11790e3070807783beab3df431b8cf /svtools/source/contnr/svlbitm.cxx
parente7f5cd1d39fa03c3410606665307678b7f419f42 (diff)
#98725# +SV_ENTRYFLAG_SEMITRANSPARENT - paint images semi-transparent
Diffstat (limited to 'svtools/source/contnr/svlbitm.cxx')
-rw-r--r--svtools/source/contnr/svlbitm.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/contnr/svlbitm.cxx b/svtools/source/contnr/svlbitm.cxx
index 96dde914563f..ab6ba9e591e5 100644
--- a/svtools/source/contnr/svlbitm.cxx
+++ b/svtools/source/contnr/svlbitm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svlbitm.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: fs $ $Date: 2002-05-17 08:31:59 $
+ * last change: $Author: fs $ $Date: 2002-05-17 11:52:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -475,7 +475,7 @@ void SvLBoxContextBmp::InitViewData( SvLBox* pView,SvLBoxEntry* pEntry,
}
void SvLBoxContextBmp::Paint( const Point& _rPos, SvLBox& _rDev,
- USHORT _nViewDataEntryFlags, SvLBoxEntry* /* pEntry */ )
+ USHORT _nViewDataEntryFlags, SvLBoxEntry* _pEntry )
{
DBG_CHKTHIS(SvLBoxContextBmp,0);
@@ -491,8 +491,9 @@ void SvLBoxContextBmp::Paint( const Point& _rPos, SvLBox& _rDev,
// get the image
const Image& rImage = implGetImageStore( 0 == ( _nViewDataEntryFlags & m_pImpl->m_nB2IndicatorFlags ), eMode );
+ sal_Bool _bSemiTransparent = _pEntry && ( 0 != ( SV_ENTRYFLAG_SEMITRANSPARENT & _pEntry->GetFlags( ) ) );
// draw
- _rDev.DrawImage( _rPos, rImage );
+ _rDev.DrawImage( _rPos, rImage, _bSemiTransparent ? IMAGE_DRAW_SEMITRANSPARENT : 0 );
}
SvLBoxItem* SvLBoxContextBmp::Create() const
@@ -509,4 +510,3 @@ void SvLBoxContextBmp::Clone( SvLBoxItem* pSource )
m_pImpl->m_nB2IndicatorFlags = static_cast< SvLBoxContextBmp* >( pSource )->m_pImpl->m_nB2IndicatorFlags;
}
-