Mark Walker wrote:
Hi
Can someone please help with a macro problems in OpenOffice.org 1.1.4 under
Linux.
I'm tried asking for answer on the forums, but to no avail.
The Problem.
I need to provide to controlled locked down openoffice environment for my users.
To do this i've hidden the menubar, created a custom toolbar & de-selected all
standard toolbars.
Everything works fine, except a user can right click on my toolbar which displays a
context menu that allows the user to re-select standard toolbars, de-selected my
toolbar & even worse config aspects of openoffice.
I've played about with the XContextMenuInterceptor which allows me to intercept
all context menus except the toolbar one.
The toolbar doesn't support the XContextMenuInterceptor interface.
Please use the disable commands feature for this. You have to add
"ConfigureDialog" to the Commands.xcu file, which disables all user
interface elements that are responsible for customization of menus,
toolbars and the statusbar.
The following Commands.xcu must be copied to the folder <office
installation>/share/registry/data/org/openoffice/Office.
<?xml version="1.0" encoding="UTF-8" ?>
<oor:component-data oor:name="Commands" oor:package="org.openoffice.Office"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<node oor:name="Execute">
<node oor:name="Disabled">
<node oor:name="m1" oor:op="replace">
<prop oor:name="Command">
<value>ConfigureDialog</value>
</prop>
</node>
</node>
</node>
</oor:component-data>
You can find more information about the disable commands feature in the
Developer's Guide 1.1.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]