Issue 55017 - "Cascading" character styles do not cascade
Summary: "Cascading" character styles do not cascade
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0 Beta
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 00:34 UTC by erikanderson3
Modified: 2005-11-01 17:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description erikanderson3 2005-09-24 00:34:39 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.
Comment 1 michael.ruess 2005-11-01 08:26:42 UTC
MRU->ES: pls have a look.
Comment 2 eric.savary 2005-11-01 10:30:06 UTC
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.
Comment 3 eric.savary 2005-11-01 10:30:15 UTC
closed
Comment 4 erikanderson3 2005-11-01 17:50:26 UTC
Seems to be working in 2.0 -- Yay!  Thanks for all your work!