[Libreoffice-ux-advise] [Bug 152712] Support setting style attributes relative to parent style

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Dec 29 06:36:37 UTC 2022


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

--- Comment #1 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Eyal Rozenberg from comment #0)
> we can't apply multiple styles at once, see 149271.)

This is not correct. The bug 149271 has bug 115311 in its "See Also" since its
creation - you added it yourself. The character styles *allow* applying several
of them at once; and there is even a rudimentary UI for that. So the feature
for that style category exists - but indeed, the UI has much to improve
(basically, to create from scratch).

> 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"  

This is already possible. See [1]:

> If you are creating a style that is based on another style, you can enter a
> percentage value or a point value (for example, -2pt or +5pt).

See also tdf#142423.

> 2. Additive relation of numeric attributes: Example: "1 pt less
> inter-character spacing than in the parent style"

While it is shown above that this is already possible for font sizes, it is
unclear what exact use case would it serve for inter-character spacing. Any
feature should only be created to implement some specific need, not just
because we can. The overall complexity makes every new feature a source of
problems for quite large number of users, so unless this solves a real problem
for many users, I disagree that we should do this.

> 3. Inverse for boolean attributes, e.g. "Merge border with next paragraph
> IFF parent style did not merge border with the next paragraph"

Same as above.

See also Conditional styles [2], which addresses e.g. "Footer" and "Blockquote"
case mentioned in bug 149271.

[1]
https://help.libreoffice.org/7.5/en-US/text/shared/01/05020100.html?DbPAR=WRITER#hd_id3151054
[2]
https://help.libreoffice.org/7.5/en-US/text/swriter/01/05130100.html?DbPAR=WRITER#bm_id3154656

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list