Bug 71843

Summary: Missing "Surround header" and "Surround footer" Page Border options in Writer
Product: LibreOffice Reporter: Luis Felipe Marzagao <lfbm.andamentos>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: lfbm.andamentos, marciowb, s.mehrbrodt
Version: Inherited From OOo   
Hardware: All   
OS: All   
URL: https://www.elance.com/j/implement-libreoffice-writer-feature/53052263/?bidid=53133952&rid=434ZV
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=76220
Whiteboard:
i915 platform: i915 features:
Attachments: Document with page borders. Bordes do not surround header and footer.
Screenshot of border options in Word 2007.
How the test document opens in Word 2007 and LibreOffice.

Description Luis Felipe Marzagao 2013-11-20 16:50:30 UTC
MS Word has two options in the page border settings. These are called
"Surround header" and "Surround footer". A similar thing must be implemented in
Writer, otherwise documents created in MS Word without header and footer surrounding bordes won't open correctly.

In Writer they open with the borders surroundig the whole page, including header and footer.

Ex.:

How you create in MS Word:

...header...
|..........|
|..........|
|..........|
|..........|
...footer...


How it opens in LibreOffice Writer:

|..header..|
|..........|
|..........|
|..........|
|..........|
|..footer..|
Comment 1 Luis Felipe Marzagao 2014-02-14 00:07:01 UTC
My company is willing to fund this implementation. It doesn´t need to correctly open MS  Office files. We just need the "surround footer" and "surround header" options to be present for new files for editing in libreoffice, so we can remove page borders from around header and footer, but leave them surrounding the main text in the document.

I´ve created a bounty. If someone would like to price it, tell me, and if affordable, we will insert money int he bony. Here is the link:

https://www.bountysource.com/issues/1411381-missing-surround-header-and-surround-footer-page-border-options-in-writer
Comment 2 Luis Felipe Marzagao 2014-06-06 22:07:09 UTC
These features are described in the following items of ECMA-376, 4th Edition (Office Open XML File Formats — Fundamentals and Markup Language Reference):

17.15.1.14 bordersDoNotSurroundFooter (Page Border Excludes Footer)

17.15.1.15 bordersDoNotSurroundHeader (Page Border Excludes Header)

http://www.ecma-international.org/publications/standards/Ecma-376.htm
Comment 3 Samuel Mehrbrodt 2014-10-03 20:08:16 UTC
(In reply to Luis Felipe Marzagao from comment #0)
> MS Word has two options in the page border settings. These are called
> "Surround header" and "Surround footer".

I couldn't find these options in Word 2007. In which Word version is this available?

Maybe you can update an example document and a screenshot how it renders in Word?
Comment 4 Samuel Mehrbrodt 2014-10-03 20:09:11 UTC
(Resetting Assignee since no activity since months)
Comment 5 Luis Felipe Marzagao 2014-10-04 01:28:52 UTC
Created attachment 107292 [details]
Document with page borders. Bordes do not surround header and footer.
Comment 6 Luis Felipe Marzagao 2014-10-04 01:30:18 UTC
Created attachment 107293 [details]
Screenshot of border options in Word 2007.
Comment 7 Luis Felipe Marzagao 2014-10-04 01:31:41 UTC
Created attachment 107294 [details]
How the test document opens in Word 2007 and LibreOffice.

This document was created in Word 2007. LibreOffice does not allow removing surrounding borders from header and footer.
Comment 8 Luis Felipe Marzagao 2014-10-04 01:32:19 UTC
Word 2007/2010

Insert a page header and a page footer.

Page Layout -> Page borders -> Page Border Tab -> Click to insert borders on both sides of page -> Options... -> Measure from: Text -> Uncheck Surround header and Surround footer -> Ok -> Ok.



(In reply to Samuel Mehrbrodt from comment #3)
> (In reply to Luis Felipe Marzagao from comment #0)
> > MS Word has two options in the page border settings. These are called
> > "Surround header" and "Surround footer".
> 
> I couldn't find these options in Word 2007. In which Word version is this
> available?
> 
> Maybe you can update an example document and a screenshot how it renders in
> Word?

Hello, this is how you can reproduce:

Word 2007/2010:

Insert a page header and a page footer.

Page Layout -> Page borders -> Page Border Tab -> Click to insert borders on both sides of page -> Options... -> Measure from: Text -> Uncheck Surround header and Surround footer -> Ok -> Ok.

Attached is an example document created without borders surronding header and footer. I have attached also screenshots of how this document opens on Word 2007 and Libreoffice.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.