Tag: cws_src680_dba202d
User: oj      
Date: 05/12/13 04:09:04

Modified:
 /dba/dbaccess/source/ui/control/
  listviewitems.cxx

Log:
 #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.3.60.1
Delta lines:  +9 -13
--------------------
--- listviewitems.cxx   8 Sep 2005 14:34:16 -0000       1.3
+++ listviewitems.cxx   13 Dec 2005 12:09:00 -0000      1.3.60.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: listviewitems.cxx,v $
  *
- *  $Revision: 1.3 $
+ *  $Revision: 1.3.60.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 14:34:16 $
+ *  last change: $Author: oj $ $Date: 2005/12/13 12:09:00 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -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]

Reply via email to