Tag: cws_src680_oj14
User: oj      
Date: 06/03/20 05:53:05

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

Log:
 RESYNC: (1.12-1.15); FILE MERGED

File Changes:

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

File [changed]: AppDetailView.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailView.cxx?r1=1.12.4.2&r2=1.12.4.3
Delta lines:  +83 -10
---------------------
--- AppDetailView.cxx   20 Mar 2006 07:48:07 -0000      1.12.4.2
+++ AppDetailView.cxx   20 Mar 2006 13:53:01 -0000      1.12.4.3
@@ -301,7 +301,11 @@
             InvalidateEntry( GetCurEntry() );
         SetCurEntry( _pEntry );
         if ( GetCurEntry() )
+               {
             InvalidateEntry( GetCurEntry() );
+                       CallEventListeners( VCLEVENT_LISTBOX_SELECT, 
GetCurEntry() );
+               }
+        updateHelpText();
         return true;
     }
     return false;
@@ -343,7 +347,10 @@
         if ( pOldCurrent )
             InvalidateEntry( pOldCurrent );
         if ( pNewCurrent )
+               {
             InvalidateEntry( pNewCurrent );
+                       CallEventListeners( VCLEVENT_LISTBOX_SELECT, 
pNewCurrent );
+               } // if ( pNewCurrent )
         updateHelpText();
     }
 }
@@ -364,9 +371,7 @@
        m_aHelpText.SetHelpId(HID_APP_HELP_TEXT);
        m_aDescription.SetHelpId(HID_APP_DESCRIPTION_TEXT);
        m_aDescription.SetText(ModuleRes(STR_DESCRIPTION));
-       Font aFont = m_aDescription.GetControlFont();
-       aFont.SetWeight(WEIGHT_BOLD);
-       m_aDescription.SetControlFont(aFont);
+       ImplInitSettings(sal_True,sal_True,sal_True);
 }
 // 
-----------------------------------------------------------------------------
 OTasksWindow::~OTasksWindow()
@@ -374,6 +379,56 @@
        DBG_DTOR(OTasksWindow,NULL);    
        Clear();
 }
+// -----------------------------------------------------------------------
+void OTasksWindow::DataChanged( const DataChangedEvent& rDCEvt )
+{
+       DBG_CHKTHIS(OTasksWindow,NULL);
+       Window::DataChanged( rDCEvt );
+
+       if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
+                (rDCEvt.GetFlags() & SETTINGS_STYLE) )
+       {
+               ImplInitSettings( sal_True, sal_True, sal_True );
+               Invalidate();
+       }
+}
+//     
-----------------------------------------------------------------------------
+void OTasksWindow::ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, 
sal_Bool bBackground )
+{
+       DBG_CHKTHIS(OTasksWindow,NULL);
+       const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+       if( bFont )
+       {
+               Font aFont;
+               aFont = rStyleSettings.GetFieldFont();
+               aFont.SetColor( rStyleSettings.GetWindowTextColor() );
+               SetPointFont( aFont );
+       }
+
+       if( bForeground || bFont )
+       {
+               SetTextColor( rStyleSettings.GetFieldTextColor() );
+               SetTextFillColor();
+               m_aHelpText.SetTextColor( rStyleSettings.GetFieldTextColor() );
+               m_aHelpText.SetTextFillColor();
+               m_aDescription.SetTextColor( rStyleSettings.GetFieldTextColor() 
);
+               m_aDescription.SetTextFillColor();
+               //m_aFL.SetTextColor( rStyleSettings.GetFieldTextColor() );
+               //m_aFL.SetTextFillColor();
+       }
+
+       if( bBackground )
+       {
+               SetBackground( rStyleSettings.GetFieldColor() );
+               m_aHelpText.SetBackground( rStyleSettings.GetFieldColor() );
+               m_aDescription.SetBackground( rStyleSettings.GetFieldColor() );
+               m_aFL.SetBackground( rStyleSettings.GetFieldColor() );
+       }
+
+       Font aFont = m_aDescription.GetControlFont();
+       aFont.SetWeight(WEIGHT_BOLD);
+       m_aDescription.SetControlFont(aFont);
+}
 // 
-----------------------------------------------------------------------------
 void OTasksWindow::setHelpText(USHORT _nId)
 {
@@ -526,10 +581,28 @@
 void OApplicationDetailView::ImplInitSettings( sal_Bool bFont, sal_Bool 
bForeground, sal_Bool bBackground )
 {
        DBG_CHKTHIS(OApplicationDetailView,NULL);
-       SetBackground( Wallpaper( 
GetSettings().GetStyleSettings().GetDialogColor() ) );
-       m_aHorzSplitter.SetBackground( Wallpaper( 
GetSettings().GetStyleSettings().GetDialogColor() ) );
-       m_aHorzSplitter.SetFillColor( 
GetSettings().GetStyleSettings().GetDialogColor() );
-       m_aHorzSplitter.SetTextFillColor( 
GetSettings().GetStyleSettings().GetDialogColor() );
+       const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+       if( bFont )
+       {
+               Font aFont;
+               aFont = rStyleSettings.GetFieldFont();
+               aFont.SetColor( rStyleSettings.GetWindowTextColor() );
+               SetPointFont( aFont );
+       }
+
+       if( bForeground || bFont )
+       {
+               SetTextColor( rStyleSettings.GetFieldTextColor() );
+               SetTextFillColor();
+       }
+
+       if( bBackground )
+               SetBackground( rStyleSettings.GetFieldColor() );
+
+       //SetBackground( Wallpaper( 
GetSettings().GetStyleSettings().GetDialogColor() ) );
+       m_aHorzSplitter.SetBackground( rStyleSettings.GetDialogColor() );
+       m_aHorzSplitter.SetFillColor( rStyleSettings.GetDialogColor() );
+       m_aHorzSplitter.SetTextFillColor(rStyleSettings.GetDialogColor() );
 }
 // -----------------------------------------------------------------------
 void OApplicationDetailView::DataChanged( const DataChangedEvent& rDCEvt )




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

Reply via email to