Bug 89826 - Allow resetting individual style attributes to inheritance from parent rather than specific value
Summary: Allow resetting individual style attributes to inheritance from parent rather...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.1.1 rc
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval, topicUI
: 127708 133107 136341 (view as bug list)
Depends on:
Blocks: Styles Styles-Dialog
  Show dependency treegraph
 
Reported: 2015-03-04 20:17 UTC by mahfiaz
Modified: 2025-01-30 21:17 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (95.37 KB, image/png)
2015-03-04 20:17 UTC, mahfiaz
Details
One possible way of expressing Kendy's awesome idea. (72.50 KB, image/png)
2015-03-18 21:19 UTC, mahfiaz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mahfiaz 2015-03-04 20:17:35 UTC
Created attachment 113891 [details]
Screenshot

Styles inherit options from their parents.
Once you change an option in a child style, there is no easy way to revert one single change so that inheriting the value would work.

IMHO it would be useful, I sometimes miss it.
Comment 1 mahfiaz 2015-03-04 20:31:20 UTC
The attachment screenshot tries to visualise the use case. Main text style inherits everything from the default style unless it has a local override. All the overrides are nicely listed, there just is no way to easily remove override one by one.

You can remove overrides for whole page when opening the page and clicking "Standard" button below the dialog.
Comment 2 mahfiaz 2015-03-18 21:19:58 UTC
Created attachment 114176 [details]
One possible way of expressing Kendy's awesome idea.
Comment 3 Yousuf Philips (jay) (retired) 2015-03-22 00:46:57 UTC
Thought it was my awesome idea. :D
Comment 4 mahfiaz 2015-03-22 06:35:16 UTC
Sorry. I think I need to make a cheatsheet with IRC nicknames, Google aliases, real names and photos.
Comment 5 Robinson Tryon (qubit) 2015-12-13 11:24:26 UTC Comment hidden (obsolete)
Comment 6 Heiko Tietze 2019-10-09 09:21:19 UTC
*** Bug 127708 has been marked as a duplicate of this bug. ***
Comment 7 Eyal Rozenberg 2019-10-09 09:31:27 UTC
I believe this is quite an important feature to implement for enabling complex style hierarchies for documents.


Regarding the mock-up in attachment 114176 [details]: I support this, but would suggest that the pieces of text would be put into "breadcrumbs", i.e. small slabs containing the text, which can be destroyed/deleted using an [x] button on their sides. I think this would be better than a superscript-[x].

Also, I believe this shouldn't be the only UI aspect for reverting/deleting individual settings. I would also like to see deletions, within the parts of the dialog where we actually set values, resulting in reversions to "no setting".
Comment 8 Heiko Tietze 2020-05-18 09:02:59 UTC
*** Bug 133107 has been marked as a duplicate of this bug. ***
Comment 9 Heiko Tietze 2020-09-15 10:35:44 UTC
*** Bug 136341 has been marked as a duplicate of this bug. ***
Comment 10 Schlomo Schapiro 2025-01-30 11:31:17 UTC
I'd like to emphasize the importance of this feature:

At the moment you cannot "undo" a mistake in the styles. That makes it very simple to "fuck up" an important style in the document and then the only solution is to create a new style, replace the broken style, and so on. This makes long-term management of complex documents unnecessarily hard and prevents professional use for some.

"fuck up" means that for example I have an inherited style that should only change the font but not the size. If I once accidentally set also the size, it will always carry its own size setting and not inherit the size from the parent any more.

About the suggestion with the X in the style list: I think that this is probably the easiest to implement as it would require only changing a single UI element (the overview list) vs. updating all the other style UI elements to support 3 states (on, off, inherit) or to add "(inherit)" as a list item in the drop down lists.

Therefore I'd like to suggest to first implement the X removal in the overview and then, maybe, also add inheritance as a choice in the individual style settings.
Comment 11 Eyal Rozenberg 2025-01-30 21:17:48 UTC
(In reply to Schlomo Schapiro from comment #10)
> At the moment you cannot "undo" a mistake in the styles.

Well, you can, but only by manually editing the relevant ODF file :-(

> Therefore I'd like to suggest to first implement the X removal in the
> overview and then, maybe, also add inheritance as a choice in the individual
> style settings.

Seems like a decent idea to start with that. We could also consider "bubbles" or "boxes" of indentation around the items, with the x's on their perimeter, as a kind of decoration.

As for the settings themselves, elsewhere in the dialog, we could also consider some kind hover-behavior for settings in their respective parts of their dialog, which would include the ability to reset them to inheritance.

But again - x's seem like a not-too-difficult thing to do.