Kaydet (Commit) 2e293978 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

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
üst 422fdecc
......@@ -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>
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment