summaryrefslogtreecommitdiff
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
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
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs12
-rw-r--r--sc/source/ui/view/overlayobject.cxx3
2 files changed, 14 insertions, 1 deletions
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 @@
</info>
<value>false</value>
</prop>
+ <prop oor:name="AnimationsEnabled" oor:type="xs:boolean" oor:nillable="false">
+ <info>
+ <desc>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.
+ </desc>
+ <label>Defines if the user interface animations are disabled.</label>
+ </info>
+ <value>true</value>
+ </prop>
</group>
<group oor:name="InternalMSExport">
<info>
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;
}