Bug 42787 - Functionality request for Writer: Add deleting of Sections using the Delete function inside of the Navigator
Summary: Functionality request for Writer: Add deleting of Sections using the Delete f...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.4.3 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
Whiteboard: BSA target:24.2.0
Depends on:
Blocks: Navigator
  Show dependency treegraph
Reported: 2011-11-10 06:44 UTC by Harald Koester
Modified: 2023-10-12 18:56 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:

Demonstration file (23.17 KB, application/vnd.oasis.opendocument.text)
2012-05-25 03:01 UTC, Harald Koester

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koester 2011-11-10 06:44:33 UTC
Objects in some categories inside the Navigator can be deleted by using the Del button or with the context menu (e.g. Graphics, Bookmarks, Comments). Objects in other categories can't be deleted (e. g. Headings, Sections). I don't know if this is intended or if it is a bug. Nevertheless it would be fine, if you can delete all objects inside the Navigator. Hence it is possible to delete a lot of text with such a delete function a warning should be displayed and an acknowledgment of the user should be demanded.  
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20110920 Firefox/3.6.23
Comment 1 sasha.libreoffice 2012-04-19 22:26:20 UTC
Thanks for bugreport
Please, attach small document that demonstrates this problem

PS: deleting sections should retain text inside of it. Contents of section just appears outside of section and section itself disappears.
Comment 2 Harald Koester 2012-05-25 03:01:54 UTC
Created attachment 62096 [details]
Demonstration file

Open text document with LO and follow the instruction inside the document.
Comment 3 sasha.libreoffice 2012-05-25 04:25:19 UTC
Thanks for attachment
Problem with undoing bookmarks resembles this: Bug 44131, but creating separate bug for this problem is very welcomed.

Deleting Headings: reproducible.
IMHO expected that users will double click headers in Navigator and solve problem now in text, not in Navigator.

Deleting Sections: reproducible.
to remove section, do right mouse click->Edti->Remove.
IMHO deleting sections immediately from Navigator makes sense

Changing to Enhacement
Comment 4 Harald Koester 2012-11-26 16:16:55 UTC
Undoing of deletion a bookmark: 
In bug 51741 is described, that a deletion of a bookmark is not seen as a modification of a document. When that bug will be corrected, I expect that it should be possible to undo a deletion of a bookmark.
Comment 5 Harald Koester 2017-12-19 13:12:51 UTC
It's still not possible to delete objects in several Navigator cathegories.
Comment 6 Roman Kuznetsov 2020-02-02 15:53:54 UTC
Jim, you make many changes for Navigator now. Possibly this enh WIP also? 
Or may be we just should close it as dupe of bug 128814?
Comment 7 Jim Raykowski 2020-02-04 03:16:11 UTC
Hi Roman, I looked at making Section delete. Seems like it would take quite a bit of effort. This can be done in the Edit Sections dialog which can be accessed from the Navigator Sections context menu Edit.. item. WIP on delete for Hyperlink. References content type doesn't have delete either.
Comment 8 Jim Raykowski 2023-10-11 04:39:44 UTC
Took me a while to figure out how to do this :-).
Here's a link to a patch that adds the ability to delete sections using the Navigator:
Comment 9 Commit Notification 2023-10-12 17:14:06 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":


tdf#42787 SwNavigator: Add ability to delete Sections

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 10 BogdanB 2023-10-12 18:56:45 UTC

Jim, thanks for fixing, and Harald for reporting this bug.

Section CAN be deleted with
Version: (X86_64) / LibreOffice Community
Build ID: 6afffcee5fcf7c9719abe7176468d20602e750bf
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

Section could not be deleted in 7.6 (for reference)
Version: (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded