summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-05-06 09:12:34 +0000
committerOliver Specht <os@openoffice.org>2002-05-06 09:12:34 +0000
commit9a79fdb0106e019311d80dd1fa88a31872070318 (patch)
tree2b467b44671d86788bc76e4969adb8bd33b13a8e /sw/source/ui/utlui
parentf1722a2fc6a603c311514298b153b40a72ac603f (diff)
#98810# HighContrast ImageLists added
Diffstat (limited to 'sw/source/ui/utlui')
-rw-r--r--sw/source/ui/utlui/content.cxx24
1 files changed, 21 insertions, 3 deletions
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx
index 9739080248f4..9c335582b509 100644
--- a/sw/source/ui/utlui/content.cxx
+++ b/sw/source/ui/utlui/content.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: content.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: os $ $Date: 2002-02-28 17:04:32 $
+ * last change: $Author: os $ $Date: 2002-05-06 10:12:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1389,7 +1389,9 @@ void SwContentTree::Display( sal_Bool bActive )
{
if(!bIsImageListInitialized)
{
- aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ USHORT nResId = rStyleSettings.GetHighContrastMode() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
+ aEntryImages = ImageList(SW_RES(nResId));
bIsImageListInitialized = sal_True;
}
// erst den selektierten Eintrag auslesen, um ihn spaeter evtl. wieder
@@ -3234,5 +3236,21 @@ void SwContentLBoxString::Paint( const Point& rPos, SvLBox& rDev, sal_uInt16 nFl
else
SvLBoxString::Paint( rPos, rDev, nFlags, pEntry);
}
+/* -----------------------------06.05.2002 10:20------------------------------
+
+ ---------------------------------------------------------------------------*/
+void SwContentTree::DataChanged( const DataChangedEvent& rDCEvt )
+{
+ if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
+ (rDCEvt.GetFlags() & SETTINGS_STYLE) )
+ {
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ USHORT nResId = rStyleSettings.GetHighContrastMode() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
+ aEntryImages = ImageList(SW_RES(nResId));
+ FindActiveTypeAndRemoveUserData();
+ Display(sal_True);
+ }
+ Window::DataChanged( rDCEvt );
+}