User: hr      
Date: 05/04/11 03:04:09

Modified:
 /dba/dbaccess/source/ui/app/
  AppSwapWindow.cxx

Log:
 INTEGRATION: CWS dba32 (1.3.96); FILE MERGED
 2005/04/06 13:20:50 oj 1.3.96.1: #i46798\ change size of title window and 
center icons

File Changes:

Directory: /dba/dbaccess/source/ui/app/
=======================================

File [changed]: AppSwapWindow.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppSwapWindow.cxx?r1=1.3&r2=1.4
Delta lines:  +9 -9
-------------------
--- AppSwapWindow.cxx   22 Oct 2004 12:01:05 -0000      1.3
+++ AppSwapWindow.cxx   11 Apr 2005 10:04:07 -0000      1.4
@@ -123,8 +123,14 @@
 // 
-----------------------------------------------------------------------------
 void OApplicationSwapWindow::Resize()
 {
-       m_aIconControl.SetPosSizePixel( Point(0, 0  ),
-                                                                       
GetOutputSize() );
+    Size aFLSize = LogicToPixel( Size( 8, 0 ), MAP_APPFONT );
+    long nX = 0;
+    if ( m_aIconControl.GetEntryCount() != 0 )
+        nX = m_aIconControl.GetBoundingBox( m_aIconControl.GetEntry(0) 
).GetWidth() + aFLSize.Width();
+
+    Size aOutputSize = GetOutputSize();
+
+    m_aIconControl.SetPosSizePixel(    
Point(static_cast<long>((aOutputSize.Width() - nX)*0.5), 0)  
,Size(nX,aOutputSize.Height()));
        m_aIconControl.ArrangeIcons();
 }
 // 
-----------------------------------------------------------------------------
@@ -148,13 +154,7 @@
                SetTextColor( aTextColor );
        }
 
-       if ( bBackground )
-       {
-               if( IsControlBackground() )
-                       SetBackground( GetControlBackground() );
-               else
-                       SetBackground( rStyleSettings.GetFaceColor() );
-       }
+    SetBackground( Wallpaper( 
Application::GetSettings().GetStyleSettings().GetWindowColor() ) );
 }
 // -----------------------------------------------------------------------
 void OApplicationSwapWindow::DataChanged( const DataChangedEvent& rDCEvt )




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to