https://bugs.documentfoundation.org/show_bug.cgi?id=152712

            Bug ID: 152712
           Summary: Support setting style attributes relative to parent
                    style
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Styles can inherit each other, e.g. for paragraphs "List 1" inherits "List",
which inherits "Body Text", which finally inherits "Default Paragraph Font".

It is possible to not-set attributes of a style, having the child style have
the same attribute as the parent style. This is useful in allowing styles which
are "modifiers" of the parent style. (It's not perfect though, e.g. we can't
apply multiple styles at once, see 149271.)

The "modifier" aspect of a style would be further enhanced if the space of
possible relations of its attributes to their parent style counterparts would
be richer than just "override" and "inherit". It should be possible to set
style attributes _relatively_ to their parents:

1. Multiplicative relation of numeric attributes. Example: "Font weight at 125%
of the parent style"  
2. Additive relation of numeric attributes: Example: "1 pt less inter-character
spacing than in the parent style"
3. Inverse for boolean attributes, e.g. "Merge border with next paragraph IFF
parent style did not merge border with the next paragraph"

One could think up more complex relations, but having these would already be
quite powerful.

Note that this regards almost all kinds of styles, not just Character and
Paragraph.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to