summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 12:57:39 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 12:57:39 +0000
commitd4a2b319ef4ed22ae25a0132ab6e872c86c91854 (patch)
tree46a3824ee1e36e185df3f1f9620da7fcf5297cb2 /sfx2
parentd37c20b7f933cc1daf01cc4d2e86b673a749062e (diff)
INTEGRATION: CWS hcicons (1.121.70); FILE MERGED
2007/07/23 10:35:42 fs 1.121.70.3: RESYNC: (1.124-1.126); FILE MERGED 2007/07/01 13:58:10 fs 1.121.70.2: RESYNC: (1.121-1.124); FILE MERGED 2007/06/08 09:20:04 pb 1.121.70.1: fix: #146854# high contrast of help content
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index e15d3b77750e..b790f978db6b 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: newhelp.cxx,v $
*
- * $Revision: 1.126 $
+ * $Revision: 1.127 $
*
- * last change: $Author: rt $ $Date: 2007-07-06 12:31:23 $
+ * last change: $Author: hr $ $Date: 2007-08-03 13:57:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -411,11 +411,16 @@ ContentListBox_Impl::ContentListBox_Impl( Window* pParent, const ResId& rResId )
aOpenBookImage ( SfxResId( IMG_HELP_CONTENT_BOOK_OPEN ) ),
aClosedBookImage ( SfxResId( IMG_HELP_CONTENT_BOOK_CLOSED ) ),
- aOpenChapterImage ( SfxResId( IMG_HELP_CONTENT_CHAPTER_OPEN ) ),
- aClosedChapterImage ( SfxResId( IMG_HELP_CONTENT_CHAPTER_CLOSED ) ),
aDocumentImage ( SfxResId( IMG_HELP_CONTENT_DOC ) )
{
+ if ( GetSettings().GetStyleSettings().GetWindowColor().IsDark() )
+ {
+ aOpenBookImage = Image( SfxResId( IMG_HELP_CONTENT_BOOK_OPEN_HC ) );
+ aClosedBookImage = Image( SfxResId( IMG_HELP_CONTENT_BOOK_CLOSED_HC ) );
+ aDocumentImage = Image( SfxResId( IMG_HELP_CONTENT_DOC_HC ) );
+ }
+
SetWindowBits( WB_HIDESELECTION | WB_HSCROLL );
SetEntryHeight( 16 );
@@ -511,7 +516,7 @@ void ContentListBox_Impl::RequestingChilds( SvLBoxEntry* pParent )
SvLBoxEntry* pEntry = NULL;
if ( bIsFolder )
{
- pEntry = InsertEntry( aTitle, aOpenChapterImage, aClosedChapterImage, pParent, TRUE );
+ pEntry = InsertEntry( aTitle, aOpenBookImage, aClosedBookImage, pParent, TRUE );
pEntry->SetUserData( new ContentEntry_Impl( aURL, sal_True ) );
}
else