diff options
author | László Németh <nemeth@numbertext.org> | 2021-11-17 15:39:59 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-11-17 20:08:22 +0100 |
commit | 970f8ec7c8eb6007181ce55d885eef771dd49cc6 (patch) | |
tree | 3487026f353681f0d0762f86fe6b228380b8749f /sw/source/uibase/docvw | |
parent | f51fa7534421a195a58b4a737a2e836d8c25ba81 (diff) |
tdf#145721 sw track changes: sign text moving in redline tooltips
Write "Moved (deletion)" and "Moved (insertion)" instead of
"Deleted" and "Inserted" in tooltip of tracked text movings.
Follow-up to commit f51fa7534421a195a58b4a737a2e836d8c25ba81
"tdf#145718 sw, DOCX import: complete tracked text moving"
Change-Id: I5db3025ddb7b4758e3699c10971a765784555a20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125405
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin2.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index 5b4f6ce4c5c6..8117db026e92 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -60,8 +60,14 @@ static OUString lcl_GetRedlineHelp( const SwRangeRedline& rRedl, bool bBalloon ) TranslateId pResId; switch( rRedl.GetType() ) { - case RedlineType::Insert: pResId = STR_REDLINE_INSERT; break; - case RedlineType::Delete: pResId = STR_REDLINE_DELETE; break; + case RedlineType::Insert: pResId = rRedl.IsMoved() + ? STR_REDLINE_INSERT_MOVED + : STR_REDLINE_INSERT; + break; + case RedlineType::Delete: pResId = rRedl.IsMoved() + ? STR_REDLINE_DELETE_MOVED + : STR_REDLINE_DELETE; + break; case RedlineType::Format: pResId = STR_REDLINE_FORMAT; break; case RedlineType::Table: pResId = STR_REDLINE_TABLE; break; case RedlineType::FmtColl: pResId = STR_REDLINE_FMTCOLL; break; |