diff options
author | László Németh <nemeth@numbertext.org> | 2021-11-18 11:39:42 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-11-18 13:46:06 +0100 |
commit | a478ac0f0a1eda92d35477462f70412bc65f9d36 (patch) | |
tree | 13b8ce9060348ddad5119bb98f78e41445aa31e0 /sw/source/uibase/misc | |
parent | 06f36cc7ca8fc056dd8cf4d8cdbe682f9a003cef (diff) |
tdf#145721 sw: add 'moved text' icons to Manage Changes
For Moved (deletion) and Moved (insertion) text changes,
add new Action icons to Manage Changes dialog window
(Edit->Track Changes->Manage...), re-using existing
Cut and Paste icons.
Follow-up to commit 970f8ec7c8eb6007181ce55d885eef771dd49cc6
"tdf#145721 sw track changes: sign text moving in redline tooltips".
Change-Id: Ic202538ec31963e5e27170c7e5ea819a7f2bde9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125445
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/uibase/misc')
-rw-r--r-- | sw/source/uibase/misc/redlndlg.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index 5a53a7472fe0..e27a0a7d4c9b 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -305,8 +305,12 @@ OUString SwRedlineAcceptDlg::GetActionImage(const SwRangeRedline& rRedln, sal_uI { switch (rRedln.GetType(nStack)) { - case RedlineType::Insert: return BMP_REDLINE_INSERTED; - case RedlineType::Delete: return BMP_REDLINE_DELETED; + case RedlineType::Insert: return rRedln.IsMoved() + ? OUString(BMP_REDLINE_MOVED_INSERTION) + : OUString(BMP_REDLINE_INSERTED); + case RedlineType::Delete: return rRedln.IsMoved() + ? OUString(BMP_REDLINE_MOVED_DELETION) + : OUString(BMP_REDLINE_DELETED); case RedlineType::Format: return BMP_REDLINE_FORMATTED; case RedlineType::ParagraphFormat: return BMP_REDLINE_FORMATTED; case RedlineType::Table: return BMP_REDLINE_TABLECHG; |