[Libreoffice-bugs] [Bug 126008] TABLES STYLES: If you insert a row or column (with cursor in a cell), the formatting of the whole table changes (steps in comment 5)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 24 07:57:28 UTC 2020


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

--- Comment #19 from Maxim Monastirsky <momonasmon at gmail.com> ---
Just like to point out that there was a partial solution applied with commit
https://cgit.freedesktop.org/libreoffice/core/commit/?id=09fc6fef2d03ca8558dd6f0eec45d61ceb282cb5.
One problem is that it was applied only to cell properties (e.g. cell
background, vertical alignment), but not to text properties. By itself this
isn't something hard to fix, but actually there's much bigger problem: There is
no way to store this "direct formatting applied" flag in ODF, so this works
only in the same editing session, but not the next time the file is opened. The
problem is that as of now table styles are really applied as a direct
formatting, so a fix would need to compare the actual cell formatting and the
formatting of the table style, to try to figure out which part of the direct
formatting came from the table style and therefore allowed to be changed, and
which was applied by the user and should be retained.

A much better (but likely harder to implement) approach might be to make table
styles work as real styles, and not as a direct formatting. In terms of the
file format, we already have the formatting of table styles exported and
imported as cell styles under <office:styles>, so we can make it possible to
reference those styles by table cells, or to be listed as parents of cell
styles from <office:automatic-styles>. One problem however is that according to
the ODF spec, paragraph styles take precedence over the text properties inside
a cell style. Which means that we'll need also a "no style applied" state for
paragraph styles, which complicates this even more.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200624/9073903c/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list