[Libreoffice-bugs] [Bug 135338] New: Starting document with Left Page style doesn't use "first" header/footer.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 31 10:29:17 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=135338
Bug ID: 135338
Summary: Starting document with Left Page style doesn't use
"first" header/footer.
Product: LibreOffice
Version: 6.0.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: trivial
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: jluth at mail.com
Created attachment 163802
--> https://bugs.documentfoundation.org/attachment.cgi?id=163802&action=edit
firstWhen.odt: Initial page uses the normal left footer, not the first page
footer.
When using the alternating Left/Right page styles, each page always uses the
"first" headers and footers. That's fine. But if (strangely) you BEGIN the
document with the left page style (i.e. start with page 2), that page shows the
"Left" h/f instead of "FirstLeft".
This has always been the case AFAICS. However, it works for "Right Page".
Support for the first h/f seemed to arrive in LO 6.0 with
commit bff8cd3d52223002263dcb8c09758c4fc753b6e3
Author: Luke Deller on Wed Jul 12 23:56:50 2017 +1000
tdf#109080 First page header/footer ODF (1/2)
The proposal to add <style:header-first> / <style:footer-first>
to the ODF standard has not yet been accepted, so meanwhile we
should be using an extension namespace for these elements.
This first commit (intended for backport) adds support for reading
<loext:header-first> / <loext:footer-first>
This is a trivial problem. I only note it because it doesn't export to DOCX
that way, so there is an inconsistency. The DOCX version ends up being the way
I would expect it to be (always showing the first h/f, even on the first page).
If any page was to show the "first" h/f, I would expect it to be the first page
in the document.
VERY IMPORTANT: The UI for a left-page-only style doesn't allow you to change
the settings to allow for a separate first page. (But that can be worked around
by temporarily changing the style to be for right and left.) However, if
separate ones are defined, it does honour that. So the difficulty in making
this kind of problematic document makes this odd behaviour even less important.
Steps to reproduce
1.) just open firstWhen.odt.
Notice that the initial page has the footer is "left/even". Now look at the
rest of the pages. They all start with the "first" footer for their page style.
So why is the first use of Left Page different from the other times?
Hmm. sw/source/core/layout/newfrm.cxx::Init
// Create a page and put it in the layout
// The first page is always a right-page and always a first-page
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200731/f52a6002/attachment.htm>
More information about the Libreoffice-bugs
mailing list