summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Luby <plubius@neooffice.org>2023-07-21 19:55:02 -0400
committerMichael Weghorn <m.weghorn@posteo.de>2023-07-24 21:12:55 +0200
commite50d4d5c65ad1d43bb33d72e0f801a5083af6fbc (patch)
tree2e0984bb99a23f5bd78f68ad1efdad1262443cf5 /include
parent1629ac1ffd5b0543f66f45cdc51ca51682841a7e (diff)
tdf#155414 include system "reduce animation" preferences
Allow the system's "reduce animation" preferences to disable the Calc animated border when copying a selection of cells. Also, fix failure to stop the animated border when a copy action is performed in a different document by cancelling the animated border. This transferable has lost ownership of the system clipboard so, in essence, the previous copy action that created this transferable has been cancelled. Change-Id: I4da6d557c5dbf653c38a99eb7a16d961843a41d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154752 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: Patrick Luby <plubius@neooffice.org> (cherry picked from commit 55bc4dc435d2e730a088aac881f0d4a248a030ba) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154859 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/settings.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx
index 7f4849c7b718..addf6ebe5711 100644
--- a/include/vcl/settings.hxx
+++ b/include/vcl/settings.hxx
@@ -655,6 +655,8 @@ public:
static bool GetUseDarkMode();
static void SetAppColorMode(int nMode);
static int GetAppColorMode();
+ // return true if system preferences are set to use reduced animation
+ static bool GetUseReducedAnimation();
bool operator ==( const MiscSettings& rSet ) const;
bool operator !=( const MiscSettings& rSet ) const;
};