diff options
author | László Németh <nemeth@numbertext.org> | 2021-09-13 15:21:14 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-09-14 12:29:50 +0200 |
commit | f481c2c8e74bded11fac754e493560391229dbcd (patch) | |
tree | 1d1b6789a436c7e231de1605f91b920039b80775 /sw/inc | |
parent | e71d011a59e12683df25c893bd0b989b5f659d79 (diff) |
tdf#144057 sw track changes: hide deleted table rows
and tables in Hide Changes mode. Previously it was
possible to "hide" them only by accepting all the
deletions, because Hide Changes mode hid only the
cell content, but not the deleted rows and tables,
leaving empty rows and tables in the document.
Follow-up of commit 05366b8e6683363688de8708a3d88cf144c7a2bf
"tdf#60382 sw offapi: add change tracking of table/row deletion".
Change-Id: Ib0424f5a17f2213fc7466e966d8ce6812ffde5e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122079
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/swtable.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index ce1982312f75..3347e04993e1 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -26,6 +26,7 @@ #include "calbck.hxx" #include "swrect.hxx" #include "swtblfmt.hxx" +#include "docary.hxx" #include <memory> #include <vector> @@ -345,6 +346,11 @@ public: bool CanConvertSubtables() const; void ConvertSubtables(); + + // is it a table deleted completely with change tracking + bool IsDeleted() const; + // is it a table with deleted row(s) + bool HasDeletedRow() const; }; /// SwTableLine is one table row in the document model. @@ -389,6 +395,10 @@ public: // it doesn't contain box content bool IsEmpty() const; + + // is it a tracked deleted row + // (search its first redline from rRedlinePos to speed up SwTable::IsDeleted()) + bool IsDeleted(SwRedlineTable::size_type& rRedlinePos) const; }; /// SwTableBox is one table cell in the document model. |