openoffice-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 119355] Making Page Breaks more visible and easy to modify
Date Sun, 20 May 2012 00:03:44 GMT

--- Comment #2 from rgb <> ---
(In reply to comment #1)
> Idea is nice, but we would need to:
> - Avoid using "PB" or any other text in the labels, we don't do it anywhere
> in the interface. A small handle will be enough.

Agree. Maybe an icon?

> - Have a look at the ODF specification and understand if a Page Break is a
> standalone element or an attribute of paragraphs and text objects, and in
> that case handle it properly.

Lurking on "content.xml" file inside an odt file, I found that manual page
breaks are defined through automatically generated paragraph styles. For
example, if you insert a manual page break with Ctrl-Enter, at the document
"preamble" you'll have

<office:automatic-styles><style:style style:name="P1" style:family="paragraph"

i.e., a declaration for a style automatically generated, not visible on the
Stylist and based on the text body style. This automatically generated style is
used to insert the page break: the first paragraph on the new page after the
manual break will be labelled as

<text:p text:style-name="P1">Paragraph text</text:p> 

On paragraph styles with automatic page breaks (for example, headings that
always starts on a new page), these are declared on the style definition inside
styles.xml file, with something like this 

<style:style style:name="Heading_20_1" style:display-name="Heading 1"
style:family="paragraph" style:parent-style-name="Heading"
style:next-style-name="Text_20_body" style:default-outline-level="1"
style:class="text" style:master-page-name=""><style:paragraph-properties
style:page-number="auto" fo:break-before="page"/><style:text-properties
fo:font-size="115%" fo:font-weight="bold" style:font-size-asian="115%"
bold" style:font-size-complex="115%"

So on odt files paragraph breaks are always managed by paragraph styles.

You are receiving this mail because:
You are the assignee for the bug.

View raw message