Bug 156510 - Support list styles or paragraph styles "not sticking" when the style in the other category changes
Summary: Support list styles or paragraph styles "not sticking" when the style in the ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2023-07-28 21:40 UTC by Eyal Rozenberg
Modified: 2023-10-17 12:21 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 2023-07-28 21:40:39 UTC
Currently, when a paragraph has a list style, and one switches the paragraph style - the paragraph retains its list style. However, in some cases, the user changing the style also wants to remove the list style, as the paragraph is no longer considered one of the list items.

It would be nice if one could do one of the following:

* Mark the list style as "non-sticky", so that when the paragraph style changes - the list style is cleared (to "No List")
, Mark the target paragraph style as "list-style-forgetful", i.e. when applying it to a paragraph in another PS and a list style, the list style is cleared.

Naturally, it would be for users to decide which LS'es or PS'es have this feature; and the default can remain as it is today (or not? bikeshedding.)


Example paragraph styles for which this might be relevant: blockquote; source code segments; and maybe even headings (which have their own numbering, "Heading Numbering" or "Chapter Numbering").
Comment 1 Heiko Tietze 2023-08-16 13:50:00 UTC
(In reply to Eyal Rozenberg from comment #0)
> ... when a paragraph has a list style, and one switches the paragraph style
> ...so that when the paragraph style changes - the list style is cleared
What does this mean? Please add some STR.
Comment 2 Heiko Tietze 2023-09-27 04:57:52 UTC
(In reply to Eyal Rozenberg from comment #0)
> * Mark the list style as "non-sticky"..."list-style-forgetful"

This is obviously not flexible. Still missing STR.
Comment 3 Eyal Rozenberg 2023-10-02 18:27:41 UTC
(In reply to Heiko Tietze from comment #2)
> Still missing STR.

1. Set the paragraph style to Text Body.
2. Set some list style, e.g. "Bullet -"
3. Type some text
4. Press Enter to get to a new paragraph
5. Change the style to Title

Expected results:
List style is dropped in favor of the default list style (i.e. No List)
or rather - expecting to be able to choose whether the list style should be dropped or not 

Actual results:
List style persists in the Title paragraph

if we switch to Heading 1 though, instead of Title - the "Bullet -" style does not persist. Why can the user not configure whether they want persistence of the list style or not, when switching to a given style?
Comment 4 QA Administrators 2023-10-03 03:16:44 UTC Comment hidden (obsolete)
Comment 5 Heiko Tietze 2023-10-04 12:18:24 UTC
If you apply the list attribute as direct formatting it continues with the next paragraph (unlike when it's defined with the style). While the heading most likely should not be part of the list, changing this means to also revert other attributes like serif font. And for convenience we continue DF.

Mike, what do you think about an exception for lists? Meaning if the PS changes any DF to the list attribute would be removed.
Comment 6 Mike Kaganski 2023-10-04 13:07:24 UTC
The "No List" choice on the Outline & List tab means "no specific list assignment" for the style. But we could have e.g. "No List" and "Really No List" (the latter meaning "drop any list info from paragraph when applying this style"). I see no problem (both technical, and usability) in this. In fact, this would somewhat align with e.g. tdf#62032, which got partially implemented (as experimental feature) in 7.6. The only really difficult problem here could be naming of that "Really No List" item.
Comment 7 Heiko Tietze 2023-10-17 12:20:38 UTC
Sounds like a tri-state checkbox, or alternatively "Continue with previous attribute" (and the to be added option 'really no list' would take the current name).