No comment on use in Java, but....
Cristian Fonti wrote:

Hi to all,
i have a problem with the Api: I generate a new Writer document, with a Java procedure, with import others documents with the method insertDocumentUrl.
Now, i would to use different styles for the header of right and left pages (in the left pages, i would that the text will be left-align, in the right, right-align).
I'm able to create a style and manage it, but i don't know how to set the different between right and left pages...

If you look at the PageStyle service:
http://api.openoffice.org/docs/common/ref/com/sun/star/style/PageStyle.html
You will notice that you can set the PageStyleLayout, which determines this...
http://api.openoffice.org/docs/common/ref/com/sun/star/style/PageStyleLayout.html


Also, look at the TextPageStyle, and notice that there are header and footer objects that you can set. You would typically set the left and right align of the contained text based on a Paragraph style, but you can certainly hard code the values in the text object itself.

How can i do it in Java???

Thanks to all
Cristian Fonti


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


-- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php


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



Reply via email to