Hi Alan,
newStyle.ParentStyle = oldStyle.Name
oStyles.insertByName("myNewStyle", newStyle)Regards Bernard Message de Alan Yaniger date 2009-10-20 12:58 :
oFamilies = ThisComponent.StyleFamilies oStyles = oFamilies.getByName("ParagraphStyles") oldStyle = oStyles.getByIndex(1)newStyle = ThisComponent.createInstance("com.sun.star.style.ParagraphStyle")How do I assign to "newStyle" all the properties of "oldStyle"?
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
