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 example [....]
Thanks for the clear explanation and examples. > Notice that one has to use the > css.lang.XMultiComponentFactory:createInstanceWithContext/createInstanceWit >hArgumentsAndContext, > > > not the old > css.lang.XMultiServiceFactory:createInstance/createInstanceWithArguments, > although the former still works; see Jürgen's comment on > http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=18526 > > 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=dev&msgNo=18530 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 less) currently happens behind the scene > "So, the bottom line is: createInstanceWithArguments[AndContext] *might* > work, but if it doesn't (or stops working the next version), don't > complain." Ok, I'll not complain, but let me say that IMHO the impact over the (I think) most used automation language should have been considered *before* to introduce such important modifications I don't even dare to ask if and how new-style services can be used or even implemented in PyUNO ... > Frank's issue requesting support for new-style service constructors in > Basic is http://www.openoffice.org/issues/show_bug.cgi?id=82918, > targeted to 3.X due to lack of resources. Thank you very much Paolo Mantovani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
