Re: UnoComponent: invoking from form control

Peter Eberlein <[email protected]> Fri, 07 May 2010 08:13:50 +0200
Newsgroups gmane.comp.openoffice.dba.devel
Message-ID <[email protected]>
Hi Frank,
Am 06.05.2010 21:46, schrieb Frank Schoenheit, Sun Microsystems Germany:
> Hi Peter,
>
>> in Uno dialogs you can bind an event to a dialog control: either a macro
>> or a method of a uno component.
>>
>> In form controls I'm missing the latter. Any hints? (hoping Frank is
>> reading here yet)
>
> I can't remember ... that's so long ago ... :-P
>
> No, this doesn't work for form controls, they basically accept the
> script URL you attach to an event to the scripting framework. The
> feature of calling methods of an UNO component has, sadly, been
> implemented bypassing the scripting framework, so this doesn't work for
> form controls.
>
> However, it should be easy to embed a macro in the document which does
> nothing but instantiating a service and calling a method, shouldn't it?
>
yes, but first we didn't allow macros in documents for security reasons 
at all and second we are you using Java and Java-Macros are somewhat 
mmh, tricky (remember the parcel-descriptor stuff).
But, sigh, if it's the only solution...

All my best wishes for you in the new team.


Regards

Peter