Bug 153731 - Two problems with clicking on [List Level] section in the Status bar
Summary: Two problems with clicking on [List Level] section in the Status bar
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: Clarify-Chapter-Heading-Outline-Level
Blocks: Statusbar
  Show dependency treegraph
 
Reported: 2023-02-19 11:17 UTC by sdc.blanco
Modified: 2023-03-07 12:56 UTC (History)
4 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 sdc.blanco 2023-02-19 11:17:55 UTC
1. Open document and insert Ordered List (F12) or Unordered List (Shift+F12).

2. Notice that "Level 1" appears in the Status Bar (towards the right end), when cursor is placed in list paragraph.

3. Click on the section where Level 1 appears.

Actual:  B&N dialog opens.

4. Insert a List Style list (e.g., in document, right-click, choose List, then Numbering 123).  

Actual:  [List Style Name]: Level 1

5. Click on section with Level 1 appears.

Actual:  Nothing happens.
Expected:  Dialog opens for the List Style where the cursor is placed.

6. Insert any Heading N PS, notice in Status Bar "Chapter Numbering: Level n", where n depends on the outline level of the heading.

7. Click on section where "Chapter Numbering..." appears.

Actual:  B&N dialog opens.
Expected: Chapter Numbering dialog opens.

8.  Make a new paragraph style, on Outline&List tab, assign a List Style to the style.

9.  Apply new PS to a paragraph in the document, notice  [List Style Name]: Level 1 appears.

10. Click on section with Level 1 appears.

Actual:  Nothing happens.
Expected:  Dialog opens for the List Style where the cursor is placed.

Summary of main issues:

Clicking on status bar when cursor is placed in a list paragraph:

Issue 1.  does not open a relevant dialog for list paragraphs with a List style (Steps 4 and 5; also Steps 8-10).

Issue 2. opens the wrong dialog for list paragraphs assigned in the chapter numbering dialog.  (Steps 6 and 7)

Issue 2 is particularly problematic, given that users are discouraged from using direct list formatting of headings assigned in the Chapter Numbering dialog.
Comment 1 Stéphane Guillou (stragu) 2023-03-05 22:14:28 UTC
Thanks Seth. I agree with everything, this can be greatly improved and made more useful and consistent.

One note though: for issue 2, although the Chapter Numbering dialog would be a better fit, one can still modify the chapter numbering using the Bullets and Numbering dialog. It is functional, but not ideal nor expected.

Tested with:

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and:

OpenOffice.org 3.3.0
OOO330m20 (Build:9567)

(at least the issue with the Heading/Outline was inherited)
Comment 2 sdc.blanco 2023-03-07 09:19:16 UTC
Will ask UXEval to note the summary of main issues (at the end of the OP), and inquire whether the needed changes could be an EasyHack.
Comment 3 Heiko Tietze 2023-03-07 10:43:19 UTC
(In reply to sdc.blanco from comment #0)
> 2. Notice that "Level 1" appears in the Status Bar (towards the right end),
> when cursor is placed in list paragraph.
For consistency I'd add a type label before the level. Like "List: <level>". The difference between list styles and direct formatted lists is not much more than the name vs. a number.

> 7. Click on section where "Chapter Numbering..." appears.
Quite long label and I wonder if we can use "Heading: <level>" here.

> Issue 1.  does not open a relevant dialog for list paragraphs with a List
> style (Steps 4 and 5; also Steps 8-10).
> 
> Issue 2. opens the wrong dialog for list paragraphs assigned in the chapter
> numbering dialog.  (Steps 6 and 7)
Agreed.

If you figure out where to add what it's an easyhack. But the iceberg is very tippy here :-).

(In reply to Stéphane Guillou (stragu) from comment #1)
> One note though: for issue 2, although the Chapter Numbering dialog would be
> a better fit, one can still modify the chapter numbering using the Bullets
> and Numbering dialog. It is functional, but not ideal nor expected.

This has been done for convenience. Most users don't know about outline numbering and expect the list to do the trick - and it does.
Comment 4 sdc.blanco 2023-03-07 12:34:34 UTC
(In reply to Heiko Tietze from comment #3)
Thanks for useful comments.
> If you figure out where to add what it's an easyhack.
> For consistency I'd add a type label before the level. Like "List: <level>".
Good idea.

My guess for this case:
NC_("STR_NUM_LEVEL", "Level ")
https://opengrok.libreoffice.org/xref/core/sw/inc/strings.hrc?r=04495836#1394
 
How about:  "Level " -> "List: Level "

> > 7. Click on section where "Chapter Numbering..." appears.
> Quite long label and I wonder if we can use "Heading: <level>" here.
No objections. 

Another guess:  NC_("STR_OUTLINE_NUMBERING", "Heading Numbering")
https://opengrok.libreoffice.org/xref/core/sw/inc/strings.hrc?r=04495836#301

Drop the "Numbering" -- but NB -- will also affect the Outline & List tab in PS, which would also show only "Heading" for List Style.  (i.e., consistency between PS tab and status bar).

And see 17,18)"
   href="show_bug.cgi?id=140846">bug 140846, maybe "Outline" should become "Heading"
in the Contains  section of the Organizer tab for PS (which should regain the lost consistency, lamented in 17,18)"
   href="show_bug.cgi?id=140846#c8">bug 140846, comment 8)

The status bar display for lists is managed with:
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/uiview/view2.cxx?r=fc1c9d7c#2038

but could not find out how B&N dialog was opened. But wouldn't the idea be to 
follow the same procedure, but open the appropriate dialogs? If so, then that, along with the label changes, would resolve the issues raised in this ticket.

Chapter (heading) numbering is already recognized, but goes to the wrong dialog. List Styles also appears to be identified, so would need to add possibility to open appropriate dialog (which is still the B&N dialog, but probably need to use STR_POOLNUMRULE_NUM_ARY to identify the List style).
Comment 5 Heiko Tietze 2023-03-07 12:56:16 UTC
(In reply to sdc.blanco from comment #4)
> How about:  "Level " -> "List: Level "
The string is also used in other cases like <List Style><STR_NUM_LEVEL>:<Level>
sw/source/uibase/uiview/view2.cxx #2010ff

> The status bar display for lists is managed with:
.uno:Size and svx/source/stbctrls/pszctrl.cxx