Hi Christian,

Cristian Fonti wrote:

I have jet found this properties, i try to use it, but nothing...i create two styles (left and right), but the problem is that, when i create the document, there is always the "Standard" style... i'm not be able to use two styles...
Thanks

I haven't dived in this part of the API yet.
However, reading your post, it seems that you do not know how to apply page styles in the UI?
If you open the window for page-style properties (F11, rightclick on page style), you'll find the field 'Next style' at the Organizer tab.


So there must be cros-linking between the styles for left and right pages.

Does this point in the right derection?
Kind regards,

Cor



Andrew Douglas Pitonyak ha scritto:

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]



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



Reply via email to