Bug 153299 - Add drop-down menu to "Strikethrough" options
Summary: Add drop-down menu to "Strikethrough" options
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: easyHack
: 159225 (view as bug list)
Depends on:
Blocks: UNO-Command-New Split-Group-Buttons Sidebar-Properties-Line
  Show dependency treegraph
 
Reported: 2023-02-01 02:58 UTC by Po-Yen Huang
Modified: 2024-01-16 19:24 UTC (History)
8 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 Po-Yen Huang 2023-02-01 02:58:12 UTC
Description:
Please add drop-down menu to "Strikethrough" options, for now, we have this feature for "Underline" options.

Steps to Reproduce:
Click "Strikethrough" options.

Actual Results:
Just add strikethrough to text.

Expected Results:
Shows drop-down menu to select detail options.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.4.5.1 / LibreOffice Community
Build ID: 40(Build:1)
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
7.4.5-1
Calc: CL
Comment 1 Wolf Icefang 2023-02-01 03:46:13 UTC
I'll confirm this. There is no dropdown for choosing strikethrough type no matter what User Interface style you choose (Standard toolbar, tabbed, groupedbar compact, etc.).

If you look in the Font Effects window https://help.libreoffice.org/7.4/en-US/text/shared/01/05020200.html you'll find a variety of strikethrough options.

In favor:
 1.  Adding a dropdown arrow takes up relatively little space.
 2.  Some of the strikethrough options, like / and X, are very unique.
 3.  It's not even possible to set the various strikethrough types to keyboard shortcuts, so it's very inconvenient to use them.

Against (devil's advocate):
 1.  Setting non-standard strikethrough is a pretty niche use case that people don't really need to discover or use.
 2.  There are quite a few extra underline types available in Font Effects... only a select few were chosen to reside in the main UI's underline dropdown. Which strikethrough options do we want to choose?
Comment 2 V Stuart Foote 2023-02-01 07:57:13 UTC
Actually we currently have a drop down, found in the 'Character' dialog -> 'Font Effects'

1. focus and select word or sentence (2 click, 3 click)
2. context menu (right mouse or keyboard)
3. character dialog
4. 'Font Effects'
5. 'Strikethrough'

But currently the only defined UNO action (as used by Toolbar, Sidebar or Notebook Bar) is .uno:StrikeOut which applies the "Single" strikethrough effect. So request could be for additional UNO controls to use for customization. 

Or more simply to provide a UI control similar to the textunderlinecontrol.ui but for the strikeouts for the Toolbar, Sidebar or Notebookbar providing more direct access to a drop list of:

RID_SVXITEMS_STRIKEOUT_NONE
RID_SVXITEMS_STRIKEOUT_SINGLE
RID_SVXITEMS_STRIKEOUT_DOUBLE
RID_SVXITEMS_STRIKEOUT_DONTKNOW
RID_SVXITEMS_STRIKEOUT_BOLD
RID_SVXITEMS_STRIKEOUT_SLASH
RID_SVXITEMS_STRIKEOUT_X
Comment 3 Heiko Tietze 2023-02-01 09:54:49 UTC
I think it's not a big deal to enhance the simple strikethrough to allow other line styles than single lines. Could be an interesting easy hack. Hossein, what do you think?
Comment 4 Stéphane Guillou (stragu) 2023-02-01 10:09:43 UTC
(Not sure when the strikethrough button was added as a default to the toolbar, but it was already available to add in OOo 3.3 -> inherited)
Comment 5 V Stuart Foote 2023-02-01 17:03:03 UTC
(In reply to Heiko Tietze from comment #3)
> I think it's not a big deal to enhance the simple strikethrough to allow
> other line styles than single lines. Could be an interesting easy hack.
> Hossein, what do you think?

See https://gerrit.libreoffice.org/c/core/+/24491/ for the work done to add the droplist (TB, NB, SB) for Underline control, believe similar would be needed for doing a similar Strikethrough control.
Comment 6 Heiko Tietze 2023-02-06 14:50:38 UTC
.uno:Strikeout points to SID_ATTR_CHAR_STRIKEOUT, but it seems a challenging task. Hossein, what do you think?
Comment 7 Rafael Lima 2024-01-16 19:24:20 UTC
*** Bug 159225 has been marked as a duplicate of this bug. ***