Creating a Command Configuration File
<templates>
<group oor:name="CommandType">
<prop oor:name="Command" oor:type="xs:string"/>
</group>
</templates>
<component>
<group oor:name="Execute">
<set oor:name="Disabled" oor:node-type="CommandType"/>
</group>
</component>
</oor:component-schema>
b. Create a separate node for each feature you want to restrict.
c. In each node, replace the term CommandName with the command name of the
feature.
3 Save the file with the name Commands.xcu.
The following example Commands.xcu file disables the ability to customize menus in OpenOffice.org.
<?xml version="1.0" encoding="UTF-8" ?>
<oor:node 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="ConfigureDialog" oor:op="replace">
<prop oor:name="Command">
<value>ConfigureDialog</value>
</prop>
</node>
<node oor:name="ConfigureToolboxVisible" oor:op="replace">;
<prop oor:name="Command">
<value>LoadToolBox</value>
</prop>
</node>
</node>
</node>
</oor:node>
To apply this restriction to all users, copy the file to the network-install-
dir/share/registry/data/org/openoffice/Office directory.
For a list of command names and their descriptions, see Index of UNO Command Names for OpenOffice.org.
To Apply a Command Configuration File
You can apply a command configuration file to OpenOffice.org on the Solaris, Linux, and Windows platforms.
1 Exit all OpenOffice.org applications.
On Windows, ensure that you exit the OpenOffice.org Quickstarter in the system tray.
2 Copy the Commands.xcu file to the appropriate directory.
To apply the configuration to all users on the network, copy the Commands.xcu file to the following
directory:
network-install-dir/share/registry/data/org/openoffice/Office
To apply the configuration to a specific user on the network, copy the Commands.xcu file to the following
directory:
workstat-dir/user/registry/data/org/openoffice/Office
The configuration is applied when you restart OpenOffice.org
36 OpenOffice.org 3.2 Administration Guide · March 2010
Comentarios a estos manuales