Apache OpenOffice (AOO) Bugzilla – Issue 119466
[From Symphony]All tables in the sample file are converted to frames, and the display is ugly.
Last modified: 2022-10-28 12:54:25 UTC
Created attachment 77651 [details] sample file Build: AOO3.4 open the sample file in Aoo and compare it with that in MS word All tables are converted to frames. and the lines position changed and the whole display is ugly
Created attachment 77652 [details] snapshot in Aoo add snapshot in Aoo
Created attachment 77653 [details] snapshot in MS word
Notice that the default table wrap mode is not compatible with MS Word. There are also other factors result in the abnormal tables.
one part of the issue is caused by the frame wrap value. If change the Frame--wrap value from "Optimal" to "Parallel", the result will much better. For other issue need more investigation
The problem is that table wrap mode in Writer is not compatible with MS Word. Table in MS Word can be wrapped around with text, while it has no such property in Writer. So loading table from doc, it should be wrapped by a fly frame to implement the wrap property in Writer. The wrap setting for frame could be "None","Before","After","Parallel",and "Optimal", while table in MS Word has two kinds of wrap setting, such as "Around" and "None". And Writer map "Around" table to "Optimal" frame wrap for interoperability. Currently the setting "Optimal" for frame will lead to the table layout display improperly. since it would reassign the frame wrap setting to one of "Before","After","Parallel". The "Before" and "After" frame setting is NOT compatible with table wrapping from my investigation. So the solution is mapping the "Around" table wrap setting to "Parallel" frame wrap setting which is more likely as shown in the Word. The patch choose sprmPFInTable <0x2416> to determine whether the paragraph is in a table.
Created attachment 79679 [details] patch for i119466
Created attachment 79680 [details] test case for i119466 test case for difference between table wrap and frame wrap.
the solution is workable, it is ok for me, review +1
"zjchen" committed SVN revision 1395547 into trunk: #i119466# Doc file loaded by AOO, table with incorrect text wrapping property...
Updated status to FIXED and the target to the release containing the fix.