Apache OpenOffice (AOO) Bugzilla – Issue 99207
WW8: Table import has incorrect paragraph indent in some cells
Last modified: 2017-05-20 11:15:30 UTC
The word document (which I will attach in a moment), displays fine in MS Word 2002 (see attached PDF, printed to PDFCreator), but when opened in Writer the indentation of several of the cells is messed up (see second attached PDF, again printed via PDFCreator). The indent for the 1st cell changes from: Before Text: 0; After Text: 0; First Line: 0 to: Before Text: 1.02cm; After Text: 0; First Line: -1.02cm Manually resetting these values, restores the table to its original appearance. This has been reproduced on both the Windows version of OpenOffice (3.0.0) and the Linux version (3.0.1). I would also be interested in having a go at fixing this myself (OOo is in the process of building inside a virtual machine on my computer), but would like a few pointers as to where to start looking.
Created attachment 60149 [details] Word Document with table not displaying correctly in OOo Writer
Created attachment 60150 [details] How the file printed from MS Word
Created attachment 60151 [details] How the file printed from OpenOffice.org Writer
MRU->OD: this may be similar to issue 81431. But here, there is no indent defined in the paragraph style of the Heading 2 paragraph.
Deeper investigation is needed to find the defect cause of this issue. Setting target to "OOo 3.x". OD->davosmith: If you want to perform this deeper investigation and probably fix this issue then I propose you should have a look at the source code in /sw/source/filter/ww8/ - here the WW8 import filter code located.
Hm... I can not reproduce the defect on Windows with OOo 3.0.1
In my OOo 3.0.1 on Windows I have set "ODF 1.0/1.1" as the ODF version to which document have to be stored. This causes a different outline style (Menu Tools - Outline Numbering). Thus, I assume that the defect cause of this issue is the assignment of paragraph style "Heading 2" to the outline style.
Defect cause is that paragraph style "Heading 2" in Microsoft Word has an outline level, but is not outline numbered. Before implemented feature "outline level" - see http://specs.openoffice.org/writer/numbering/OutlineLevel.odt - this is a problem for OOo. One the one hand paragraphs applying such a paragraph style should be headings, on the other hand these paragraphs should not be numbered. This was not possible in OOo before OOo 3.1. Now, this problem can be solved: - The assignment of paragraph style "Heading 2" to the outline style needs to be deleted. - But instead paragraph style "Heading 2" needs to get the outline level, given in the Microsoft Word document. OD->davosmith: Do you want to try a fix? If yes, then try to fix it in method <SwWW8ImplReader::SetOutLineStyle()>. In this method such paragraph styles can be recognized and they can be handled as I have proposed above.
davosmith->OD - I'll have a go at it, but it will be a few days before I can do so
OD->davosmith: Great, I am looking forward to your fix. I assign this issue to you, because you are the one now, who is working on it. When you have your fix ready, you can attach it to this issue as a patch, change the issue to PATCH and then assign this issue back to me. I will then review your fix/patch and will take care for its integration. Thanks in advance for your contribution.
davosmith->OD I'm afraid I have not managed to get very far at all with this - not had as much time as I expected and still struggling with compiler errors. I think it's likely to get fixed a lot sooner if someone else has a look at it.
OD->davosmith: Ok. I am not planning to fix this issue for OOo 3.2. Thus, if you have some free resources in the next month, you can take this issue back for fixing.
*** Issue 101660 has been marked as a duplicate of this issue. ***
Reset assigne to the default "issues@openoffice.apache.org".