The style and layout of the pages in a document is determined
by:
�
Page Layouts
�
Master Pages
A page
layout describes the physical properties or geometry of a page, for
example, page size, margins, header height, and footer height.
A master page is a
template for pages in a document. It contains a reference to a page layout
which specifies the physical properties of the page and can also contain static
content that is displayed on all pages in the document that use the master
page. Examples of static content are headers, footers, or background graphics.
If a text or spreadsheet document is displayed in a paged
layout, the master pages are instantiated to generate a sequence of pages
containing the document content. When a master page is instantiated, an empty
page is generated with the properties of the page master and the static content
of the master page. The body of the page is then filled with content. If
multiple pages in a document use the same master page, the master page can be
instantiated several times within the document.
In text and spreadsheet documents, a master page can be
assigned to paragraph and table styles using a style:master-page-name
attribute. Each time the paragraph or table style is applied to text, a page
break is inserted before the paragraph or table. The page that starts at the
page break position uses the specified master page.
In drawings and presentations, master pages can be assigned
to drawing pages using a style:parent-style-name
attribute.
Note: The
OpenDocument paging methodology differs significantly from the methodology used
in [XSL]. In XSL, headers and footers are contained within page sequences that
also contain the document content. In the OpenDocument format, headers and
footers are contained in page styles. With either approach, the content of
headers and footers can be changed or omitted without affecting the document
content.
Page layouts are described in section 14.3. Master pages are
described in section 14.4.