summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-03-09 15:54:16 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-03-10 14:04:34 +0900
commit2e293978d80c5113ea37f4c7f4b18ee01f2022e1 (patch)
treee47b464bfff039141f0cb359b3d46ad38fdd50dc /sc
parent422fdeccd88a89461271bd6d87774a4c5015ba60 (diff)
add option to disable animations, use in dashed border overlay
There are use cases when it is useful to disable animations (using LO in remote display when the bandwidth is limited). This adds an option that will allow to disable all animations. Currently only animation when copying cells in Calc (dashed border overlay) uses this option. Change-Id: Ia8cd3783140428e921c3151c2f462d3862440edd
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/overlayobject.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/overlayobject.cxx b/sc/source/ui/view/overlayobject.cxx
index 778e44f0dfe0..c494d594f5f3 100644
--- a/sc/source/ui/view/overlayobject.cxx
+++ b/sc/source/ui/view/overlayobject.cxx
@@ -27,6 +27,7 @@
#include <svx/sdr/overlay/overlaymanager.hxx>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx>
+#include <officecfg/Office/Common.hxx>
using ::sdr::overlay::OverlayObject;
using ::sdr::overlay::OverlayManager;
@@ -38,7 +39,7 @@ ScOverlayDashedBorder::ScOverlayDashedBorder(const ::basegfx::B2DRange& rRange,
OverlayObject(rColor),
mbToggle(true)
{
- mbAllowsAnimation = true;
+ mbAllowsAnimation = officecfg::Office::Common::VCL::AnimationsEnabled::get();
maRange = rRange;
}