Bug 260542 - kword:openoffice:kword is not displaying table of contents properly
Summary: kword:openoffice:kword is not displaying table of contents properly
Status: VERIFIED WORKSFORME
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries All
: NOR normal
Target Milestone: ---
Assignee: LukasT
URL:
Keywords: reproducible
: 247749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-14 16:20 UTC by Lassi Nieminen
Modified: 2011-06-30 11:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Open Office document to be open in Kword (9.26 KB, application/x-zip-compressed)
2010-04-14 16:20 UTC, David Faure
Details
Screenshot of the document in Open Office (109.83 KB, image/pjpeg)
2010-04-14 16:23 UTC, David Faure
Details
Screenshot of the document in Kword (112.29 KB, image/pjpeg)
2010-04-14 16:24 UTC, David Faure
Details
Screenshot of the document in revision 1124781 (109.15 KB, image/pjpeg)
2010-05-12 11:44 UTC, David Faure
Details
Screenshot in Latest revision (100.12 KB, image/png)
2011-06-04 10:13 UTC, swathi
Details
Test data with same issue (14.41 KB, application/zip)
2011-06-04 10:17 UTC, swathi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Faure 2010-12-17 19:41:15 UTC


---- Reported by faure@kde.org 2010-08-13 20:38:40 ----




---- Reported by lassi.ta.nieminen@nokia.com 2010-04-14 17:20:02 +0300 ----

Created an attachment
Open Office document to be open in Kword

SOFTWARE VERSION:
Kubuntu 9.10
Koffice (svn revision 1114341)
Test document (Open Office): oow_toc_normal.odt

STEPS LEADING TO PROBLEM: 
1. Open the attached document in Open Office.
2. Open the same document in KOffice.
3. Observe table of contents  in the document.

EXPECTED OUTCOME:
Kword should be able to display table of contents.

ACTUAL OUTCOME:
Kword is not displaying the table of contents properly.

FREQUENCY OF OCCURRENCE: 
Always.



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-04-14 17:23:56 +0300 ----

Created an attachment
Screenshot of the document in Open Office



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-04-14 17:24:45 +0300 ----

Created an attachment
Screenshot of the document in Kword



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-04-25 00:55:57 +0300 ----

reassign to ingwa



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-04-25 01:00:11 +0300 ----

Works in koffice-ko revision 1118506.

Note that there are a couple of letters too much, but the Table of Contents works fine.



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-05-12 12:43:01 +0300 ----

Retested in revision 1124781.
Text in the toc is not getting displayed.
See the attachment toc_in_revison_1124781.jpeg.



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-05-12 12:44:06 +0300 ----

Created an attachment
Screenshot of the document in revision 1124781



--- Bug imported by faure@kde.org 2010-08-13 20:38  ---

This bug was previously known as _bug_ 164291.

Imported an attachment (id=50441)
Imported an attachment (id=50442)
Imported an attachment (id=50443)
Imported an attachment (id=50444)

Unknown milestone "2010-15 in product koffice. 
   Setting to default milestone for this product, "---".
Bug Status was REOPENED but everconfirmed was false
   Setting status to UNCONFIRMED





--- Bug imported by faure@kde.org 2010-12-17 19:43  ---

This bug was previously known as bug 247749.

Imported an attachment (id=55013)
Imported an attachment (id=55014)
Imported an attachment (id=55015)
Imported an attachment (id=55016)

The original submitter of attachment 55013 [details] is unknown.
   Reassigning to the person who moved it here: faure@kde.org.
The original submitter of attachment 55014 [details] is unknown.
   Reassigning to the person who moved it here: faure@kde.org.
The original submitter of attachment 55015 [details] is unknown.
   Reassigning to the person who moved it here: faure@kde.org.
The original submitter of attachment 55016 [details] is unknown.
   Reassigning to the person who moved it here: faure@kde.org.

Comment 1 Inge Wallin 2011-01-07 22:07:11 UTC
This is a Words bug, not a common.
Comment 2 LukasT 2011-01-12 18:05:26 UTC
Current problem is that Words regenerate the table of content after the layout is finished. If there is not proper content (headings, etc.), the table of content cannot be generated as the information is missing.

You can see it when you open the attached document in OpenOffice and update the table of content. The index entries are gone.
Comment 3 Camilla Boemann 2011-01-14 12:18:32 UTC
The ToC is indeed always generated to reflect the actual document. This is maybe different from what other apps do but it's not a bug.
Comment 4 LukasT 2011-01-14 12:23:14 UTC
Ok, then this bug report is not valid.

If the document does not have proper content for the generator (in generator we 
iterate the headings and update the toc according them), the toc will be empty.

The attached document does not have correct content needed to generate the table of content.
Comment 5 LukasT 2011-02-07 16:23:40 UTC
*** Bug 247749 has been marked as a duplicate of this bug. ***
Comment 6 swathi 2011-06-04 10:13:52 UTC
Created attachment 60601 [details]
Screenshot in Latest revision

Tested in 09bf66c4b404f9fb8d3c2912ea77d02646e38f0a, TOC is displaying fine except the alignment of the page numbers,(page numbers should be displayed at the tight side of the page,but here page numbers are displaying in the middle of the page).
Comment 7 swathi 2011-06-04 10:17:25 UTC
Created attachment 60602 [details]
Test data with same issue

Similar issue is observed with the Doc and Docx files also,so attaching the test data.
Comment 8 LukasT 2011-06-06 15:32:26 UTC
I and sebsauer we cannot reproduce the problems with TOC.
There is problem with first extra page in mw03_toc.doc, but 
that is different bug then displaying toc properly.

I suppose the problem might be in Qt. We tested Qt 4.7.2 and 4.7.1,
Swathi tested with Qt 4.7.0
Comment 9 swathi 2011-06-30 11:53:46 UTC
Verified in 5f6f9401b53343b140d2bae8587ec3a01f103fe1.