It seems (almost) the only way one can do anything with a section is work on all sections via Format | Sections. The only exception seems to be the ability to select a section's contents via the Navigator. However, I believe we should be able to do more, from one of: 1. A pop-up/context menu for a section 1.1 For its contents 1.2 For its boundary (the gray frame(s) drawn around it) 2. The navigator entry for the section And that relevant actions should include some of: * Deleting the section (along with its contents) * Hiding/collapsing the section * Merging the section into the containing section * Renaming the section * Setting different default styles for the section (perhaps that should merit a separate bug report though) * Merging the sections containing the selected text into a new single section of the common ancestor of these sections
+1, room to improve the UI, specifics would need design in line with what ODF can support.
(In reply to V Stuart Foote from comment #1) > specifics would need design in line with what ODF can support. Note that most of what I've proposed is available in Format | Sections already.
(In reply to Eyal Rozenberg from comment #0) > * Deleting the section (along with its contents) The button Remove does the trick. > * Hiding/collapsing the section Hide is available in the dialog. And if you want another than the current dialog, how do you un-hide a section? > * Merging... Renaming... Setting different default styles... Merging the sections Sounds like over-engineering. What is the actual use case that needs to be solved? https://help.libreoffice.org/6.1/en-US/text/swriter/guide/sections.html
(In reply to Heiko Tietze from comment #3) > (In reply to Eyal Rozenberg from comment #0) > > * Deleting the section (along with its contents) > The button Remove does the trick. 1. What button? 2. Tables have deletion in their context menu, so why not sections? > > * Hiding/collapsing the section > Hide is available in the dialog. And if you want another than the current > dialog, This bug is specifically about making things accessible via a context menu. > how do you un-hide a section? How do you anything that's hidden? You don't see whatever you've hidden after all. Not sure how this question is relevant here. The dialog lets you unhide things. > > * Merging... Renaming... Setting different default styles... > Sounds like over-engineering. Tables have very rich context menus. Isn't that over-engineering? > What is the actual use case that needs to be solved? You see the frame of a section, you want to do something with that section. It's right there. Why should you have to open an all-document dialog and start looking for it? Right-clicking what you want to manipulate should work in LibreOffice. > Merging the sections Suppose you see two section frames which used to have more contents. You may want to select them, then right-click, then merge them. Much more convenient then trying to figure out their names, look them up in the dialog etc.
(In reply to Eyal Rozenberg from comment #4) > This bug is specifically about making things accessible via a context menu. Well, the summary is "No UI for manipulating a section...". I'm not against a command Hide in the context menu but the other functions are over-engineering.
Set this to NEW based on my -1 and Stuart's +1. IMO, this has no use case to solve.
(In reply to Heiko Tietze from comment #5) > Well, the summary is "No UI for manipulating a section...". I'm not against > a command Hide in the context menu but the other functions are > over-engineering. Ok, fair enough about the requests exceeding UI availability - that merits a separate bug. Let's limit this to some/most/all of the functionality currently available via Format | Sections. In that dialog we have: * Hide * Delete * Link to contents of another file <- actually I don't quite understand what kind of link this is, it looks like it just copies the contents and the help page says the same * Protect * Make editable (in a read-only document) * Open "Options" dialog ... and perhaps open the Format | Sections dialog with a focus on the right-clicked section. Hide, Delete, and Options are definitely necessary; and probably also opening the Format | Sections dialog.
We have "Edit Section" /.uno:EditCurrentRegion in the 'Text' context menu being visible only when in a section. The dialog provides everything to manipulate the section and I disagree with the need to expose Delete and Hide at the context menu. These functions are not needed right "at the hand" and rather something at the initialization.
(In reply to Heiko Tietze from comment #8) Why should we not be able to act on sections from their context menu, while we can act on tables, frames, objects, fields etc. ? Those have dialogs as well, after all.