> From: LireCouleur [mailto:lirecoul...@arkaline.fr] > Sent: Sunday, January 04, 2015 8:29 AM > To: api@openoffice.apache.org > Subject: Re: copy an existing style > > Hi Jörg. This is probably not exactly your question but if > you want to > copy styles from one document to another one, the function > "loadStylesFromURL" is very useful. > Sorry, this is Python code. > > url = ... # your template document URL > try: > ppp = > createUnoStruct("com.sun.star.beans.PropertyValue") > ppp.Name = "OverwriteStyles" # we don't want to > ovewrite the existing styles with similar names > ppp.Value = False > res = > xModel.getStyleFamilies().loadStylesFromURL(url, > (ppp,)) > except: > pass
yes, I think this is helpful. I need to watch more detail to me first. Greetings, Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org For additional commands, e-mail: api-h...@openoffice.apache.org