<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - conditional paragraph style does not work with outline level"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108907">108907</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>conditional paragraph style does not work with outline level
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>filter:fodt, filter:odt
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rb.henschel@t-online.de
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>94587
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=134434" name="attach_134434" title="Conditional paragraph style">attachment 134434</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=134434&action=edit" title="Conditional paragraph style">[details]</a></span>
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.
<a href="http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418810_253892949">http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418810_253892949</a></pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] ODF features missing or incorrectly imported"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=94587">Bug 94587</a>] [META] ODF features missing or incorrectly imported
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>