summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdwindow.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2002-09-11 10:10:07 +0000
committerThorsten Behrens <thb@openoffice.org>2002-09-11 10:10:07 +0000
commit574e7a5d9164300e98d64c83ba2e24023b9d96f4 (patch)
tree6de8a88145800571d8e8b8b75038099e907b19fc /sd/source/ui/view/sdwindow.cxx
parent584b09f361d1c8bbf82ac644f1bd25c2ef8de668 (diff)
#103100# Set window color from the style sheet, since Window::UpdateData sets its own default now
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r--sd/source/ui/view/sdwindow.cxx12
1 files 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();