Bug 161251 - Support showing combinations of (named) style + direct formatting in Stylist, as in MS Word
Summary: Support showing combinations of (named) style + direct formatting in Stylist,...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha1+
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 89974
Blocks: Sidebar-Styles Writer-Styles
  Show dependency treegraph
 
Reported: 2024-05-24 07:09 UTC by Eyal Rozenberg
Modified: 2024-10-24 09:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot MSO (20.90 KB, image/png)
2024-06-06 07:03 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-05-24 07:09:32 UTC
(This bug splits off the non-dupe part of bug 147769.)

The styles sidebar in Microsoft Word (and perhaps other MSO apps?) lets you show either only named styles, or all combinations of named styles and direct-formatting. See example in attachment 114059 [details].

It would be useful to allow this in LibreOffice as well, especially in combination with the ability to select all relevant content (bug 89974). 

Why? Because you may want to do the following with those pieces of content:

1. Copy or cut all of that content, at once, and paste it elsewhere.
2. Type over that content That will place the new content instead of the last stretch of selected content and delete all the rest.
4. Browse the document and have the content with that style highlighted.
5. I want to change the direct formatting of this content.
6. I want to create a new named style based on that named-style-plus-DF combination, and apply it to all of that content, in a single action.

See some discussion in bug 147769.
Comment 1 Eyal Rozenberg 2024-05-24 07:11:00 UTC
I should mention this is relevant in Impress and Calc as well, if not also elsewhere.
Comment 2 Heiko Tietze 2024-05-24 08:22:08 UTC
I cannot follow. What is a "named style" and how does DF come into play?

If it's about filtering please search the depending tickets for a duplicate.

Some wording conventions:

Styles Sidebar = Stylist
Styles Toolbar = Styles Toolbar :-)
Direct Formatting = DF
Character Style = CS
Paragraph Style = PS
Page Style = PgS
Comment 3 Eyal Rozenberg 2024-05-24 08:51:21 UTC
(In reply to Heiko Tietze from comment #2)
> I cannot follow. What is a "named style" and how does DF come into play?

A style which has a name (as opposed to anonymous "autostyles"). This bug is about all kinds of entities which admit direct formatting and (named) styles: Paragraph, Character, List, Cell, Drawing Object etc.
Comment 4 Heiko Tietze 2024-05-24 09:07:47 UTC
So you want to show for example

Default Style
> Text Body (designed as right aligned and English)
  > Left*
    > Hebrew*
  > Justified*
    > Hebrew*
  > Hebrew*
  > Bold*
    > Left*
  > Left*
    > Bold*

Strong -1 for diluting the strength of the Stylist with arbitrary attributes.

(In reply to Eyal Rozenberg from comment #0)
> 1. Copy or cut all of that content, at once, and paste it elsewhere.
The Stylist is not meant for copy/paste, use the F&R dialog.
> 4. Browse the document and have the content with that style highlighted.
We have the Styles Highlighting, also in combination with DF.
> 5. I want to change the direct formatting of this content.
Why would you want to use a perfect control to list and manage styles to change DF?
> 6. I want to create a new named style based on that named-style-plus-DF
> combination, and apply it to all of that content, in a single action.
New > From Selection allows to create a new style with the current formatting.
Comment 5 Eyal Rozenberg 2024-05-24 10:11:12 UTC
(In reply to Heiko Tietze from comment #4)
> So you want to show for example
> 
> Default Style
> > Text Body (designed as right aligned and English)
>   > Left*
>     > Hebrew*
>   > Justified*
>     > Hebrew*
>   > Hebrew*
>   > Bold*
>     > Left*
>   > Left*
>     > Bold*

Not really. I don't want a multi-level hierarchy. Either 0-level or 1-level; and the item text is the full text I would see in the organizer tab of the Style dialog, e.g. "Blockquote + RGB(255,128,0) + Superscript automatic + Borders top (Black, Single, dash-dot-dot), Spacing 0.05 cm"

Naturally, this will exceed the length we have available in the sidebar. But - that's fine, because:

1. Tooltip.
2. The user will be able to see which content they selected, so they can double-check it's the right item in the Stylist.


> Strong -1 for diluting the strength of the Stylist with arbitrary attributes.

You're not diluting it at all. This would be an _optional_ toggle, defaulting to off. So, unless you want to see this stuff, you'll see the same thing as you do today.

> The Stylist is not meant for copy/paste, use the F&R dialog.

The stylist is meant for locating and selecting content. But since this seems to bother you, let me mark a dependency on bug 89974.

And the F&R dialog is irrelevant, nobody would use that to select anything.

> > 4. Browse the document and have the content with that style highlighted.
> We have the Styles Highlighting, also in combination with DF.

Yes, but - the highlighting will not distinguish between the DF you want and other DF over that style. Plus, it only shows you indications at the side of the page, while you want to see selected text (for CS).

> Why would you want to use a perfect control to list and manage styles to
> change DF?

1. We can clear DF from that content
2. We can apply another style to that content.
3. If DF is allowed by manually selecting multiple pieces of text, it should be catered for also when the selection is automated. 

> > 6. I want to create a new named style based on that named-style-plus-DF
> > combination, and apply it to all of that content, in a single action.

> New > From Selection allows to create a new style with the current
> formatting.

But I don't have the selection, Heiko... I need this feature in order to make the selection and apply the new style to everything.
Comment 6 Cor Nouws 2024-06-05 16:32:59 UTC
I've always experienced MsOffice way of presenting this a great example of mis-information by sheer overload and complexity. Don't do this.
Comment 7 Heiko Tietze 2024-06-06 07:03:18 UTC
Created attachment 194563 [details]
Screenshot MSO
Comment 8 Heiko Tietze 2024-06-06 07:08:48 UTC
We discussed the topic in the design meeting.

Primary intention of this request is feature parity with MS Word. The Styles sidebar allows to show a mix of styles and direct formatting.

LibreOffice offers the Styles Inspector and the Styles Highlighter to get insights into the document formatting. This seems to be sufficient and implemented in a cleaner way than MSO's solution. However, some believe such a view is expected by users and has an advantage, at least in terms of convenience.

If this is going to be implemented it should have to lowest possible impact on usability. Therefore we suggest to add another filter that shows Applied PS+DF or Applied CS+DF, of course with more catchy labels.