diff options
author | Armin Weiss <aw@openoffice.org> | 2002-05-15 12:25:16 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2002-05-15 12:25:16 +0000 |
commit | fc5c23199e9288a5909257bf0053e5a6229af198 (patch) | |
tree | aaf96df15a7404a2c6ea3461f9f596ab42c75339 /svx/source/svdraw | |
parent | b22cb79814d301c96270d3e3f2c3191901d58d36 (diff) |
#98825# Look if graphics animation is disabled by accessibility options
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index b85e66eca65e..af06445d4abe 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdograf.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: cl $ $Date: 2002-05-08 09:43:28 $ + * last change: $Author: aw $ $Date: 2002-05-15 13:25:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -935,6 +935,24 @@ FASTBOOL SdrGrafObj::Paint( ExtOutputDevice& rOut, const SdrPaintInfoRec& rInfoR bEnable = eAnimMode != SDR_ANIMATION_DISABLE; } + // #98825# Look if graphics animation is disabled by + // accessibility options + if(bEnable) + { + const SdrView& rTargetView = rInfoRec.pPV->GetView(); + const SvtAccessibilityOptions& rOpt = ((SdrView&)rTargetView).getAccessibilityOptions(); + sal_Bool bIsAllowedAnimatedGraphics = rOpt.GetIsAllowAnimatedGraphics(); + + if(!bIsAllowedAnimatedGraphics) + { + bEnable = FALSE; + + // extra work to be done to make graphic visible at all + pGraphic->StopAnimation(); + pGraphic->Draw(pOutDev, aLogPos, aLogSize, &aAttr); + } + } + if( bEnable ) { if( eAnimMode == SDR_ANIMATION_ANIMATE ) |