Ask Your Question

[Solved] "Open" command cannot be disabled with Java [closed]

asked 2013-03-23 23:58:24 +0200

joan.esteve gravatar image

updated 2015-10-27 12:46:10 +0200

Alex Kemp gravatar image

I have executed the from the Developer's Guide on the following OO/LO distributions, always windows-based:

  • OpenOffice 2.0.4 (very old, i know)
  • OpenOffice 3.3
  • LibreOffice 3.6.5
  • LibreOffice 4.0.1

Everytime I upgraded my version, I always uninstalled the older release before installing the new one.

DisableCommandsTest shows how to disable four sample commands at runtime: Open, Quit, About and SelectAll.

With OpenOffice versions, the test works perfectly: all the four commands are disabled and are no longer visible from the upper menus.

However, with LibreOffice releases, the "Open" command cannot be disabled. It always remain available: (File->Open, or shortcut Ctrl+O).

Is that command named diferent in LibreOffice releases? Am I making any mistake in my executions?

I really need to launch LibreOffice WITHOUT "Open" command enabled. May anybody have executed that test (from developer's guide as I said) and got succeeded disabling "Open" command with LibreOffice?

Any help would be really appreciated!

Joan Esteve

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-27 12:46:26.576125

2 Answers

Sort by » oldest newest most voted

answered 2013-03-25 13:20:41 +0200

joan.esteve gravatar image

updated 2013-03-25 13:23:03 +0200

Solved by myself.

As expected, that command name had changed from OO to LO.

I finally got the sample working with Open command disabled and hidden.

edit flag offensive delete link more

answered 2013-03-25 11:46:31 +0200

joan.esteve gravatar image

I was able to disable "Open" command using the example.

However, the button remains visible, so the result is not exactly the same.

With OpenOffice, the works correctly and disables all tested commands ("Open" included).

With LibreOffice, the same Test does not disable "Open" command.

Does anybody have faced that problem before?


edit flag offensive delete link more

Question Tools


Asked: 2013-03-23 23:58:24 +0200

Seen: 384 times

Last updated: Mar 25 '13