Thanks, I think I still miss some of the basics...
So, I'm doing this now:

XComponent xC = xDesktop.getCurrentComponent();
XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class,xC);

It triggers the XDispatchHelper but always where I left my cursor, what
about inserting it where the mark was found? Is there a way to link the
XDispatchHelper with the element I'm in?

Thanks again,
Joan

-----Mensaje original-----
De: Stephan Wunderlich [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 17 de noviembre de 2006 10:53
Para: [email protected]
Asunto: Re: [api-dev] XDispatchHelper / XModel in XEnumeration

Hi there,

> I want to parser a document and trigger a XDispatchHelper at certain
> points. I need the XModel object for doing it but when I get to this
> line:
>
> XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class,field);
>
> xModel is null.... What am I doing wrong??

well textfields don't implement the Interface XModel as far as I 
know. You will have to get it from the document your field is in.

Hope that helps

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail may contain confidential or privileged information. Any unauthorised
copying, use or distribution of this information is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to