diff options
-rw-r--r-- | sd/source/ui/view/drawview.cxx | 18 | ||||
-rw-r--r-- | sd/source/ui/view/frmview.cxx | 8 |
2 files changed, 20 insertions, 6 deletions
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx index cbe1ce17aa62..a42414a42fc6 100644 --- a/sd/source/ui/view/drawview.cxx +++ b/sd/source/ui/view/drawview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drawview.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: cl $ $Date: 2002-04-24 07:15:09 $ + * last change: $Author: cl $ $Date: 2002-04-30 12:07:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -124,6 +124,10 @@ #include "stlsheet.hxx" #endif +#ifndef _SVX_COLORCFG_HXX +#include <svx/colorcfg.hxx> +#endif + #include <svx/svdoutl.hxx> #include "glob.hrc" @@ -504,6 +508,16 @@ void SdDrawView::SFX_NOTIFY(SfxBroadcaster& rBC, const TypeId& rBCType, } } + if( rHint.ISA( SfxSimpleHint ) && ( (SfxSimpleHint&) rHint ).GetId() == SFX_HINT_COLORS_CHANGED ) + { + svx::ColorConfig aConfig; + svx::ColorConfigValue aGridValue( aConfig.GetColorValue( svx::DRAWGRID ) ); + + SetGridVisible( aGridValue.bIsVisible ); + SetGridColor( Color( aGridValue.nColor ) ); + + } + SdView::SFX_NOTIFY(rBC, rBCType, rHint, rHintType); } diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index e2f4abc49968..88b4951d20d3 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: frmview.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: cl $ $Date: 2002-04-26 11:13:43 $ + * last change: $Author: cl $ $Date: 2002-04-30 12:11:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -162,7 +162,7 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc) SetGridFine( pFrameView->GetGridFine() ); SetSnapGrid( pFrameView->GetSnapGrid() ); SetSnapGridWidth(pFrameView->GetSnapGridWidthX(), pFrameView->GetSnapGridWidthY()); - SetGridVisible( pFrameView->IsGridVisible() ); +// SetGridVisible( pFrameView->IsGridVisible() ); SetGridFront( pFrameView->IsGridFront() ); SetSnapAngle( pFrameView->GetSnapAngle() ); SetGridSnap( pFrameView->IsGridSnap() ); @@ -541,7 +541,7 @@ void FrameView::Update(SdOptions* pOptions) if (pOptions) { bRuler = pOptions->IsRulerVisible(); - SetGridVisible( pOptions->IsGridVisible() ); +// SetGridVisible( pOptions->IsGridVisible() ); SetSnapAngle( pOptions->GetAngle() ); SetGridSnap( pOptions->IsUseGridSnap() ); SetBordSnap( pOptions->IsSnapBorder() ); |