I understand how to disable individual commands, such as "Open" and "Save" on the File Menu. Put is it possible to disable, say, the entire File Menu and all the commands within it? I am using the Java API.
Thanks,
Raymond
Disable Entire Menus
Disable Entire Menus
Raymond
Solaris 10 x86 StarrOffice 9 - basis3.1
Solaris 10 x86 StarrOffice 9 - basis3.1
Re: Disable Entire Menus
32 views and no response. Somebody has to know something. Please help!
Raymond
Solaris 10 x86 StarrOffice 9 - basis3.1
Solaris 10 x86 StarrOffice 9 - basis3.1
- kingfisher
- Volunteer
- Posts: 2123
- Joined: Tue Nov 20, 2007 10:53 am
Re: Disable Entire Menus
You know more than I do about menus. I know how to get access to tool bars (through the Layout Manager) but not menus.
I tried a search of the api sub-domain. Sorting through that can be very time-consuming.
I found these which may be of use:
Module awt
ServiceItemDescriptor
ServiceLayoutManager
FWIW, this is my search of the sub-domain.
I tried a search of the api sub-domain. Sorting through that can be very time-consuming.
I found these which may be of use:
Module awt
ServiceItemDescriptor
ServiceLayoutManager
FWIW, this is my search of the sub-domain.
Apache OpenOffice 4.1.9 on Linux
Re: Disable Entire Menus
Inspect the frame's layout manager.
objLayout.HideCurrentUI = True hides away the menu bar.
objLayout.HideCurrentUI = True hides away the menu bar.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Disable Entire Menus
With all of the macros that I have written, I have never needed (nore tried) to disable a menu. Off hand, I expect that your choices will be to disable each command (which you claim to know how to do, and ironically I have no idea..... Should probably have you teach me that trick so that I can document it), or perhaps to modify the configuration XML (yuck).
Villeroy, did you attempt to hid only a submenu using this trick?
Villeroy, did you attempt to hid only a submenu using this trick?
Re: Disable Entire Menus
Most of submenus are simply placeholder for its child contents. /org.openoffice.Office.Addons/AddonUI/OfficeMenuBarMerging configuration with MergeCommand as Remove seems to remove specific menu entry without to remove user's settings.
Office created top menu has problem to get its popup menus, so it can not be used to remove specific menu entries from them.
Any user can modify their own menu, toolbar and shortcut key settings, so to disable the menu entries is not good way to inhibit to use these functions.
Office menu entries and its function depends on protocol handling mechanism known as dispatch framework. It can disable menu, toolbar entries and macro execution by the specific command, using dispatch interceptor. But it can not block the execution of the command by accelerator keys (I have met this problem on somewhere else).
Office created top menu has problem to get its popup menus, so it can not be used to remove specific menu entries from them.
Any user can modify their own menu, toolbar and shortcut key settings, so to disable the menu entries is not good way to inhibit to use these functions.
Office menu entries and its function depends on protocol handling mechanism known as dispatch framework. It can disable menu, toolbar entries and macro execution by the specific command, using dispatch interceptor. But it can not block the execution of the command by accelerator keys (I have met this problem on somewhere else).
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Apache OpenOffice 4-dev on Xubuntu 14.04
Re: Disable Entire Menus
Can you please post the solution for disabling individual command like copy,paste,paste special etc.? Thank you.
OpenOffice 3.0
-
- Posts: 14
- Joined: Wed Oct 06, 2010 6:26 am
Re: Disable Entire Menus
This page in the DevGuide explains how to disable commands: https://wiki.openoffice.org/wiki/Docume ... e_Commands.
LO / AOO on Ubuntu / Windows