From 574e7a5d9164300e98d64c83ba2e24023b9d96f4 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Wed, 11 Sep 2002 10:10:07 +0000 Subject: [PATCH] #103100# Set window color from the style sheet, since Window::UpdateData sets its own default now --- sd/source/ui/view/sdwindow.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index c3e28e22b7db..97fddac47fab 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sdwindow.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: aw $ $Date: 2002-08-15 11:23:59 $ + * last change: $Author: thb $ $Date: 2002-09-11 11:10:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -840,6 +840,14 @@ void SdWindow::DataChanged( const DataChangedEvent& rDCEvt ) Invalidate(); } + // #103100# Overwrite window color for OutlineView + if( pViewShell->ISA( SdOutlineViewShell ) ) + { + svx::ColorConfig aColorConfig; + const Color aDocColor( aColorConfig.GetColorValue( svx::DOCCOLOR ).nColor ); + SetBackground( Wallpaper( aDocColor ) ); + } + SfxRequest aReq( nPreviewSlot, 0, pViewShell->GetDocSh()->GetDoc()->GetItemPool() ); pViewShell->ExecReq( aReq ); pViewShell->Invalidate();