[Libreoffice-bugs] [Bug 135254] FILEOPEN DOCX Grouped shapes have slightly different height/width

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 11 20:42:56 UTC 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb.henschel at t-online.de

--- Comment #4 from Regina Henschel <rb.henschel at t-online.de> ---
The corresponding attributes in ODF are style:rel-height and style:rel-width.

LibreOffice has it implemented for a Frame. That has a UI to set it. It is
written to file as direct attribute of the <draw:frame> element.

LibreOffice can interpret these attributes for some kind of shapes as
attributes of the <style:graphic-properties> element of a style. It works for a
TextBox. That is a <draw:frame> element and from point of view of ODF not
different to a Frame. It works too for legacy rectangle and oval and for
polygons, but the shapes will be a little bit too large. LibreOffice has no UI
to set it in these cases, but the attributes are available via API.

LibreOffice cannot interpret these attributes for custom shapes. Therefore it
fails with the example document.

So a short-term solution could be, to import a shape as Frame in Writer, if it
has a rectangular geometry, no shape rotation, no text rotation, and no special
effects like shadow or glow.
And long-term solution would be to implement these attributes for custom shapes
too, correct the size, and bring the attributes to UI.

A workaround could be to recalculate the shape size on import depending on the
actual page size.

-- 
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/20210711/3bd7bb82/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list