diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2007-07-06 09:05:46 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2007-07-06 09:05:46 +0000 |
commit | 374622b1f2cbb96c9c2f67e16d8fdeb418a839d9 (patch) | |
tree | e2f472adfdbf6992fb0e07e3c715ac0ba23420ed /svtools/source/edit | |
parent | 1c1008127a2f12d6537f2ba5900fd1f6684b0953 (diff) |
INTEGRATION: CWS oj14 (1.53.26); FILE MERGED
2007/02/15 14:17:06 pl 1.53.26.1: #74191# enable PaintTransparent MultiLineEdit
Diffstat (limited to 'svtools/source/edit')
-rw-r--r-- | svtools/source/edit/textview.cxx | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index a0b3d8c7204b..1e47a5343e0f 100644 --- a/svtools/source/edit/textview.cxx +++ b/svtools/source/edit/textview.cxx @@ -4,9 +4,9 @@ * * $RCSfile: textview.cxx,v $ * - * $Revision: 1.54 $ + * $Revision: 1.55 $ * - * last change: $Author: hr $ $Date: 2007-06-27 21:32:13 $ + * last change: $Author: rt $ $Date: 2007-07-06 10:05:46 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -379,7 +379,8 @@ void TextView::ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle c aColor.SetTransparency( 0 ); if ( aColor != aFont.GetFillColor() ) { - aFont.SetTransparent( FALSE ); + if( aFont.IsTransparent() ) + aColor = Color( COL_TRANSPARENT ); aFont.SetFillColor( aColor ); mpImpl->mpTextEngine->maFont = aFont; } @@ -569,15 +570,20 @@ void TextView::ImpShowHideSelection( BOOL bShow, const TextSelection* pRange ) } else { - Rectangle aOutArea( Point( 0, 0 ), mpImpl->mpWindow->GetOutputSizePixel() ); - Point aStartPos( ImpGetOutputStartPos( mpImpl->maStartDocPos ) ); - TextSelection aRange( *pRangeOrSelection ); - aRange.Justify(); - BOOL bVisCursor = mpImpl->mpCursor->IsVisible(); - mpImpl->mpCursor->Hide(); - ImpPaint( mpImpl->mpWindow, aStartPos, &aOutArea, &aRange, bShow ? &mpImpl->maSelection : NULL ); - if ( bVisCursor ) - mpImpl->mpCursor->Show(); + if( mpImpl->mpWindow->IsPaintTransparent() ) + mpImpl->mpWindow->Invalidate(); + else + { + Rectangle aOutArea( Point( 0, 0 ), mpImpl->mpWindow->GetOutputSizePixel() ); + Point aStartPos( ImpGetOutputStartPos( mpImpl->maStartDocPos ) ); + TextSelection aRange( *pRangeOrSelection ); + aRange.Justify(); + BOOL bVisCursor = mpImpl->mpCursor->IsVisible(); + mpImpl->mpCursor->Hide(); + ImpPaint( mpImpl->mpWindow, aStartPos, &aOutArea, &aRange, bShow ? &mpImpl->maSelection : NULL ); + if ( bVisCursor ) + mpImpl->mpCursor->Show(); + } } } } |