#103100# Set window color from the style sheet, since Window::UpdateData sets its own default now

This commit is contained in:
Thorsten Behrens 2002-09-11 10:10:07 +00:00
parent 584b09f361
commit 574e7a5d91

View file

@ -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();