diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-04-09 14:30:22 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-04-10 15:27:36 +0200 |
commit | a08f9ed2341bc60faae6b86538661fea40417ace (patch) | |
tree | d0e2ed53550d01b4e418eec55276ad358b4b54c7 /sc/inc/globstr.hrc | |
parent | 655b6c2f46a73d9893ba8e6b572731a5890a4f72 (diff) |
sc: add UI, undo/redo and test to change sparkline data range
This adds a "edit sparkline" action to the context menu and a
dialog to change the data range of a sparkline. To change a
sparkline using undo/redo, a new class UndoEditSparkline was
added, which allows to change the attributes of a sparkline and
revert back the old attributes when undoing. This is then used in
the Dialog when setting the changed data range of a sparkline.
To make sure that undo/redo works correctly, a simple unit tests
was added.
Change-Id: I08af1813fa288278bc0d33b0540660b325b17235
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132748
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/inc/globstr.hrc')
-rw-r--r-- | sc/inc/globstr.hrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc index 96d2dca307a5..7f2bcb28b0ba 100644 --- a/sc/inc/globstr.hrc +++ b/sc/inc/globstr.hrc @@ -545,6 +545,7 @@ #define STR_UNDO_EDIT_SPARKLINE_GROUP NC_("STR_UNDO_EDIT_SPARKLINE_GROUP", "Edit Sparkline Group") #define STR_UNDO_GROUP_SPARKLINES NC_("STR_UNDO_GROUP_SPARKLINES", "Group Sparklines") #define STR_UNDO_UNGROUP_SPARKLINES NC_("STR_UNDO_UNGROUP_SPARKLINES", "Ungroup Sparklines") +#define STR_UNDO_EDIT_SPARKLINE NC_("STR_UNDO_EDIT_SPARKLINE", "Edit Sparkline") #endif |