Comment on attachment 78506[details]
The solution of i119963-updated
Patch looks good and works fine in my environment.
As discussion is ongoing to work on this enhancement and the following ones on a branch I will not commit this patch.

Applied first part of the patch - import of actual TOC content - on branch writer001. This part of the patch has been already reviewed earlier.
Second part of the current patch contains the export of the actual TOC content to WW8 file format (Microsoft Word binary file format). I am currently reviewing this part. Stay tuned.

Comment on attachment 79004[details]
4th version of the patch, with solving some empty paragraph related defects
I have almost finished my review. Patch looks good.
I am in discussion with zhengfan on certain details of the patch - mostly to open my mind for learning and understand in detail the changes.
As the development is taken place on a branch, I will the second part - export of actual TOC content to WW8 file format - to the branch.
I think further development, like the one or the other improvement or correction, will take place in the future on the branch to finalize this enhancement.

Created attachment 79285[details]
tab stop position in TOC content wrong
TOC exported to WW8 file format with wrong tab stop position:
- open sample text document
- export to WW8 file format (Microsoft Word 97/2000/XP)
- open in Microsoft Word 2003 or 2010
--> tab stop position of TOC entries for second heading level is wrong
--> tab stop position of paragraph with style Content2 is wrong
Here we have a general problem:
tab stop position are not exported corrected, if paragraph has a left indent

(In reply to comment #28)
> (In reply to comment #27)
> > Created attachment 79285[details]
> > tab stop position in TOC content wrong
> >
> > TOC exported to WW8 file format with wrong tab stop position:
> > - open sample text document
> > - export to WW8 file format (Microsoft Word 97/2000/XP)
> > - open in Microsoft Word 2003 or 2010
> OR
> - reopen in AOO
> > --> tab stop position of TOC entries for second heading level is wrong
> > --> tab stop position of paragraph with style Content2 is wrong
> >
> > Here we have a general problem:
> > tab stop position are not exported corrected, if paragraph has a left indent
Further investigation reveals that the problem exists, if the tab stop is set at a style. It does not happen, if the tab stop is directly set at the paragraph.

This is Apache OpenOffice (AOO) Bugzilla: the Apache OpenOffice (AOO) bug system. In case
of problems with the functioning of Apache OpenOffice (AOO) Bugzilla, please contact
aoo-bugzilla-admin@apache.org.
Please Note: this e-mail address is only for reporting problems
with Apache OpenOffice (AOO) Bugzilla. Mail about any other subject will be silently
ignored.