Cor Nouws wrote:

Johnny Andersson wrote:

Den 2006-05-20 17:18:59 skrev Cor Nouws <[EMAIL PROTECTED]>:

Johnny Andersson wrote:

Now, I have a table of contents at page 2. I place the cursor somewhere in it and double click a style called "Table of contents". Then I click in page 2 again, but now the stylist tells me that "Standard" is selected.


Hi Johnny,

Clicking on a page style in the stylist allways applies it to the first page of the document. I've never seen it different in OOo.

The styles of the following pages, depend on either:
- what is defined as nex page style (Stylist, rightclick on page style, Change, tab Manage), or
- on what is set with manual breaks (Insert|Break ...) or
- on what is set in the format of the paragraph on top of a page (Format|Paragraph|Text flow ....)

HTH & Greetings,
Cor


Am I the only one who wants it to work the way I describet? That is, that clicking on a page style should change the style on the current page, just like clicking a paragraph style changes the of the current paragraph. I can't see the advantages by changing the style of the FIRST page instead of the CURRENT page, when double clicking a style.

Well, I would like it to change only the current ("physical") page, or have the GUI changed to make it clear that I am changing the whole document, or section, or something.

I've re-studied the subject, in order to react properly to your questions. Thus I found out, that I was wrong in the idea that clicking applies the page style to the fist page of the document. It turns out to be a little more complicated (I'm working in 2.0.3 RC1 currently). Double clicking on a page style in the Stylist applies that page style to the first page after the break where the section starts in which the cursor is. So if there is no break set (Ctrl-Enter / Insert|Break / Format|Paragraph|Text flow ...) the page style will apply to the first page of the document.

I don't think this is what happens in OOo2.0.2, checking ... yes, it is slightly different:- 1) start new document - type ctrl+Enter to add a page break (no text typed yet) - place cursor in first page then double-click in stylist to change the first page to First Page style - place cursor in second page then double-click in stylist to change page to (something really different) an Envelope. Result is that both pages 1 & 2 change to Envelope.
2) as for 1 except using the Status bar Page Style box is the same as 1).
3) starting again with a new document and adding a second new page using the Insert Break dialog and setting the style there doesn't change the first page. Now, changing this second page to a different page style by double clicking in stylist or via the Status bar Page Style box changes only the second page. However, adding a third page using ctrl+Enter and then changing the third page style changes pages 2 & 3, but still leaves page 1 alone.

So, confirming what Cor said:
It seems that manual page breaks are controlled entirely through paragraph attributes. The Insert->Break->Page (with style) sets the Break, Next Page Style and Break Before text flow attributes of the first paragraph on the current page. Ctrl+Enter on the other hand only sets the Break and Break Before attributes, and the Next Page attribute is not assigned, which tells OOo to derive the page style from the most recent (in document order) paragraph that has Next Page style set. It appears that, when you are changing the page style via the stylist or Status bar, you are changing the Next Style text flow attribute of the most recent (in document order) paragraph that has the Break attribute set, which may be several pages back in the document, or the very first paragraph in the document if no manual break has been inserted.


Another feature found: right clicking on the name of the page style in the status bar, give a context menu from which other page styles can be selected.

So two possibilities:

a) the Help file is incorrect / not clear enough (which is the same for a Help file ;-) )

b) the function doesn't work as it should, in this sense, that applying a different page style (by double clicking in the Stylist or by the context menu of the page style on the status bar) should ad a break to the first paragraph of the current page, so that indeed only the current page is affected.

Ideally, I would not expect this implied page break to be attached to the first paragraph of the current page, since then it should stay with that paragraph, which is not what I would like. Presumably there is a notion of a page in OOo that is related to the physical printed page, which is independent of the text (represented as paragraphs). That is what I would like to change when I change the page style, and is what I intuitively think of when I see Page Style.

Ross

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to