Bug 114264 - Option to modify a menu or toolbar entry's style in customization dialog
Summary: Option to modify a menu or toolbar entry's style in customization dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.1.0.0.alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Customise-Dialog Toolbars
  Show dependency treegraph
 
Reported: 2017-12-05 14:00 UTC by Yousuf Philips (jay) (retired)
Modified: 2017-12-17 19:54 UTC (History)
3 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 Yousuf Philips (jay) (retired) 2017-12-05 14:00:21 UTC
Individual menu and toolbar entries can have their own style/appearance similar to how toolbars can be set to show icons, icons & text, or text, so it would be useful to allow users to modify this feature in the new customization dialog.

For toolbar entries you have the toolbar:style which can be blank for icon, 'image text' for icon & text, and 'text' for text only. For menu entries you have the menu:style attribute that 'radio' for radio button, 'text' for text only, and likely some more that i dont know about.

These entries would go into the Modify group button under a 'Style' submenu.
Comment 1 Yousuf Philips (jay) (retired) 2017-12-17 18:53:43 UTC
For menus, Maxim mentioned in bug 98058 comment 13 that menu:style="image" is available, which forces the display of an icon.
Comment 2 Maxim Monastirsky 2017-12-17 19:54:39 UTC
After my recent patches, the style of a toolbar/menu item is stored in the customization dialog in the associated SvxConfigEntry in the nStyle member, so it should be easy to implement the UI for setting it.

The values correspond to the constants from offapi/com/sun/star/ui/ItemStyle.idl, in particular RADIO_CHECK, TEXT, and ICON. Icon+text style of a toolbar button is ICON+TEXT combined using bitwise OR. For a menu, ICON and a combined ICON+TEXT have both the same meaning, as a menu item can't have just an icon w/o text.

(In reply to Yousuf Philips (jay) from comment #0)
> For toolbar entries you have the toolbar:style which can be blank for icon,
Blank means the default setting of the whole toolbar. 'image' is what will force the icon.