Bug 104635 - UI: If an image is selected, you can select Styles, Insert Styles (it isn't grayed out) but isn't working either
Summary: UI: If an image is selected, you can select Styles, Insert Styles (it isn't g...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.2.2 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Main-Menu Styles
  Show dependency treegraph
 
Reported: 2016-12-13 12:44 UTC by Telesto
Modified: 2021-07-23 13:43 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (14.17 KB, application/vnd.oasis.opendocument.text)
2016-12-13 12:44 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2016-12-13 12:44:23 UTC
Description:
If an image is selected, you can select Styles, Insert Styles (it's grayed out) but isn't working either

Steps to Reproduce:
1.Open attachment
2.Select an image (blue or gray)
3.Try to open Styles -> Edit Style..

Actual Results:  
Nothing happens

Expected Results:
Opening styles menu or the menu item should be grayed out


Reproducible: Always

User Profile Reset: No

Additional Info:
Version: 5.4.0.0.alpha0+
Build ID: ba6b35fc68a01aff72b39eb7809bacb326068668
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-12-13_06:07:39
Locale: nl-NL (nl_NL); Calc: CL


User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Comment 1 Telesto 2016-12-13 12:44:40 UTC
Created attachment 129576 [details]
Example file
Comment 2 Xisco FaulĂ­ 2016-12-13 20:12:10 UTC
Confirmed in

Version: 5.4.0.0.alpha0+
Build ID: 634589b340316ba64b731b4d923c1056be415494
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

Styles menu is not in

Version: 5.0.0.0.alpha1+
Build ID: 0db96caf0fcce09b87621c11b584a6d81cc7df86
Locale: ca-ES (ca_ES.UTF-8)
Comment 3 QA Administrators 2017-12-17 03:29:33 UTC Comment hidden (obsolete)
Comment 4 Telesto 2017-12-18 18:40:35 UTC
Repro with
Version: 6.1.0.0.alpha0+
Build ID: aad9c6da5154a89c6ef02214d1122d4b444eea23
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-12-15_22:56:44
Locale: nl-NL (nl_NL); Calc: CL
Comment 5 QA Administrators 2018-12-19 03:51:06 UTC Comment hidden (obsolete)
Comment 6 Thomas Lendo 2020-08-05 19:31:40 UTC
Issue reproduced with
Version: 7.1.0.0.alpha0+
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-08-05_04:03:50
Calc: threaded


I think the problem is, that most style commands are only working with paragraph styles. When a not-paragraph object is selected, the menu item should be greyed out or changed so that it works for every style flavor.

Adding Andreas Kainz to CC as he has experience with such commands when editing the menu structure or he knows who can possibly help.
Comment 7 andreas_k 2020-08-05 20:51:26 UTC
Writer didn't offer drawing styles support (Bug 132175) where you would change styles for drawings (and maybe graphics).

In writer there is styles support for graphics but ONLY for Frames Styles. See Styles sidebar.
Comment 8 stragu 2021-07-23 13:17:20 UTC
Reproduced in recent master build:

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: cd2b5168e8ef1cb6e721bc5220421464ed723096
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-21_14:56:23
Calc: threaded
Comment 9 stragu 2021-07-23 13:43:30 UTC
Note that, according to the attachment, this is about Image styles, and not Drawing object styles (even if the images look like the classic LO shapes, you can see in the navigator that they are indeed images).

The relevant bug report for the implementation of image styles would be Bug 34443.