From 2e293978d80c5113ea37f4c7f4b18ee01f2022e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Mon, 9 Mar 2015 15:54:16 +0900 Subject: [PATCH] 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 --- .../registry/schema/org/openoffice/Office/Common.xcs | 12 ++++++++++++ sc/source/ui/view/overlayobject.cxx | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index d496c851baff..6b010d7dd118 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -866,6 +866,18 @@ false + + + Defines if the user interface animations (like "walking ant" + animation when copying a cell in Calc) is enabled or disabled. + Disabling animations makes a lot of sense on remote connections + (VNC), where animations increase the (always limited) amount of + bandwidth needed. + + + + true + 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 #include #include +#include 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; }