Bug 281922 - Header and Footer are missing in the attached document
Summary: Header and Footer are missing in the attached document
Status: VERIFIED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: doc (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 09:06 UTC by swathi
Modified: 2011-11-08 07:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot in MS Office (96.72 KB, image/x-png)
2011-09-13 09:06 UTC, swathi
Details
Screenshot in Calligra Words (124.46 KB, image/png)
2011-09-13 09:06 UTC, swathi
Details
Screenshot in Latest Calligra Words (133.17 KB, image/png)
2011-11-02 09:45 UTC, swathi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swathi 2011-09-13 09:06:04 UTC
Created attachment 63611 [details]
Screenshot in MS Office

Version: git checkout 79697867a34448f3472bbd3243247cb141ee11bf
        (Using KDE 4.6.3)                
     OS: Kubuntu 11.04
Test data is in Word 2003 format.
Open the same document in Calligra Words.
In the 1st page, check the display of header and footer.
Link to Test data: http://www2.jura.uni-freiburg.de/institute/izpr1/lehre/Engl.%20RT%201011/Announcement%20October%2029,%202010.doc

Expected outcome:
Header and Footer should be displayed.

Actual outcome:
Header and Footer are not displaying.
Please check the screenshots attached.

Frequency:
Always
Comment 1 swathi 2011-09-13 09:06:58 UTC
Created attachment 63612 [details]
Screenshot in Calligra Words
Comment 2 Sebastian Sauer 2011-09-15 12:40:08 UTC
Looks as this shows an interesting violation of the ODF standard.

The header is defined in the styles.xml as;

<style:master-page style:name="Standard1" style:display-name="Standard" style:page-layout-name="Mpm1">
   <style:header>...</style:header>
</style:master-page>

The content.xml does then reference the master-page like;

<style:style style:name="P5" style:family="paragraph" style:master-page-name="Standard" style:parent-style-name="Standard">
  ...
</style:style>

As we see the paragraphStyle uses the name "Standard" which is the display-name of the master-page that should only be used for display purposes. The master-page itself  defines the style-name "Standard1" (note the "1") and not "Standard" (without the "1").

It's absolute unclear to me why OO.org does still connect the master-page with the paragraphStyle even if they both are using different names. In any case this is not what the ODF standard suggests should be done.
Comment 3 Sebastian Sauer 2011-09-21 12:11:52 UTC
Fixed with 5d5444dedbf1b829b04b75f9d7b67fc40dd6ab34
Comment 4 swathi 2011-11-02 09:45:36 UTC
Created attachment 65150 [details]
Screenshot in Latest Calligra Words

Tested in 9c203a706dc37927b69367b9c91d8f952fcf0b18.Still email id and some text in the footer is missing.Please check the screenshot attached.
Comment 5 Sebastian Sauer 2011-11-02 10:49:47 UTC
This is not what the bug was about. The bug was about "Header and Footer are missing in the attached document" (see subject) and that was fixed (see analysis done in comment 2 and the fix landed in comment 3).

If there are still issues with the document then we should create a new bugreport for those issues. That bugreport should be specific to the issues (email id and some text
in the footer is missing).

FYI: the issue the bugreport was about is 100% (not even 99.99% but 100%!) unrelated to what is described at comment #4.

Thanks.
Comment 6 swathi 2011-11-08 07:46:09 UTC
Marking as Verified based on the  Comment #5.
We will raise a seperate bug for the missing email id.