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> [EMAIL PROTECTED]
[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?
Greetings, Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]