Bug 136386 - FILESAVE DOC/DOCX drops contour wrap
Summary: FILESAVE DOC/DOCX drops contour wrap
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Regina Henschel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Textbox Shape-ODF-OOXML-export
  Show dependency treegraph
 
Reported: 2020-09-01 21:48 UTC by Telesto
Modified: 2021-08-13 18:15 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
textboxContourWrap_c15.docx: edited wrapping points with Word 2016. (15.54 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-09-02 05:36 UTC, Justin L
Details
textboxContourWrap.doc: DOC format works too - created by Word 2016. (25.00 KB, application/msword)
2020-09-02 06:55 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-09-01 21:48:48 UTC
Description:
FILESAVE DOC/DOCX drops contour wrap

Steps to Reproduce:
1. Open attachment 164995 [details]
2. Save as DOCX
3. File reload

Actual Results:
No contour

Expected Results:
Contour if possible


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 1e0cfd5662d95cea84e80e4fe10d52c3b1101ae6
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-09-01 21:50:24 UTC
@Justin
Expecting the answer.. rotated textboxes aren't allowed in Word, so don't support contour wrap.. at least not in Word 2003
Comment 2 Justin L 2020-09-02 05:36:16 UTC
Created attachment 165002 [details]
textboxContourWrap_c15.docx: edited wrapping points with Word 2016.

(In reply to Telesto from comment #1)
> Expecting the answer.. rotated textboxes aren't allowed in Word, so don't
> support contour wrap.. at least not in Word 2003
I don't really know much about shapes / images / frames

Word 2016 seems to have the full ability to do contour wrapping.

In Word 2003, I only see "edit wrap points" on the picture toolbar, and it doesn't handle the shape in this Word 2016 modified file well at all.

LO round-trips this one well enough, so for an ambitious and motivated person this bug might be solvable. The two documents seem similar enough on a surface level. I'm not sure why in this case LO easily round-trips
<wp:wrapTight wrapText="bothSides">
  <wp:wrapPolygon edited="0">

but in your case LO only wants to output
<wp:wrapSquare wrapText="bothSides"/>
Comment 3 Justin L 2020-09-02 06:55:53 UTC
Created attachment 165003 [details]
textboxContourWrap.doc: DOC format works too - created by Word 2016.

Word 2003 can handle this one OK. So it CAN handle contour wrapping somehow.

LO opens this OK too, but cannot round-trip it.
Comment 4 NISZ LibreOffice Team 2020-10-30 16:42:07 UTC
This is pretty similar to bug #136059 : there Writer exports the shape with  wp:wrapSquare but Word exports it - after manually changing the wrap setting to a visually fitting one - with wp:wrapTight
Comment 5 Xisco Faulí 2020-11-05 10:35:15 UTC
(In reply to NISZ LibreOffice Team from comment #4)
> This is pretty similar to bug #136059 : there Writer exports the shape with 
> wp:wrapSquare but Word exports it - after manually changing the wrap setting
> to a visually fitting one - with wp:wrapTight

Closing as duplicated

*** This bug has been marked as a duplicate of bug 136059 ***
Comment 6 Regina Henschel 2021-07-08 14:11:19 UTC
The error still exists after bug 136059 is fixed. So it cannot be a duplicate.
Comment 7 Regina Henschel 2021-07-19 14:04:23 UTC
Currently (7.3) only for custom-shapes a wrap polygon is generated.
I'll work on it and fix it together with the other wrap problems in DocxSdrExport::startDMLAnchorInline.
Comment 8 Regina Henschel 2021-08-08 23:49:26 UTC
Contour wrap is also missing for simple lines. Draw a sloping line and set it to contour wrap. Add some wrap spacing to make the contour better visible. Save to docx and reload or open in Word. Wrap is 'square' in Word, contour is off in LO.
Comment 9 Regina Henschel 2021-08-13 18:15:54 UTC
Wrap polygons are now created for CustomShapes, Bezier curves, and line. Fix is
https://git.libreoffice.org/core/commit/61ef73bb9e06ac7325abc26698314d7e35c164cc
tdf#143432 and more, improve wrap contour export

PolyPolygons are currently not exported as DML but only as VML. That has to be solved beforehand.

Some shape types (e.g. legacy ovals) are missing and use a rectangular default wrap polygon. They might look different in Word, but reimport in Writer will regenerate the contour wrap. Correct wrap polygons for them can be added later (with knew bug report).