<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 - Styles Inspector: show Paragraph direct formatting"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135115">135115</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Styles Inspector: show Paragraph direct formatting
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </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>mikekaganski@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=163492" name="attach_163492" title="A simple FODT with direct formatting on character and paragraph levels">attachment 163492</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=163492&action=edit" title="A simple FODT with direct formatting on character and paragraph levels">[details]</a></span>
A simple FODT with direct formatting on character and paragraph levels

In attached document, the range from last part of first paragraph to first part
of third paragraph is manually set *bold*. additionally, second word of second
paragraph is manually set not bold.

Using Styles Inspector, putting cursor to first (normal) part of first
paragraph shows exactly the same data as putting the cursor to bold parts of
the second paragraph. That is because the direct properties that are set on
paragraph level are not shown.

They must be shown after paragraph styles, before character styles. To get
them, we need to obtain a reference to the paragraph (also a XTextRange) that
is parent to current XTextRange, and query its direct properties the same way
as we do for XTextRange.

To obtain the paragraph reference, query css::container::XEnumerationAccess
from the xRange; then get enumeration, and use its first element.</pre>
        </div>
      </p>


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

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