Re: [api-dev] XModel - creating standalone

2006-07-25 Thread Malte von der Lancken-Wakenitz
Vielen Dank Mathias Funktioniert Alles super. Geniesse Deinen Urlaub Malte Malte von der Lancken-Wakenitz wrote: I can't find any method to explicitly load from a url and the above does not work (I thought it wouldn't). I scoured the api docs, but nothing. How do I do this in java.

Re: [api-dev] XModel - creating standalone

2006-07-24 Thread Malte von der Lancken-Wakenitz
Thanks for your prompt reply. Yes. Create the model as a service and either initialize or load it. In Basic code: model = createUNOService(com.sun.star.text.TextDocument) model.initNew() will create a new empty text document. dim mediadescriptor(n) as new com.sun.star.beans.PropertyValue

Re: [api-dev] XModel - creating standalone

2006-07-24 Thread Malte von der Lancken-Wakenitz
Thanks for your prompt reply and please ignore the previous mail, sent erroneously prior to editing completely. Yes. Create the model as a service and either initialize or load it. In Basic code: model = createUNOService(com.sun.star.text.TextDocument) model.initNew() will create a new

Re: [api-dev] XModel - creating standalone

2006-07-24 Thread Mathias Bauer
Malte von der Lancken-Wakenitz wrote: Thanks for your prompt reply. Yes. Create the model as a service and either initialize or load it. In Basic code: model = createUNOService(com.sun.star.text.TextDocument) model.initNew() will create a new empty text document. dim

Re: [api-dev] XModel - creating standalone

2006-07-24 Thread Mathias Bauer
Malte von der Lancken-Wakenitz wrote: I can't find any method to explicitly load from a url and the above does not work (I thought it wouldn't). I scoured the api docs, but nothing. How do I do this in java. Forget createInstanceWithArguments, there is nothing documented that this shall pass

[api-dev] XModel - creating standalone

2006-07-21 Thread malte
Hello Is it possible to create an XModel standalone, i.e. not part of any frame. For example by Desktop.loadComponentfromURL(_blank, Hidden ... and then keeping a handle to XModel. This works fine. I then load it into a visible frame by adding a Model property to the arguments for the

Re: [api-dev] XModel - creating standalone

2006-07-21 Thread Mathias Bauer
[EMAIL PROTECTED] wrote: Hello Is it possible to create an XModel standalone, i.e. not part of any frame. Yes. Create the model as a service and either initialize or load it. In Basic code: model = createUNOService(com.sun.star.text.TextDocument) model.initNew() will create a new empty