Apache OpenOffice (AOO) Bugzilla – Issue 55017
"Cascading" character styles do not cascade
Last modified: 2005-11-01 17:50:26 UTC
Styles in OOo appear to be set up along the same lines as CSS -- styles can be based on other styles, and alterations to base style definitions cascade down to dependent styles. This makes sense; it's how CSS works, it's how MS Office works, and it's how OOo works -- for paragraph styles. However, for character styles, things can get a little funny. Select some text and set it to a certain character style. Then manually change the character style, perhaps add underlining, and click New Style from Selection on the Stylist. Name the new style. Now right-click the parent style name in the Stylist, choose Modify, and change the font. The change will not be reflected in the dependent style. Look at its details of the dependent style by right-clicking its name on the Stylist and choosing Modify. The Organizer tab will show that the new style is correctly based on the character style we first set the text to. However, we can also see that the new style definition is far too specific. What we expect is that the definition will *only* include those differences from the *parent* style, but instead the definition includes all differences from the _default_ style, which is clearly an error. Consequently, changes to the parent character style definition may not be propagated to dependent styles. However, if we create the dependent character style by right-clicking the parent style in the Stylist and choosing New, instead of using New Style from Selection, the dependent style definition is as we expect -- it only includes those differences from the parent style, and any changes in the parent definition are reflected in dependent styles.
MRU->ES: pls have a look.
If you format a paragraph manually and create a new style from this manual changes, the new style will contain the default setings + the manual changes which will remain untouched when you modify the parent's settings. Hard formatted (manually added) settings override the default -> Ok. If you just right click on the parent and create a new style from this parent, you only create *a copy* of this parent without any specific settings i.e. you get a Default style Nr. 2. If you then change the settings of the parent, the child style will update -> ok.
closed
Seems to be working in 2.0 -- Yay! Thanks for all your work!