Issue 99207 - WW8: Table import has incorrect paragraph indent in some cells
Summary: WW8: Table import has incorrect paragraph indent in some cells
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 3.0.1
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 101660 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-02-13 19:30 UTC by davosmith
Modified: 2017-05-20 11:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Word Document with table not displaying correctly in OOo Writer (24.00 KB, application/msword)
2009-02-13 19:31 UTC, davosmith
no flags Details
How the file printed from MS Word (3.87 KB, application/pdf)
2009-02-13 19:32 UTC, davosmith
no flags Details
How the file printed from OpenOffice.org Writer (3.96 KB, text/plain)
2009-02-13 19:33 UTC, davosmith
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description davosmith 2009-02-13 19:30:13 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.
Comment 1 davosmith 2009-02-13 19:31:47 UTC
Created attachment 60149 [details]
Word Document with table not displaying correctly in OOo Writer
Comment 2 davosmith 2009-02-13 19:32:30 UTC
Created attachment 60150 [details]
How the file printed from MS Word
Comment 3 davosmith 2009-02-13 19:33:02 UTC
Created attachment 60151 [details]
How the file printed from OpenOffice.org Writer
Comment 4 michael.ruess 2009-02-16 12:09:35 UTC
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. 
Comment 5 Oliver-Rainer Wittmann 2009-02-25 10:55:43 UTC
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.
Comment 6 Oliver-Rainer Wittmann 2009-02-25 11:14:38 UTC
Hm...
I can not reproduce the defect on Windows with OOo 3.0.1
Comment 7 Oliver-Rainer Wittmann 2009-02-25 11:27:08 UTC
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.
Comment 8 Oliver-Rainer Wittmann 2009-02-25 12:13:03 UTC
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.
Comment 9 davosmith 2009-02-25 19:56:23 UTC
davosmith->OD - I'll have a go at it, but it will be a few days before I can do so
Comment 10 Oliver-Rainer Wittmann 2009-02-26 07:25:02 UTC
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.
Comment 11 davosmith 2009-04-11 19:54:53 UTC
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.
Comment 12 Oliver-Rainer Wittmann 2009-04-14 07:50:03 UTC
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.
Comment 13 michael.ruess 2009-05-08 12:47:49 UTC
*** Issue 101660 has been marked as a duplicate of this issue. ***
Comment 14 Marcus 2017-05-20 11:15:30 UTC
Reset assigne to the default "issues@openoffice.apache.org".