Got it!!!
More similar to a workaround than a real solution, at least it works: a
/gotoStart()/ call was included in the original code (even if not in the
snippet) and it didn't work, but thanks to Andrew's suggestion about placing
the cursor at the start I simply put the code to change font and alignment
as well as to add page breaks (see code snippets in my previous reply) at
the beginning, before doing everything else.
Now all kind of formatting, replacements and insertions are correctly put in
the active document.
Thanks to Andrew!
Best regards
--
View this message in context:
http://nabble.documentfoundation.org/Java-sidebar-extensions-and-LibreOffice-tp4139084p4139813.html
Sent from the Dev mailing list archive at Nabble.com.
Context
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 Mozilla Public License (
MPLv2).
"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.