diff options
author | László Németh <nemeth@numbertext.org> | 2023-05-09 16:51:06 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2023-05-11 13:51:47 +0200 |
commit | d1004cdd6a445ae73673b0ca360ae034b0ec09f2 (patch) | |
tree | 1cbe4013f58540f6f57a4900767d197d61f6c35a /offapi | |
parent | 2f4e74318a9485d5497478f8bf6b4a00f0e6c9d7 (diff) |
tdf#150673 sw offapi: add change tracking of table column deletion
This is a minimal extension of the text range based change
tracking to record and apply table column deletions with full
Undo/Redo support.
Add property HasTextChangesOnly to com::sun::star::text::CellProperties.
During recording of track changes, deletion of table columns wasn't
recorded: columns were removed completely with their text content.
Now the deletion deletes the cell content with change tracking,
setting also HasTextChangesOnly property of table cells to FALSE. If
a tracked deletion is accepted in a deleted column, and the result
is an empty cell, the column will be removed, if HasTextChangesOnly
property of the deleted cell is FALSE.
Note: Deletion of empty columns isn't recorded. Hiding deleted
columns hasn't been supported yet in the Hide Changes mode.
Follow-up to commit 05366b8e6683363688de8708a3d88cf144c7a2bf
"tdf#60382 sw offapi: add change tracking of table/row deletion".
Change-Id: I36915d7a58f66b4a3bdaf90495cb998d29c36561
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151593
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/text/CellProperties.idl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/offapi/com/sun/star/text/CellProperties.idl b/offapi/com/sun/star/text/CellProperties.idl index 2448c25c8439..58c9718c0dc2 100644 --- a/offapi/com/sun/star/text/CellProperties.idl +++ b/offapi/com/sun/star/text/CellProperties.idl @@ -130,6 +130,12 @@ published service CellProperties @since LibreOffice 6.3 */ [optional, readonly, property] com::sun::star::text::XText ParentText; + + /** If TRUE, the table cell wasn't deleted or inserted with its tracked cell content + + @since LibreOffice 7.6 + */ + [optional, property, maybevoid] boolean HasTextChangesOnly; }; |