On Sun, Jan 29, 2012 at 06:04:44PM +0100, fabian wrote: > Right now I am trying to also disable the controls in the menubar but > I think there is a good example for that in the SDK > (DisableCommandsTest.java).
yes, this is disabling commands by configuration: http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Disable_Commands If you want something more dynamic, the status of menu items is also controlled by dispatch objects, just like in the toolbar case. > I would like to ask one more thing related to using an external > graphics library for dialogs. I am using Swing to build dialogs since > I need to build more complex dialogs than possible with UNO/AWT. Since > I am working on a mac I got to learn pretty fast that I have to run > AWT/Swing in its own Thread in order to avoid the error: "Apple AWT > Java VM was loaded on first thread -- can't start AWT." > > Naturally this causes that OpenOffice is still accessible while the > dialog pops up. So the question is, is there anything like putting > OpenOffice to sleep while a dialog is open? I know nothing about MacOS, I'm a Linux user, and I develop on that platform. Though I know there is an issue: https://issues.apache.org/ooo/show_bug.cgi?id=92926 This is CLOSED FIXED, but according to https://issues.apache.org/ooo/show_bug.cgi?id=92926#c51 the fix applied only solves the issue with beanshell and javascript with AOO, not the problem itself: http://hg.services.openoffice.org/OOO340/rev/43bea9e7a54b Look at that code, see if you can apply the same approach in your extension. If it does not work, then the issue should be reopened. Regards -- Ariel Constenla-Haile La Plata, Argentina
pgpgMMz7oxY6R.pgp
Description: PGP signature
