[Libreoffice-bugs] [Bug 135115] New: Styles Inspector: show Paragraph direct formatting

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 24 20:32:06 UTC 2020


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

            Bug ID: 135115
           Summary: Styles Inspector: show Paragraph direct formatting
           Product: LibreOffice
           Version: 7.1.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mikekaganski at hotmail.com

Created attachment 163492
  --> https://bugs.documentfoundation.org/attachment.cgi?id=163492&action=edit
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.

-- 
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/20200724/2a33a6ad/attachment.htm>


More information about the Libreoffice-bugs mailing list