User: kz Date: 06/01/31 10:41:30 Modified: /dba/dbaccess/source/ui/control/ listviewitems.cxx
Log: INTEGRATION: CWS dba202d (1.3.60); FILE MERGED 2005/12/13 12:09:00 oj 1.3.60.1: #i58948# push and pop font File Changes: Directory: /dba/dbaccess/source/ui/control/ =========================================== File [changed]: listviewitems.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/control/listviewitems.cxx?r1=1.3&r2=1.4 Delta lines: +6 -10 -------------------- --- listviewitems.cxx 8 Sep 2005 14:34:16 -0000 1.3 +++ listviewitems.cxx 31 Jan 2006 18:41:27 -0000 1.4 @@ -36,7 +36,6 @@ #ifndef _DBAUI_LISTVIEWITEMS_HXX_ #include "listviewitems.hxx" #endif - //........................................................................ namespace dbaui { @@ -51,14 +50,12 @@ SvLBoxString::InitViewData(pView,pEntry, _pViewData); if (!_pViewData) _pViewData = pView->GetViewDataItem( pEntry, this ); - - Font aOldFont( pView->GetFont()); - Font aFont( aOldFont ); + pView->Push(PUSH_ALL); + Font aFont( pView->GetFont()); aFont.SetWeight(WEIGHT_BOLD); pView->SetFont( aFont ); - _pViewData->aSize = Size(pView->GetTextWidth(GetText()), pView->GetTextHeight()); - pView->SetFont( aOldFont ); + pView->Pop(); } //------------------------------------------------------------------------ @@ -72,14 +69,13 @@ { if (m_bEmphasized) { - Font aOldFont( rDev.GetFont()); - Font aFont( aOldFont ); + rDev.Push(PUSH_ALL); + Font aFont( rDev.GetFont()); aFont.SetWeight(WEIGHT_BOLD); rDev.SetFont( aFont ); - Point aPos(rPos); rDev.DrawText( aPos, GetText() ); - rDev.SetFont( aOldFont ); + rDev.Pop(); } else SvLBoxString::Paint(rPos, rDev, nFlags, pEntry); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
