summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2023-04-25 11:04:05 +0200
committerLászló Németh <nemeth@numbertext.org>2023-04-25 14:27:57 +0200
commitdd5e5f3fab4b8f736baeda0f706c77a4ea9b6804 (patch)
tree12e3ce9006148406744aa249021e399fe735d63b /sw/inc
parent6252959192c07973af698ce30fa67b1a29e4871e (diff)
tdf#150824 sw DOCX: fix export of new tracked tables
New tracked tables handled by a single redline, which lost during the export: only the tracked text changes of the cells were exported, but not the table changes. This resulted also problems in MSO, e.g. rejecting text changes removed only single cells of the tables, modifying the table structure. To fix this, add missing tracking to the table rows, if needed. Follow-up to commit 896c2199d9f0a28bd405dd2d1068f5e2973cdf06 "tdf#79069 DOCX: support tracked table (row) deletion". Change-Id: Ic900cafa7bea3c934d8d1bd585b3e95f56746db2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150967 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/swtable.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index 272ba18393f1..bd674486278f 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -426,6 +426,9 @@ public:
// Cache also the type of the redline associated to the changed table row.
SwRedlineTable::size_type UpdateTextChangesOnly(
SwRedlineTable::size_type& rRedlinePos, bool bUpdateProperty = true) const;
+ // tracked text changes, i.e. a single redline can contain tables
+ // get that redline for the table row, if it exists
+ SwRedlineTable::size_type GetTableRedline() const;
// is it a tracked row
bool IsTracked(SwRedlineTable::size_type& rRedlinePos, bool bOnlyDeleted = false) const;
// is it a tracked deleted row