A Happy New Year to all.

Hello,

I can access a paragraph style as follows:

the_style = 
ThisComponent.getStyleFamilies.getByName("ParagraphStyles").getByName("jms1")

I can also add a new style:

newStyle = ThisComponent.CreateInstance("com.sun.star.style.ParagraphStyle")
ThisComponent.getStyleFamilies.getByName("ParagraphStyles").insertByName("jms2",
 newStyle)

but how can I duplicate an existing style?

The following does _not_ work:

the_style = 
ThisComponent.getStyleFamilies.getByName("ParagraphStyles").getByName("jms1")
ThisComponent.getStyleFamilies.getByName("ParagraphStyles").insertByName("jms3",
 the_style)


Greetings,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org

Reply via email to