Hi,

my extension displays a dialog when certain Calc cells are double-clicked (which now works, thanks to the great support here :)). There should be no other interaction with the spreadsheet during this dialog is shown, so a modal JDialog comes to mind. That would require me to provide a java.awt.Frame as parent so that OOo doesn't completely freeze as well as the dialog staying on top within the application context (and not on top of ALL windows). I'm currently a bit stuck with this. There has been a similar request on the oooforums.org, but that has been (more or less) unanswered. I know about the XSystemDependentWindowPeer interface which should be able to "[Return] a global reference to a java.awt.Component object provided from the JNI-API" but on the one hand I don't think that I could simply get a java.awt.Frame out of that Component and on the other hand the "com.sun.star.frame.Desktop" doesn't provide this interface.

So I have two questions: does OOo somehow provide a java.awt.Frame I can use as parent? If not: is there a (prefered) way I can manually lock OOo and implement its main loop? That way I could lock it, show the JDialog modal in its own thread and while the thread is alive process OOs main loop. When the thread ends, that loop is left, my code proceeds and OOo can regain control. (I hope you know what I mean, it's been a bit hard to describe).

Thanks in advance,
Andreas.

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

Reply via email to