[Libreoffice-bugs] [Bug 142398] FILESAVE DOCX Several Writer shapes textbox saved incorrectly

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri May 21 00:38:23 UTC 2021


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

Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |rb.henschel at t-online.de

--- Comment #5 from Regina Henschel <rb.henschel at t-online.de> ---
The example shapes do not have a text box, but a simple label text. The segment
is not a custom shape at all.

In case a custGeom is written, a <a:rect ...> has to be generated. For to get
the correct rectangle, it is needed to get the property "TextFrames" from
"Path" in CustomGeomety. But currently only the preset shape types l, t, r, b
are written:
https://opengrok.libreoffice.org/xref/core/oox/source/export/drawingml.cxx?r=af16aa62#3768
https://opengrok.libreoffice.org/xref/core/oox/source/export/drawingml.cxx?r=af16aa62&fi=WriteCustomGeometry#3557

In case of prstGeom there is no need for a <a:rect ...> element. So writing a
shape as ooxml-foo (if possible), would solve the <a:rect...> problem. But it
has the downside, that reload and export to binary MS formats will loose the
shape. And some of our mso-foo shapes do not have a directly corresponding
ooxml-shape.

It might help to sort the shapes currently in the floater in the UI in
categories
a) work with l, t, r, b
b) do not work with l, t, r, b, but have exactly corresponding ooxml preset
shape
c) do not work with l, t, r, b and need ooxml custGeom.

-- 
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/20210521/4c4af72b/attachment.htm>


More information about the Libreoffice-bugs mailing list