diff options
author | Christian Lippka <cl@openoffice.org> | 2002-06-06 08:08:03 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-06-06 08:08:03 +0000 |
commit | d5bbac20b893341a3947b13b9f799d72dcf572ac (patch) | |
tree | bfddf7e7495645fd03fcedad15d8c2ffb07e133c /svx/source/dialog | |
parent | ceb78fe296d1dc230a2647b325de8f3bf29928d8 (diff) |
#99736# high contrast mode for measure preview
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/measctrl.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/svx/source/dialog/measctrl.cxx b/svx/source/dialog/measctrl.cxx index f74f96969d7e..82534cf8eee2 100644 --- a/svx/source/dialog/measctrl.cxx +++ b/svx/source/dialog/measctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: measctrl.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: aw $ $Date: 2000-10-30 10:48:03 $ + * last change: $Author: cl $ $Date: 2002-06-06 09:08:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,6 +71,7 @@ #include "measctrl.hxx" #include "dialmgr.hxx" +#include "dlgutil.hxx" /************************************************************************* |* @@ -116,6 +117,8 @@ SvxXMeasurePreview::SvxXMeasurePreview pMeasureObj->SetItemSetAndBroadcast(rInAttrs); //-/ pMeasureObj->BroadcastItemChange(aItemChange); + SetDrawMode( GetDisplayBackground().GetColor().IsDark() ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR ); + Invalidate(); } @@ -220,3 +223,15 @@ void SvxXMeasurePreview::MouseButtonDown( const MouseEvent& rMEvt ) } } +// ----------------------------------------------------------------------- + +void SvxXMeasurePreview::DataChanged( const DataChangedEvent& rDCEvt ) +{ + Control::DataChanged( rDCEvt ); + + if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) ) + { + SetDrawMode( GetDisplayBackground().GetColor().IsDark() ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR ); + } +} + |