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> com.sun.star.bridges.jni_uno.JNI_proxy dd87b2
[oid=867a494;gcc3[0];c226f3b38e9111dbbb1ff0b779ca904b,
type=com.sun.star.frame.XFrame]
-----%<-----
Here my xController
-----%<-----
CO> com.sun.star.bridges.jni_uno.JNI_proxy 1f7d134
[oid=88fee74;gcc3[0];c226f3b38e9111dbbb1ff0b779ca904b,
type=com.sun.star.frame.XController]
-----%<-----
And then I query for the xControllerComponent as you
described above:
-----%<-----
CO> com.sun.star.bridges.jni_uno.JNI_proxy 1f7d134
[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: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|