sw: add a new .uno:DeleteSections UNO command

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 20 January 2023 12:41 UTC

This is similiar to commit 1d6593dd799ff4eb931ffbb5338e4856fb87f77f (sw: add a new .uno:DeleteFields UNO command, 2023-01-16), but that deleted refmarks (used for e.g. Zotero citations), while this deletes sections (used for e.g. Zotero bibliography).

Implement the section "unlinking" (delete the section, but not its data) by deleting the section format: that will remove the matching section node as well, but not the content nodes.

Change-Id: Ib00a8f592ddbb77c5e8e08ff94bb0eebfcf7cea8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145870

a5a1ea2f7d78 sw: add a new .uno:DeleteSections UNO command
sw/CppunitTest_sw_uibase_shells.mk | 1 +
sw/inc/cmdid.h | 1 +
sw/qa/uibase/shells/textsh.cxx | 64 +++++++++++++++++++++++++++++++++++++
sw/sdi/_textsh.sdi | 6 ++++
sw/sdi/swriter.sdi | 14 ++++++++
sw/source/uibase/shells/textsh1.cxx | 50 +++++++++++++++++++++++++++++
6 files changed, 136 insertions(+)

Upstream: cgit.freedesktop.org


  • Share