sw/inc/strings.hrc | 2 ++ sw/source/uibase/docvw/edtwin2.cxx | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
New commits: commit 970f8ec7c8eb6007181ce55d885eef771dd49cc6 Author: László Németh <[email protected]> AuthorDate: Wed Nov 17 15:39:59 2021 +0100 Commit: László Németh <[email protected]> CommitDate: Wed Nov 17 20:08:22 2021 +0100 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 <[email protected]> Reviewed-by: László Németh <[email protected]> diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 852e46ec9450..d5aaf979b66f 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -1243,6 +1243,8 @@ #define STR_REDLINE_TABLE_ROW_DELETE NC_("STR_REDLINE_TABLE_ROW_DELETE", "Row Deleted") #define STR_REDLINE_TABLE_CELL_INSERT NC_("STR_REDLINE_TABLE_CELL_INSERT", "Cell Inserted") #define STR_REDLINE_TABLE_CELL_DELETE NC_("STR_REDLINE_TABLE_CELL_DELETE", "Cell Deleted") +#define STR_REDLINE_INSERT_MOVED NC_("STR_REDLINE_INSERT_MOVED", "Moved (insertion)") +#define STR_REDLINE_DELETE_MOVED NC_("STR_REDLINE_DELETE_MOVED", "Moved (deletion)") #define STR_ENDNOTE NC_("STR_ENDNOTE", "Endnote: ") #define STR_FTNNOTE NC_("STR_FTNNOTE", "Footnote: ") #define STR_SMARTTAG_CLICK NC_("STR_SMARTTAG_CLICK", "%s-click to open Smart Tag menu") 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;
