https://bugs.documentfoundation.org/show_bug.cgi?id=135254
Regina Henschel <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Regina Henschel <[email protected]> ---
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs