#98136# +Set/IsUseAutomaticBorderColor()
This commit is contained in:
parent
67edfe3c07
commit
0e82ec3891
2 changed files with 11 additions and 5 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: viewopt.hxx,v $
|
||||
*
|
||||
* $Revision: 1.8 $
|
||||
* $Revision: 1.9 $
|
||||
*
|
||||
* last change: $Author: os $ $Date: 2002-05-29 13:38:46 $
|
||||
* last change: $Author: os $ $Date: 2002-05-30 10:13:06 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -95,7 +95,7 @@ namespace svx{ class ColorConfig;}
|
|||
#define VIEWOPT_1_STOP_ANIMATED_GRAPHIC 0x00002000L
|
||||
#define VIEWOPT_1_POSTITS 0x00004000L
|
||||
#define VIEWOPT_1_HIDDEN 0x00008000L
|
||||
|
||||
#define VIEWOPT_1_USE_AUTO_BORDER_COLOR 0x00010000L
|
||||
#define VIEWOPT_1_GRAPHIC 0x00020000L
|
||||
#define VIEWOPT_1_TABLE 0x00040000L
|
||||
#define VIEWOPT_1_DRAW 0x00080000L
|
||||
|
@ -422,6 +422,10 @@ public:
|
|||
inline void SetStopAnimatedText( BOOL b )
|
||||
{ (b != 0) ? (nCoreOptions |= VIEWOPT_1_STOP_ANIMATED_TEXT ) : ( nCoreOptions &= ~VIEWOPT_1_STOP_ANIMATED_TEXT ); }
|
||||
|
||||
inline BOOL IsUseAutomaticBorderColor() const { return !bReadonly && (nCoreOptions & VIEWOPT_1_USE_AUTO_BORDER_COLOR ) ? TRUE : FALSE; }
|
||||
inline void SetUseAutomaticBorderColor( BOOL b )
|
||||
{ (b != 0) ? (nCoreOptions |= VIEWOPT_1_USE_AUTO_BORDER_COLOR ) : ( nCoreOptions &= ~VIEWOPT_1_USE_AUTO_BORDER_COLOR ); }
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------*/
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: viewsh.cxx,v $
|
||||
*
|
||||
* $Revision: 1.26 $
|
||||
* $Revision: 1.27 $
|
||||
*
|
||||
* last change: $Author: mib $ $Date: 2002-05-29 15:05:09 $
|
||||
* last change: $Author: os $ $Date: 2002-05-30 10:14:56 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -2246,12 +2246,14 @@ void ViewShell::ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibility
|
|||
pOpt->SetAlwaysAutoColor(sal_False);
|
||||
pOpt->SetStopAnimatedGraphics(sal_False);
|
||||
pOpt->SetStopAnimatedText(sal_False);
|
||||
pOpt->SetUseAutomaticBorderColor(sal_False);
|
||||
}
|
||||
else
|
||||
{
|
||||
pOpt->SetAlwaysAutoColor(rAccessibilityOptions.GetIsAutomaticFontColor());
|
||||
pOpt->SetStopAnimatedGraphics(! rAccessibilityOptions.GetIsAllowAnimatedGraphics());
|
||||
pOpt->SetStopAnimatedText(! rAccessibilityOptions.GetIsAllowAnimatedText());
|
||||
pOpt->SetUseAutomaticBorderColor(rAccessibilityOptions.GetIsForBorders());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue