summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/measctrl.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2002-06-06 08:08:03 +0000
committerChristian Lippka <cl@openoffice.org>2002-06-06 08:08:03 +0000
commitd5bbac20b893341a3947b13b9f799d72dcf572ac (patch)
treebfddf7e7495645fd03fcedad15d8c2ffb07e133c /svx/source/dialog/measctrl.cxx
parent#99737# high contrast mode for connector preview (diff)
downloadcore-d5bbac20b893341a3947b13b9f799d72dcf572ac.tar.gz
core-d5bbac20b893341a3947b13b9f799d72dcf572ac.zip
#99736# high contrast mode for measure preview
Diffstat (limited to 'svx/source/dialog/measctrl.cxx')
-rw-r--r--svx/source/dialog/measctrl.cxx19
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 );
+ }
+}
+