[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libreoffice-users] Wanted: Macro for removing Page Breaks in MailMerge docs


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

--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
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

Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.