AndrewMacro.odt

Read section "7.8.1 Removing Page Breaks"

Although a page break is added by "changing" styles, this is not a function of the style itself, so merely editing a style will not do this for you.

On 05/01/2012 04:25 PM, Nino Novak wrote:
Hi,

when producing MailMerge text documents, semi-automatic Page Breaks are
inserted which can only be removed manually one by one, but not "all together"
by e.g. selecting the whole document (Ctrl+A) and removing Page Breaks in the
Format Paragraph dialog.

XML shows that paragraphs with page breaks are different from paragraphs
without page breaks, they bear the name "P4":

<text:p text:style-name="P4"...

In the automatic styles section, P4 has the following property:

<style:style style:name="P4" ...
       <style:paragraph-properties style:page-number="1"/>...

which - I suppose - is responsible for the page break before this paragraph.

Questions:
- Can anybody tell me, why in these "automatic" type styles the page break
cannot be removed with Strg+A but only one by one?
- Can anybody give me a hint how to write a Macro which removes those page
breaks? (If it's possible at all - in Spreadsheets there seems to be a
function which does a similar job[1], but the described problem might need a
bit more sophisticated proceeding).

Thanks,
Nino
[1] http://user.services.openoffice.org/en/forum/viewtopic.php?f=45&t=41794


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php


--
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to