Re: [api-dev] new-style service constructors

2008-06-17 Thread Juergen Schmidt
Ariel Constenla-Haile wrote: Hello Paolo, Paolo Mantovani escribió: In practice, if I well understand Frank's answer, using createWithArguments/AndContext/AndWhatever things it's not better than simply doing: obj = CreateUNOService(service.name) obj.initialize(Array(arg1, arg2, arg3))

Re: [api-dev] new-style service constructors

2008-06-16 Thread Paolo Mantovani
Hi Ariel, Il lunedì 16 giugno 2008 07:24:36 Ariel Constenla-Haile ha scritto: Hello Paolo, Paolo Mantovani escribió: In practice, if I well understand Frank's answer, using createWithArguments/AndContext/AndWhatever things it's not better than simply doing: obj =

[api-dev] new-style service constructors [comes from How to get the canonical path from a script URL...

2008-06-15 Thread Ariel Constenla-Haile
Hi Paolo, Paolo Mantovani escribió: Il sabato 14 giugno 2008 22:13:45 Ariel Constenla-Haile ha scritto: [] http://api.openoffice.org/docs/common/ref/com/sun/star/script/provider/Scri ptURIHelper.html for the service description (This service is used to help transform Scripting Framework

Re: [api-dev] new-style service constructors [comes from How to get the canonical path from a script URL...

2008-06-15 Thread Paolo Mantovani
Hello Ariel, Il domenica 15 giugno 2008 23:41:06 Ariel Constenla-Haile ha scritto: [] I must admit that I don't know the exact meaning of new-style service but [] A new style service has constructor(s) to instantiate it, and directly returns a reference to its interface. For

Re: [api-dev] new-style service constructors [comes from How to get the canonical path from a script URL...

2008-06-15 Thread Frank Schönheit - Sun Microsystems Germany
Hi Ariel, And even this is not completely safe in OOo Basic, as it is implementation specific; quoting Frank's in http://api.openoffice.org/servlets/ReadMsg?list=devmsgNo=18530 So, the bottom line is: createInstanceWithArguments[AndContext] *might* work, but if it doesn't (or stops working

Re: [api-dev] new-style service constructors [comes from How to get the canonical path from a script URL...

2008-06-15 Thread Ariel Constenla-Haile
Hi Frank, Frank Schönheit - Sun Microsystems Germany escribió: Hi Ariel, And even this is not completely safe in OOo Basic, as it is implementation specific; quoting Frank's in http://api.openoffice.org/servlets/ReadMsg?list=devmsgNo=18530 So, the bottom line is:

Re: [api-dev] new-style service constructors

2008-06-15 Thread Ariel Constenla-Haile
Hello Paolo, Paolo Mantovani escribió: In practice, if I well understand Frank's answer, using createWithArguments/AndContext/AndWhatever things it's not better than simply doing: obj = CreateUNOService(service.name) obj.initialize(Array(arg1, arg2, arg3)) because this is what (more or

Re: [api-dev] New-style Service Constructors in Basic

2007-11-12 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Ariel, With a new-style service constructor, you can NOT call createUnoService() and then initialize() passing to this last call the constructor's parameters. In the example [1] initialize() fails == the object returned by createUnoService() has no such method, i.e. has already been

Re: [api-dev] New-style Service Constructors in Basic

2007-11-09 Thread Juergen Schmidt
Hi Ariel, well the constructor methods can't be used in Basic today. But we have it on our todo list for the future. createInstanceWithArgumentsAndContext is the way you have to go to instantiate such a service in Basic. But keep in mind that if it is the default constructor with only the

Re: [api-dev] New-style Service Constructors in Basic

2007-11-09 Thread Frank Schönheit - Sun Microsystems Germa ny
Hello myself, createInstanceWithArgumentsAndContext is the way you have to go to instantiate such a service in Basic. Not really. Argh. Jürgen, you're right. Actually I was confused by the service constructors use XInitialization which I have in my head, and assumed they do this

Re: [api-dev] New-style Service Constructors in Basic

2007-11-09 Thread Ariel Constenla-Haile
Hi Frank/Jürgen Frank Schönheit - Sun Microsystems Germany escribió: Which brings me to: Ariel, what do you mean with initialize fails? How does this manifest? In old-style services (like FilePicker), you instantiate the service in Basic by calling

Re: [api-dev] New-style Service Constructors in Basic

2007-11-09 Thread Juergen Schmidt
Ariel Constenla-Haile wrote: Hi Frank/Jürgen Frank Schönheit - Sun Microsystems Germany escribió: Which brings me to: Ariel, what do you mean with initialize fails? How does this manifest? In old-style services (like FilePicker), you instantiate the service in Basic by calling

Re: [api-dev] New-style Service Constructors in Basic

2007-11-09 Thread Ariel Constenla-Haile
Hello people, Juergen Schmidt escribió: Ariel Constenla-Haile wrote: Hi Frank/Jürgen Frank Schönheit - Sun Microsystems Germany escribió: Which brings me to: Ariel, what do you mean with initialize fails? How does this manifest? In old-style services (like FilePicker), you instantiate the

[api-dev] New-style Service Constructors in Basic

2007-11-08 Thread Ariel Constenla-Haile
Hello people, While trying to translate some Java code to Basic, I had some problems with new-style UNO service constructors (http://api.openoffice.org/docs/DevelopersGuide/ProfUNO/ProfUNO.xhtml#1_2_1_4_2_Service_Constructors) For example, executing the Extension Manager dialog in Java can