Tobias Krais wrote:
> Hi Stephan,
>
>> even though I'm not the Stephan you addressed
>> I'd try to query the XPrintable at you xModel
instead of myComp.
>
> Yes, that solved my first qestion:
> -----%<-----
> XController xController = xFrame.getController();
> com.sun.star.frame.XModel xModel =
xController.getModel();
>
> // Querying for the interface XPrintable on the loaded
document
> XPrintable xPrintable = (XPrintable)
> UnoRuntime.queryInterface(XPrintable.class, xModel);
> -----%<-----
>
> And then my XPrintable is:
> CO> com.sun.star.bridges.jni_uno.JNI_proxy 53c015
> [oid=87cb520;gcc3[0];4ceff1ff8f2f11dbb63e982597193e79,
> type=com.sun.star.view.XPrintable]
>
> But I need the XComponent anyway.
>
> I think we discovered a bug! I can query for the
XPrintable, the Proxy
> is the same, as you already mentioned. But the TYPE
changes. If I query
> for the XComponent the type NEVER changes!
>
> Is this a bug or not?
I did not follow this thread too closely. You should not
worry about
what toString() on a UNO proxy gives you, as those are
implementation
details, anyway. What is important is that those proxy
objects offer
the expected functionality. What exactly is your problem
with the Java
references you obtain (via queryInterface etc.)?
-Stephan
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|