<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN, DOCX: Frame (text box) around image cuts into image and caption"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=106132#c16">Comment # 16</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN, DOCX: Frame (text box) around image cuts into image and caption"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=106132">bug 106132</a>
from <span class="vcard"><a class="email" href="mailto:vmiklos@collabora.co.uk" title="Miklos Vajna <vmiklos@collabora.co.uk>"> <span class="fn">Miklos Vajna</span></a>
</span></b>
<pre>Justin: I think the root cause is in sw/, not in the import filter. Some
context if that helps:
Shapes from DOCX are imported as "shape with textbox", which means that we
create a draw shapes (which can have rounded corners, etc) and then there is
"textbox" attached to it, which is a Writer textframe (so can contain tables,
etc). The UI and UNO API hides direct access to this Writer textframe.
Now OOXML shapes can have zero margin for their text (even if they don't have a
border), and in the textbox use-case the Writer textframes never have a border,
that's how your sw feature was super-useful for me, now I can have zero margin
and no borders at the same time, needed by the "zero margin in OOXML shape with
text" case.
The getWps() info is available only in oox. See the above ODT document I
attached, I think this doesn't have much to do with OOXML.
<span class="quote">> Miklos: Can you take over on this one?</span >
Ah, so regarding the above ODT file, you think there is no bug in general, but
only when it comes to textboxes?
I rather hoped you would take this over, but sure, if zero-margin without
borders work in general and this is specific to textboxes, then I can try to
take a look. :-)</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>