Bug 88559 - Display of inherited attributes from parent styles in Styles dialog
Summary: Display of inherited attributes from parent styles in Styles dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval, topicUI
Depends on:
Blocks: Writer-UX Styles-Dialog
  Show dependency treegraph
 
Reported: 2015-01-18 17:24 UTC by belomir
Modified: 2018-10-30 21:19 UTC (History)
6 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 belomir 2015-01-18 17:24:01 UTC
Problem description:

When paragraph style is inherited from some parent it ingerit most of properties except those were manually changed.

Those properties are listed in Contain section on Organizer tab. But if there are lot of changed properties searching of them is not simple and convenient.
It would be perfect to see status of each style property inplace besides contain section.

Moreover there's no way to reset any property to be inherited. Changing of property to parent's value does't make it inherited. (The only way in this case is to workaround with creating new style, selecting all oldstyled paragraphs and set to them the new one. But it have its own troubles).

Steps to reproduce:

1. Change one property in inherited paragraph style (it would appear on organizer tab)
2. Change the property back to parent value

Current behavior:

The property is still listed on organizer tab and does not inherit.

Expected behavior:

The propery that is changed have button or any different way to reset proprty status to be inherited.
Comment 1 Robinson Tryon (qubit) 2015-01-25 10:38:19 UTC
Component is 'ux-advise', so
Status -> NEW
Comment 2 Robinson Tryon (qubit) 2016-08-25 04:21:38 UTC Comment hidden (obsolete)
Comment 3 Heiko Tietze 2017-04-18 13:04:41 UTC
Don't understand your problem. You modify the style, e.g. per right click in the styles & formatting sidebar, and it is not clear what happens? The preview is not that bad, IMHO.

Or do you make a direct formatting via toolbar > font size, for instance, and wonder what happen to the style.

And last but not least you could talk about paragraph style vs. character style that is not easily to discriminate from each other when applied to the whole paragraph.
Comment 4 Regina Henschel 2017-04-18 13:57:24 UTC
@Heiko: This report is about managing the content of hierarchical styles in the Style&Formatting dialog.

You can set a property back to 'inherit': In the style properties go to the tab, which contains the property. Then click on button "Standard". Go back to 'Organizer' tab and look what has been removed.
Unfortunately there is no way to set a single property of the tab page back to 'inherit'.
And sometimes the property is removed but still shown in 'Organizer' tab.

There are similar requests in bug 89826, bug 77325 and bug 88921.

The second is about making the inheritance visible in the tab pages. I can think of making the item "italic" or for field entries adding an indicator before or after the content, e.g. '(i) 12pt' instead of simple '12 pt'. No idea how to do it for other kind of controls.

The problem is very old see https://bz.apache.org/ooo/show_bug.cgi?id=3148

I support both requests.
Comment 5 Heiko Tietze 2017-04-18 15:08:10 UTC
(In reply to Regina Henschel from comment #4)
> @Heiko: This report is about managing the content of hierarchical styles in
> the Style&Formatting dialog.

Was afraid of this answer ;-).

So what we need is an indicator at the various properties which one has been overridden. For example, "Caption" has the children "Drawing" and when font style is set bold there instead of italic from the parent it should get an identification. Known solutions are a small icon next to the label, simpler is to add a * to the label or to modify it's appearance, e.g. text in blue. But the latter could get into conflict with the theme.
Comment 6 Yousuf Philips (jay) (retired) 2017-08-03 12:36:54 UTC
We should add a section above 'Contains' called 'Inherited' and then list the name of the parent style followed by its attributes that arent being overwritten by the child style. Example design below for Heading 1

Inherited
 Heading:
  Western text: Liberation Sans, From bottom 0.08 inch + Keep with next paragraph

Contains
 Western Text: 130% + bold + Numbering(Outline) + 1 + Indent left 0.0 inch, Indent right 0.0 inch + From top 0.17 inch, From bottom 0.08 inch

Note: 14pt isnt displayed in 'Heading' as it is being overwritten by the 130% in 'Heading 1'.
Comment 7 Harald Koester 2018-07-16 13:03:10 UTC
(In reply to Regina Henschel from comment #4)

> The second is about making the inheritance visible in the tab pages. I can
> think of making the item "italic" or for field entries adding an indicator
> before or after the content, e.g. '(i) 12pt' instead of simple '12 pt'. No
> idea how to do it for other kind of controls.

I also think, if a font and its size is inherited from the Basic Fonts in the options dialogue [LibreOffice Writer > Basic Fonts (Western|Asian|CTL)], that this should be indicated somehow, e.g. '(o) Liberation Serif' or '(o) 12pt'.