[Libreoffice-bugs] [Bug 108907] New: conditional paragraph style does not work with outline level

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 2 18:38:48 UTC 2017


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

            Bug ID: 108907
           Summary: conditional paragraph style does not work with outline
                    level
           Product: LibreOffice
           Version: 6.0.0.0.alpha0+ Master
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Keywords: filter:fodt, filter:odt
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de
            Blocks: 94587

Created attachment 134434
  --> https://bugs.documentfoundation.org/attachment.cgi?id=134434&action=edit
Conditional paragraph style

If a paragraph style is a conditional style and has "outline level" as
condition, then the <text:h> element to which it is assigned, should get a
text:cond-style-name attribute. LibreOffice does not write this attribute.

If LibreOffice opens a file, which uses conditional style, the condition is not
evaluated. Worse, the <text:h> element contains the text:cond-style-name
attribute for those applications, which can evaluate the condition, and the
text:style-name attribute, which contains the style name of the last
evaluation, for those applications, which cannot evaluate the condition. But
LibreOffice takes the style name reference of the text:cond-style-name without
evaluating the condition and therefore uses a wrong style for the headings.
Resaving such document looses the text:cond-style-name attribute.

The relevant part in the specification is section 19.776 text:cond-style-name.
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418810_253892949


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=94587
[Bug 94587] [META] ODF features missing or incorrectly imported
-- 
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/20170702/127f00fc/attachment.html>


More information about the Libreoffice-bugs mailing list