summaryrefslogtreecommitdiff
path: root/officecfg/registry
diff options
context:
space:
mode:
authorPer99 <solare99@gmx.de>2024-07-29 11:36:29 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-31 09:29:47 +0200
commitef7429f86788f0616db5b274ec77eb67cd41cb3d (patch)
treef037348182ff7ba6f42cb4943701bb2676403530 /officecfg/registry
parentbf47539b805a3c654fa8ab3638123875b53565d5 (diff)
tdf#161765, tdf#115688 Let user choose which animation settings to use
In the accessibility option page, the user can now choose which animation settings to use (OS's or LO's animation setting) and what animations to allow. This fixes also tdf#115688: "Add Checkbox option to disable animated overlay to Tools -> Options -> Accessibility panel" Changes due to this patch: 1. Changes in the GUI of the accessibility option page: - New option "Allow other animations" (Used for "Marching Ants" animation, instead of old expert option "AnimationsEnabled"), now as enum. - Changed option "Allow animated images", now as enum: "System", "No", "Yes" - Changed option "Allow animated text", now as enum: "System", "No", "Yes" - The old animation options in Common.xcs are not renamed, but marked as deprecated and obsolete in their text. These above changes are in the files: [optaccessibilitypage.ui, optaccessibility.hxx, optaccessibility.cxx, Common.xcs] 2. Added functions to compute if the animations of images/text/other are allowed. If "System" is chosen, then use OS’s animation setting. See files: [settings.hxx, settings.cxx] 3. Respect the animation settings of animated images/texts in Draw and Impress. Don't prohibit the user to enable animations in Draw and Impress if the OS's animations are disabled. See file: [objectcontactofpageview.cxx] 4. Respect the animation settings of animated images in Writer. See file: [viewsh.cxx] 5. Respect the "Allow other animations" setting in Calc (for "marching ants" animation). Don't prohibit the user to enable these other animations in LO if the OS's animations are disabled. See file: [overlayobject.cxx] Change-Id: I5173f9b3d8652a17a6ae07164e874143738bcd66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170827 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'officecfg/registry')
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs98
1 files changed, 88 insertions, 10 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index fae4d7310201..068df683a2c5 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -679,13 +679,9 @@
</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>
+ <deprecated>Not used anymore</deprecated>
+ <desc>__Obsolete__: Please use the setting "Allow other animations" found in Menu: Tools --> Options --> Accessibility.</desc>
+ <label>__Obsolete__: Please use the setting "Allow other animations" found in Menu: Tools --> Options --> Accessibility.</label>
</info>
<value>true</value>
</prop>
@@ -6034,7 +6030,8 @@
</constraints>
<value>4</value>
</prop>
- <prop oor:name="IsAllowAnimatedGraphics" oor:type="xs:boolean" oor:nillable="false">
+ <prop oor:name="AllowAnimatedGraphic" oor:type="xs:short" oor:nillable="false">
+ <!-- UIHints: Tools - Options - Accessibility Options -->
<info>
<desc>Indicates whether to allow the graphical animation in all SO/OO
applications (i.e. animated GIFs and objects in Impress during
@@ -6042,14 +6039,95 @@
Insert-Image, Animation Tool in Impress.)</desc>
<label>Allow animated images</label>
</info>
- <value>true</value>
+ <constraints>
+ <enumeration oor:value="0">
+ <info>
+ <desc>Use the OS setting for allowing animations.</desc>
+ </info>
+ </enumeration>
+ <enumeration oor:value="1">
+ <info>
+ <desc>No</desc>
+ </info>
+ </enumeration>
+ <enumeration oor:value="2">
+ <info>
+ <desc>Yes</desc>
+ </info>
+ </enumeration>
+ </constraints>
+ <value>0</value>
</prop>
- <prop oor:name="IsAllowAnimatedText" oor:type="xs:boolean" oor:nillable="false">
+ <prop oor:name="AllowAnimatedText" oor:type="xs:short" oor:nillable="false">
+ <!-- UIHints: Tools - Options - Accessibility Options -->
<info>
<desc>Indicates whether to allow all textual animation like blinking
and scrolling in all SO/OO applications.</desc>
<label>Allow animated text</label>
</info>
+ <constraints>
+ <enumeration oor:value="0">
+ <info>
+ <desc>Use the OS setting for allowing animations.</desc>
+ </info>
+ </enumeration>
+ <enumeration oor:value="1">
+ <info>
+ <desc>No</desc>
+ </info>
+ </enumeration>
+ <enumeration oor:value="2">
+ <info>
+ <desc>Yes</desc>
+ </info>
+ </enumeration>
+ </constraints>
+ <value>0</value>
+ </prop>
+ <prop oor:name="AllowAnimatedOthers" oor:type="xs:short" oor:nillable="false">
+ <!-- UIHints: Tools - Options - Accessibility Options -->
+ <info>
+ <desc>Indicates whether to allow certain others animations
+ (like "marching ants" animation when copying a cell in Calc)
+ in all SO/OO applications.
+ Disabling animations makes a lot of sense on remote connections
+ (VNC), where animations increase the (always limited) amount of
+ bandwidth needed.</desc>
+ <label>Allow other animations</label>
+ </info>
+ <constraints>
+ <enumeration oor:value="0">
+ <info>
+ <desc>Use the OS setting for allowing animations.</desc>
+ </info>
+ </enumeration>
+ <enumeration oor:value="1">
+ <info>
+ <desc>No</desc>
+ </info>
+ </enumeration>
+ <enumeration oor:value="2">
+ <info>
+ <desc>Yes</desc>
+ </info>
+ </enumeration>
+ </constraints>
+ <value>0</value>
+ </prop>
+ <prop oor:name="IsAllowAnimatedGraphics" oor:type="xs:boolean" oor:nillable="false">
+ <info>
+ <deprecated>Not used anymore</deprecated>
+ <desc>__Obsolete__: Please use the setting "Allow animated images" found in Menu: Tools --> Options --> Accessibility.</desc>
+ <label>__Obsolete__: Please use the setting "Allow animated images" found in Menu: Tools --> Options --> Accessibility.</label>
+ </info>
+ <value>true</value>
+ </prop>
+ <prop oor:name="IsAllowAnimatedText" oor:type="xs:boolean" oor:nillable="false">
+ <info>
+ <deprecated>Not used anymore</deprecated>
+ <desc>__Obsolete__: Please use the setting "Allow animated text" found in Menu: Tools --> Options --> Accessibility.</desc>
+ <label>__Obsolete__: Please use the setting "Allow animated text" found in Menu: Tools --> Options --> Accessibility.</label>
+ </info>
<value>true</value>
</prop>
<prop oor:name="IsAutomaticFontColor" oor:type="xs:boolean" oor:nillable="false">