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

            Bug ID: 101712
           Summary: GsoC table template: suspicious
                    style:parent-style-name value
           Product: LibreOffice
           Version: 5.3.0.0.alpha0+ Master
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: rb.hensc...@t-online.de

Created attachment 127012
  --> https://bugs.documentfoundation.org/attachment.cgi?id=127012&action=edit
Test document with table template

Look into the styles.xml file of the package. It has a table:table-template
element with the attribute table:name. This name is needed, for reference by
the attribute table:template-name of the table:table element.

Some lines up you find the cell styles defined for the table-template, e.g. in
the attached document a style:style element with attribute
style:name="myTableTemplate.16". In the same element you see the attribute
style:parent-style-name="myTableTemplate".

I think, that this value is not allowed, because "myTableTemplate" is not value
of an attribute style:name but of the attribute table:name. The style:style
element with attribute style:name="myTableTemplate.16" belongs to the style
family "table-cell". Therefore its parent should also be one of the family
"table-cell".

Even if you will say, that it is allowed, it is not meaningful. Because the
table-template is a set of references to table-cell styles, it would be
ambiguous which to use and in worst case, when using "myTableTemplate.16"
results in an endless loop.

A correct solution can be to define a style:default-style for the family
table-cell, which can be used for those properties, which are common to the
cells or reflect the implementation defaults. Such style:default-style element
is missing currently anyway. Of cause, especially, when several table templates
exists in the document, defining a separate parent style for each table
template makes sense too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to