What do you mean there is always the "Standard" style? Do your created styles show up in the styles list? Please be more exact in what you need to do,and what you have accomplished so far. Can you post the signigificant portion of your code where you think it doesnt do what you want it to do?
On 4/29/05, Cristian Fonti <[EMAIL PROTECTED]> 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 > > 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] > >> > > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Dott. Cristian Fonti > mailto: [EMAIL PROTECTED] > Centro Elaborazione Dati (CED) - Resp. Web Area > SCM Group S.p.a. http://www.scmgroup.com > via Emilia, 77 - 47900 Rimini (RN), Italy > Tel.: +39 0541 700163 Interno: 2163 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Best Regards Christian Junker --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
