incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <>
Subject Re: [EXT] disable/enable toolbar functions
Date Tue, 31 Jan 2012 12:37:46 GMT
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
> (

yes, this is disabling commands by configuration:

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:
This is CLOSED FIXED, but according to the fix applied
only solves the issue with beanshell and javascript with AOO, not the
problem itself:
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.

Ariel Constenla-Haile
La Plata, Argentina

View raw message