summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-07-19 14:36:16 +0000
committerFrank Schönheit <fs@openoffice.org>2002-07-19 14:36:16 +0000
commit8d69ac755936edbcc90b5a91e15aa94fc7013a46 (patch)
tree09972b819579f1603e61e16fbedbc38b8489ce91 /sw/source/ui/utlui
parent408e7d21d5c0f54fb85383f5f9fbb34c027e221c (diff)
#101501# use GetDisplayBackground().GetColor().IsDark() instead of StyleSettings::GetHighContrastMode()
Diffstat (limited to 'sw/source/ui/utlui')
-rw-r--r--sw/source/ui/utlui/content.cxx10
-rw-r--r--sw/source/ui/utlui/glbltree.cxx10
-rw-r--r--sw/source/ui/utlui/navipi.cxx12
3 files changed, 13 insertions, 19 deletions
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx
index 98bc776d0f91..f843ce993aa0 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.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: fs $ $Date: 2002-07-19 13:35:16 $
+ * last change: $Author: fs $ $Date: 2002-07-19 15:36:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1387,8 +1387,7 @@ void SwContentTree::Display( sal_Bool bActive )
{
if(!bIsImageListInitialized)
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- USHORT nResId = rStyleSettings.GetHighContrastMode() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
+ USHORT nResId = GetDisplayBackground().GetColor().IsDark() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
aEntryImages = ImageList(SW_RES(nResId));
bIsImageListInitialized = sal_True;
}
@@ -3242,8 +3241,7 @@ 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;
+ USHORT nResId = GetDisplayBackground().GetColor().IsDark() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
aEntryImages = ImageList(SW_RES(nResId));
FindActiveTypeAndRemoveUserData();
Display(sal_True);
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index 29f832205fb5..b21878aab026 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: glbltree.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: os $ $Date: 2002-06-25 08:56:47 $
+ * last change: $Author: fs $ $Date: 2002-07-19 15:36:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -805,8 +805,7 @@ void SwGlobalTree::Display(BOOL bOnlyUpdateUserData)
{
if(!bIsImageListInitialized)
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- USHORT nResId = rStyleSettings.GetHighContrastMode() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
+ USHORT nResId = GetDisplayBackground().GetColor().IsDark() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
aEntryImages = ImageList(SW_RES(nResId));
bIsImageListInitialized = TRUE;
}
@@ -1507,8 +1506,7 @@ void SwGlobalTree::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;
+ USHORT nResId = GetDisplayBackground().GetColor().IsDark() ? IMG_NAVI_ENTRYBMPH : IMG_NAVI_ENTRYBMP;
aEntryImages = ImageList(SW_RES(nResId));
Update(sal_True);
}
diff --git a/sw/source/ui/utlui/navipi.cxx b/sw/source/ui/utlui/navipi.cxx
index 053cd38bed98..2ad47ab9b6f1 100644
--- a/sw/source/ui/utlui/navipi.cxx
+++ b/sw/source/ui/utlui/navipi.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: navipi.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: os $ $Date: 2002-06-25 08:56:11 $
+ * last change: $Author: fs $ $Date: 2002-07-19 15:36:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1411,9 +1411,8 @@ void SwNavigationPI::SetRegionDropMode(USHORT nNewMode)
else if(nRegionMode == REGION_MODE_EMBEDDED)
nId = FN_DROP_REGION_COPY;
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- ImageList& rImgLst = rStyleSettings.GetHighContrastMode() ?
- aContentImageListH : aContentImageList;
+ ImageList& rImgLst = aContentToolBox.GetDisplayBackground().GetColor().IsDark()
+ ? aContentImageListH : aContentImageList;
aContentToolBox.SetItemImage( FN_DROP_REGION,
rImgLst.GetImage(nId));
@@ -1566,8 +1565,7 @@ void SwNavigationPI::DataChanged( const DataChangedEvent& rDCEvt )
---------------------------------------------------------------------------*/
void SwNavigationPI::InitImageList()
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- ImageList& rImgLst = rStyleSettings.GetHighContrastMode() ?
+ ImageList& rImgLst = aContentToolBox.GetDisplayBackground().GetColor().IsDark() ?
aContentImageListH : aContentImageList;
for(USHORT k = 0; k < aContentToolBox.GetItemCount(); k++)
aContentToolBox.SetItemImage(aContentToolBox.GetItemId(k),