diff options
author | Björn Milcke <bm@openoffice.org> | 2002-08-01 11:34:56 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2002-08-01 11:34:56 +0000 |
commit | bebb9d8f3dda9b8f1962f9397a37c3d0d2478b64 (patch) | |
tree | e4d53ae541daa657f8a37dda04f4f85dfbf8e253 /sfx2 | |
parent | a3eca22f5d1bc1848b6716fdd688f5f165ef5771 (diff) |
#101126# control high contrast mode usage via virtual method
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/new.cxx | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index fdfbc967d729..e9a5528b7d53 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -2,9 +2,9 @@ * * $RCSfile: new.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: bm $ $Date: 2002-08-01 11:41:27 $ + * last change: $Author: bm $ $Date: 2002-08-01 12:34:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -262,8 +262,8 @@ SfxPreviewWin::SfxPreviewWin( SetHelpId( HID_PREVIEW_FRAME ); // adjust contrast mode initially - SvtAccessibilityOptions aAccOptions; - bool bUseContrast = aAccOptions.GetIsForDrawings() && GetSettings().GetStyleSettings().GetHighContrastMode(); + bool bUseContrast = true && GetSettings().GetStyleSettings().GetHighContrastMode(); + bUseContrast = bUseContrast && UseHighContrastSetting(); SetDrawMode( bUseContrast ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR ); } @@ -281,13 +281,19 @@ void SfxPreviewWin::DataChanged( const DataChangedEvent& rDCEvt ) if( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) ) { - // adjust contrast mode initially - SvtAccessibilityOptions aAccOptions; - bool bUseContrast = aAccOptions.GetIsForDrawings() && GetSettings().GetStyleSettings().GetHighContrastMode(); + // adjust contrast mode + bool bUseContrast = true && GetSettings().GetStyleSettings().GetHighContrastMode(); + bUseContrast = bUseContrast && UseHighContrastSetting(); SetDrawMode( bUseContrast ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR ); } } +bool SfxPreviewWin::UseHighContrastSetting() const +{ + SvtAccessibilityOptions aAccOptions; + return true && aAccOptions.GetIsForDrawings(); +} + class SfxNewFileDialog_Impl { |