Bug 160194

Summary: Add all 3 Spotlight commands (Paragraph Style, Character Style, Direct Formatting) to Style Inspector
Product: LibreOffice Reporter: Stéphane Guillou (stragu) <stephane.guillou>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: aron.budea, heiko.tietze, mentoring, raykowj, sdc.blanco, vsfoote
Priority: medium Keywords: difficultyMedium, easyHack, skillCpp, topicUI
Version: 7.6.0.3 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=38194
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 134554    

Description Stéphane Guillou (stragu) 2024-03-14 04:21:17 UTC
The new spotlight features (for paragraph styles, character styles and direct formatting) we got in LO 7.6 are a great match for using with the Style Inspector, which lists details about all three.

I suggest adding three tick boxes in the sidebar to control these commands:

Spotlight:
[ ] Paragraph Styles [ ] Character Styles [ ] Direct Formatting

Because of the length of the labels, icons might be a better fit, to keep it in a single row:

Spotlight: [PS] [CS] [DF]

Relevant UNO commands are:
.uno:SpotlightParaStyles (since 24.2)
.uno:SpotlightCharStyles (since 24.2)
.uno:HighlightCharDF (since 7.6)
Comment 1 Heiko Tietze 2024-03-14 09:01:38 UTC
The spotlight is available via Stylist for PS and CS and the main menu for all three. Another route to enable the view sounds like over-engineering to me and clutters the simple Styles Inspector unnecessarily.
Comment 2 V Stuart Foote 2024-03-15 14:36:51 UTC
While available to activate as individual checkboxes now from main menu Format -> Spotlight, or as single checkbox on each of the SB Stylist deck for PS or CS. And the UNO can be further customized for KB or menu/contextmenu use.
 
But Spotlight's ability to visually locate paragraph or character styles applied in document text makes it very useful for making pointer selections when working from the SB 'Style Inspector' deck.

I have to agree that having a checkbox toggle for each of the three current Spotlight flavors available on the 'Style Inspector' deck would make for better UX--enable disable from there. And would self-guide users in the style review of their page content.

+1
Comment 3 Heiko Tietze 2024-04-02 09:37:04 UTC
We discussed the topic in the design meeting.

Adding controls clutters the UI and is not really in scope of the workflow (you inspect an element and it's quite unlikely that you need to know where this style is used). But the majority thinks the drawback is negligible and some users might benefit from the enhancement.

Code pointer:
svx/uiconfig/ui/inspectortextpanel.ui
svx/source/sidebar/inspector/InspectorTextPanel.cxx
Comment 4 Heiko Tietze 2024-07-01 09:38:57 UTC
Patch https://gerrit.libreoffice.org/c/core/+/166381 abandoned due to inactivity