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.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to