[api-dev] how to create instances of new-style Services with non-default constructors

2008-02-27 Thread Peter Eberlein
Hi, I stumbled over Services, which (so I guess) have to be created with the ServiceManager.createInstanceWithArguments(AndContext)() method. for example: http://api.openoffice.org/docs/common/ref/com/sun/star/mail/MailMessage.html So the following should work: Object[] args = new Object[4]

Re: [api-dev] how to create instances of new-style Services with non-default constructors

2008-02-27 Thread Stephan Bergmann
Peter Eberlein wrote: Hi, I stumbled over Services, which (so I guess) have to be created with the ServiceManager.createInstanceWithArguments(AndContext)() method. for example: http://api.openoffice.org/docs/common/ref/com/sun/star/mail/MailMessage.html So the following should work: Obj

Re: [api-dev] how to create instances of new-style Services with non-default constructors

2008-02-28 Thread Fernand Vanrie
Stephan Bergmann wrote: Peter Eberlein wrote: Hi, I stumbled over Services, which (so I guess) have to be created with the ServiceManager.createInstanceWithArguments(AndContext)() method. for example: http://api.openoffice.org/docs/common/ref/com/sun/star/mail/MailMessage.html So the fo

Re: [api-dev] how to create instances of new-style Services with non-default constructors

2008-02-28 Thread Peter Eberlein
Hi Stephan, Stephan Bergmann schrieb: Assuming your code is in Java, then XMailMessage xMailMessage = com.sun.star.mail.MailMessage.create( xComponentContext, "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "Subject", new TextTransferable("Body")); would be the right way to do it. (Howe

Re: [api-dev] how to create instances of new-style Services with non-default constructors

2008-02-28 Thread Stephan Bergmann
Peter Eberlein wrote: Hi Stephan, Stephan Bergmann schrieb: Assuming your code is in Java, then XMailMessage xMailMessage = com.sun.star.mail.MailMessage.create( xComponentContext, "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "Subject", new TextTransferable("Body")); would be the rig