Bug 151549 - No UI for manipulating a section other than Format | Sections
Summary: No UI for manipulating a section other than Format | Sections
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Section
  Show dependency treegraph
 
Reported: 2022-10-15 19:07 UTC by Eyal Rozenberg
Modified: 2022-11-29 23:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2022-10-15 19:07:14 UTC
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
Comment 1 V Stuart Foote 2022-10-30 12:00:21 UTC
+1, room to improve the UI, specifics would need design in line with what ODF can support.
Comment 2 Eyal Rozenberg 2022-10-30 19:00:42 UTC
(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.
Comment 3 Heiko Tietze 2022-11-07 09:51:10 UTC
(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
Comment 4 Eyal Rozenberg 2022-11-07 10:28:20 UTC
(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.
Comment 5 Heiko Tietze 2022-11-09 10:25:13 UTC
(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.
Comment 6 Heiko Tietze 2022-11-25 08:39:39 UTC
Set this to NEW based on my -1 and Stuart's +1. IMO, this has no use case to solve.
Comment 7 Eyal Rozenberg 2022-11-25 19:26:17 UTC
(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.
Comment 8 Heiko Tietze 2022-11-28 08:15:22 UTC
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.
Comment 9 Eyal Rozenberg 2022-11-29 23:14:37 UTC
(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.