> From: LireCouleur [mailto:[email protected]] 
> Sent: Sunday, January 04, 2015 8:29 AM
> To: [email protected]
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to