summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/PaneDockingWindow.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-03-18 15:47:25 +0000
committerKurt Zenker <kz@openoffice.org>2005-03-18 15:47:25 +0000
commitbb2ae7b71e62b09c100adc949667bcedc10a1291 (patch)
tree3a15fdee6ded29da8289871e1af8b1e6a0a983be /sd/source/ui/dlg/PaneDockingWindow.cxx
parentdf437e6677eb81e5adfa2a39e2a126c95cc231b1 (diff)
INTEGRATION: CWS impress36 (1.7.34); FILE MERGED
2005/02/28 16:40:25 af 1.7.34.1: #i43439# Added DataChanged() method.
Diffstat (limited to 'sd/source/ui/dlg/PaneDockingWindow.cxx')
-rw-r--r--sd/source/ui/dlg/PaneDockingWindow.cxx41
1 files changed, 36 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx
index 750de3113743..d058267edb58 100644
--- a/sd/source/ui/dlg/PaneDockingWindow.cxx
+++ b/sd/source/ui/dlg/PaneDockingWindow.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: PaneDockingWindow.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2005-03-15 09:19:16 $
+ * last change: $Author: kz $ $Date: 2005-03-18 16:47:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -372,11 +372,42 @@ void PaneDockingWindow::StateChanged( StateChangedType nType )
-void PaneDockingWindow::DataChanged( const DataChangedEvent& rDCEvt )
+void PaneDockingWindow::DataChanged (const DataChangedEvent& rEvent)
{
- SfxDockingWindow::DataChanged (rDCEvt);
-}
+ SfxDockingWindow::DataChanged (rEvent);
+
+ switch (rEvent.GetType())
+ {
+ case DATACHANGED_SETTINGS:
+ if ((rEvent.GetFlags() & SETTINGS_STYLE) == NULL)
+ break;
+ // else fall through.
+ case DATACHANGED_FONTS:
+ case DATACHANGED_FONTSUBSTITUTION:
+ {
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+
+ // Font.
+ Font aFont = rStyleSettings.GetAppFont();
+ if (IsControlFont())
+ aFont.Merge(GetControlFont());
+ SetZoomedPointFont(aFont);
+
+ // Color.
+ Color aColor;
+ if (IsControlForeground())
+ aColor = GetControlForeground();
+ else
+ aColor = rStyleSettings.GetButtonTextColor();
+ SetTextColor(aColor);
+ SetTextFillColor();
+ Resize();
+ Invalidate();
+ }
+ break;
+ }
+}
} // end of namespace ::sd