diff options
author | László Németh <nemeth@numbertext.org> | 2021-12-07 13:14:29 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-12-08 13:07:51 +0100 |
commit | f348440e17debacbcba9153e238e010e8c020bdc (patch) | |
tree | c13d269f5a6b1bec92724294f70aea4616519bc9 /sw/inc | |
parent | 76784f2dbf6d8641cfb6bf5d24e37521d6c806df (diff) |
tdf#146120 sw: show tracked table changes with different color
In Change Tracking, show deleted table rows in cyan and
inserted rows in pink. In this case, don't show original
table row or cell background.
Follow-up to commit f481c2c8e74bded11fac754e493560391229dbcd
"tdf#144057 sw track changes: hide deleted table rows".
Change-Id: Ib9cc411b62b92bc8a83dda7589f3e798f7e96f41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126482
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/swtable.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index e4ba92aaa6df..652b254a8c86 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -359,6 +359,7 @@ class SW_DLLPUBLIC SwTableLine final : public SwClient // Client of FrameFor { SwTableBoxes m_aBoxes; SwTableBox *m_pUpper; + RedlineType m_eRedlineType; public: @@ -402,9 +403,13 @@ public: // Return with the redline, which associated to the row change (latest deletion // in the case of deleted row, the first insertion in the case of row insertion // or npos, if TextChangesOnly is true, i.e. the table row is not deleted or inserted). + // Cache also the type of the redline associated to the changed table row. SwRedlineTable::size_type UpdateTextChangesOnly(SwRedlineTable::size_type& rRedlinePos) const; // is it a tracked deleted row bool IsDeleted(SwRedlineTable::size_type& rRedlinePos) const; + // set/get (if it's possible, cached) redline type + RedlineType GetRedlineType() const; + void SetRedlineType(RedlineType eType) { m_eRedlineType = eType; } }; /// SwTableBox is one table cell in the document model. |