summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/notemark.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-04-25 14:20:15 +0000
committerNiklas Nebel <nn@openoffice.org>2002-04-25 14:20:15 +0000
commitee63b916a9be6fc3885cc208e09f5ead2df70ccc (patch)
tree22879f118de2f21b05d7ad5360a77e391dcbe994 /sc/source/ui/view/notemark.cxx
parentc23dfbca48232b2492655f26bd39b9607115ee12 (diff)
#97223# set high contrast drawing modes also for painting note marker and text edit view
Diffstat (limited to 'sc/source/ui/view/notemark.cxx')
-rw-r--r--sc/source/ui/view/notemark.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/view/notemark.cxx b/sc/source/ui/view/notemark.cxx
index 261faf32c277..bfd9274cea20 100644
--- a/sc/source/ui/view/notemark.cxx
+++ b/sc/source/ui/view/notemark.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: notemark.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: nn $ $Date: 2002-04-10 10:30:45 $
+ * last change: $Author: nn $ $Date: 2002-04-25 15:20:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,7 @@
#include <sfx2/printer.hxx>
#include <svtools/pathoptions.hxx>
#include <svtools/itempool.hxx>
+#include <vcl/svapp.hxx>
#include "notemark.hxx"
#include "document.hxx"
@@ -166,12 +167,20 @@ void lcl_DrawWin( SdrObject* pObject, Window* pWindow, const MapMode& rMap )
MapMode aOld = pWindow->GetMapMode();
pWindow->SetMapMode( rMap );
+ ULONG nOldDrawMode = pWindow->GetDrawMode();
+ if ( Application::GetSettings().GetStyleSettings().GetHighContrastMode() )
+ {
+ pWindow->SetDrawMode( nOldDrawMode | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL |
+ DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT );
+ }
+
ExtOutputDevice* pXOut = new ExtOutputDevice( pWindow );
pXOut->SetOutDev( pWindow );
SdrPaintInfoRec aInfoRec;
pObject->Paint( *pXOut, aInfoRec );
delete pXOut;
+ pWindow->SetDrawMode( nOldDrawMode );
pWindow->SetMapMode( aOld );
}