Hi Frank

>>> So, I assume "the component" for you is the XComponent of the controller.
>> Yes. But how to get it? I know how to get the XController and the
>> XModel. But how to get the XComponent?
> 
> analogous to how you get the XComponent interface of the frame, or how
> you get any interface for any object:
> 
> XController xController = xFrame.getController();
> XComponent xControllerComponent = (XComponent)
>       UnoRuntime.queryInterface(XComponent.class, xController);

OK. But that does not work...

Here my xFrame:
-----%<-----
CO> [EMAIL PROTECTED]
[oid=867a494;gcc3[0];c226f3b38e9111dbbb1ff0b779ca904b,
type=com.sun.star.frame.XFrame]
-----%<-----

Here my xController
-----%<-----
CO> [EMAIL PROTECTED]
[oid=88fee74;gcc3[0];c226f3b38e9111dbbb1ff0b779ca904b,
type=com.sun.star.frame.XController]
-----%<-----

And then I query for the xControllerComponent as you described above:
-----%<-----
CO> [EMAIL PROTECTED]
[oid=88fee74;gcc3[0];c226f3b38e9111dbbb1ff0b779ca904b,
type=com.sun.star.frame.XController]
-----%<-----

?!?! Do you know, what I can do now?

Greetings, Tobias

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

Reply via email to