Bug 150985 - Method to permanently remove default graphic styles
Summary: Method to permanently remove default graphic styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ImpressDraw-Styles
  Show dependency treegraph
 
Reported: 2022-09-16 04:27 UTC by Daniel Flaum
Modified: 2023-05-06 14:33 UTC (History)
5 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 Daniel Flaum 2022-09-16 04:27:14 UTC
Description:
In Draw, there is a large number of default graphic styles like "Filled Yellow" and "Text A4" and "Object without fill". They are of no use to me and they take forever to dig through in menus. I want to get rid of them for good.

But I can't. If I right click on one in the Styles pane, the Delete menu option is grayed out. The best I can do is to Hide it. But this doesn't do what it says. The style does disappear from the Styles pane, but it continues to show up in other places, like the Organizer tab in the Graphic Styles window.

Even worse, if I quit and reopen Draw, the offending styles reappear and have to be hidden again.

Hide is no substitute for the real thing: I need them to go away and never come back. There should be a way to accomplish that.

Steps to Reproduce:
Not applicable.

Actual Results:
Not applicable.

Expected Results:
Not applicable.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
None.
Comment 1 Mike Kaganski 2022-09-16 05:45:31 UTC
From the beginning (LO 3.3), up to v.6.0, Draw contained fewer built-in styles. In 6.1, some new styles were added; and in 6.2, the list grew to the current state.

There are styles that are *required* to allow the program functioning: those that are used in some algorithms. For Writer, e.g., that would include the style used in tables, in headings, in normal text; without them, those tools would not be able to produce expected results. Same is true for other modules: Calc, Draw, Impress.

But obviously, there are styles that are added just to allow some *idea* how to use them; or to provide a usable *defaults*. While there is a value having them by default, it's absolutely not reasonable that *those* non-essential styles can't be removed. This issue is about inability to create a template without those (using such a template would be the answer to the "never come back" part: if one were able to remove them, and save the result as a template, maybe setting it as a default one, then every document based on that template would inherit the customized set).

I confirm that we should allow making the built-in styles removable (so they need some flag to distinguish between those that ca and can't be removed).
Comment 2 Roman Kuznetsov 2022-09-16 07:32:25 UTC
It's the same question that is for Writer styles already.
Comment 3 Heiko Tietze 2022-09-16 08:50:12 UTC
The additional styles were introduced for bug 117455. In case of Writer we hid some rarely used styles, see bug 132798, but the ultimate solution IMO is to remove all hard-coded styles (and artwork in general) and provide the default in a template, which auto-load flag would be on. The user can decide to derive another template and make this the default or to have no style at all (except "Default *"). Big plus for the design team is that we can change the appearance without affecting the code / qa tests (see for example bug 112541). My first attempt with https://gerrit.libreoffice.org/c/core/+/115491 failed due to LibreLogo.
Comment 4 Mike Kaganski 2022-09-16 09:05:58 UTC
(In reply to Heiko Tietze from comment #3)
> My first attempt with
> https://gerrit.libreoffice.org/c/core/+/115491 failed due to LibreLogo.

Please CC Laszlo; he's the maintainer of LibreLogo :)
Comment 5 Regina Henschel 2022-09-16 10:47:27 UTC
I support the idea to be able to delete all styles, which are not really needed. Not only the UI is cluttered but the file markup too.