[Libreoffice-bugs] [Bug 125280] Footer can not be made to appear only on the first page after it has been filled with content (see c8 for solution)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 6 13:29:19 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125280

--- Comment #17 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Adalbert Hanßen from comment #4)
> Sometimes one wants Headers and footers to be ...

Whatever you might want about different headers/footers, is possible using
different page styles.

> What are the Headers and Footers linked to in the data representation? I
> first thought, they are linked to the section. However, this can't be true,
> because experimenting in a sample document with several sections with
> different number of columns to make them easily discernible and altering the
> footer, I saw that altering affects the whole document rather the footer in
> that section.
> 
> If I follow the manuals, they must be linked to the page style. So on my
> playground, I defined several different page styles with different
> properties regarding Footers and tried to associate them with different
> portions of my document. This did not work as expected.
> 
> To better understand things, some questions are worth to be enlightened:
> 
> 1.  What are the Headers and Footers linked to in the data representation?
> 2.  What properties are associated with them and how are they related to the
> three controls currently available in the software? (on/off altogether, same
> content for left and for right pages, same content on first page).
> 2a. How many bits are thy?
> 2b. What are they meant for?
> 2c. Which dialogue function can control them?
> 2d. Some examples of how they are intended to be used for some useful
> purpose?

I suppose that much confusion stems from the one not-too-obvious thing about
page styles: page styles are controlled by *content* (like paragraphs or
tables). Pages don't exist in document model, and only created on the fly when
needed to place content; and when they are dynamically created, each page gets
its style (from the list of document page styles), based on properties of the
*content*.

Specifically, you may mark that your *content* - some part of text, starting
from *this specific paragraph*, - is placed on pages of this style. To do so,
you mark the first *paragraph* of that part of text to start on new page with
said style. And that setting marks the beginning of the part of document with
this style; it will end as soon as another paragraph with such setting is
encountered.

People often don't realize this powerful yet not obvious conception; so it's a
frequent question "I try to apply page style Foo to my third page, but all the
document gets that style!". That's because - again - the page style is applied
from one paragraph with "page break with page style" to the next paragraph with
"page break with page style". And when they put cursor to arbitrary point on
third page, and double-click a page style on the sidebar, LibreOffice looks for
the paragraph with such a setting: if cursor stays on such a paragraph, then
its setting is modified to refer to chosen style; if current paragraph has no
"page break with page style" set, then LO looka previous paragraphs, until it
finds one, or until it comes to the very first paragraph in the document, in
which case that very first paragraph would get that setting.

A few words about page style's "next style" feature. Page styles not only
define their own properties, but they also may define that after the page of
this style will follow a page with other defined style. This allows to create
auto-alternating sequence of differently-styled pages, giving ~infinite
abilities in regularly changing page formats. Having that feature, anything as
simple as "different left/right headers", "different first page header", as
well as more involved, such as "no header on first page" or "only header on
single second page", and much more, is possible. The discussed checkboxes are
just a simplified features duplicating this powerful mechanism, to make some
common scenarious a little simpler.

Returning to the specific question: headers/footers are properties of page
styles. So defining page styles' headers/footers properly, *and* applying the
page styles to content runs in the document, are necessary and enough to fully
control headers/footers.

-- 
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/20190606/1d5b18a7/attachment.html>


More information about the Libreoffice-bugs mailing list