summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/app/AppDetailView.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-01-03 15:15:57 +0000
committerKurt Zenker <kz@openoffice.org>2006-01-03 15:15:57 +0000
commit960be25d944b19e35777b4310dfc69fc5db7fb6e (patch)
tree5fe62a98134e089ffaee98b8321c58644ebe3ae5 /dbaccess/source/ui/app/AppDetailView.cxx
parentINTEGRATION: CWS dba202c (1.7.50); FILE MERGED (diff)
downloadcore-960be25d944b19e35777b4310dfc69fc5db7fb6e.tar.gz
core-960be25d944b19e35777b4310dfc69fc5db7fb6e.zip
INTEGRATION: CWS dba202c (1.12.50); FILE MERGED
2005/12/05 10:51:49 oj 1.12.50.3: set background at fixedline 2005/12/05 10:20:07 oj 1.12.50.2: #i52615# system color 2005/12/01 13:23:20 oj 1.12.50.1: #i52615# datachanged overload
Diffstat (limited to 'dbaccess/source/ui/app/AppDetailView.cxx')
-rw-r--r--dbaccess/source/ui/app/AppDetailView.cxx84
1 files changed, 75 insertions, 9 deletions
diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx
index 4f14f350dc07..9775b244d658 100644
--- a/dbaccess/source/ui/app/AppDetailView.cxx
+++ b/dbaccess/source/ui/app/AppDetailView.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: AppDetailView.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2005-09-23 12:16:10 $
+ * last change: $Author: kz $ $Date: 2006-01-03 16:15:57 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -364,9 +364,7 @@ OTasksWindow::OTasksWindow(Window* _pParent,OApplicationDetailView* _pDetailView
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 +372,56 @@ OTasksWindow::~OTasksWindow()
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 +574,28 @@ OApplicationDetailView::~OApplicationDetailView()
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 )