9 Restricting Functionality in OpenOffice.org
You can restrict the functionality of OpenOffice.org program modules for individual users, groups, or across a
network. You can apply different restrictions to different users. You can also create a command configuration file
in XML format to restrict the availability of menu commands in an OpenOffice.org program.
Creating a Command Configuration File
The creation of a command configuration file is a three-step process:
Determine the command names of the features you want to restrict.
Create an XML configuration file.
Copy the configuration file to the appropriate location in the OpenOffice.org installation directory.
To Create a Command Configuration File
1 Determine the UNO Command Names for the feature that you want to
restrict.
2 In a text editor, create an XML configuration file.
a. Use the following file structure.
<?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="CommandName" oor:op="replace">
<prop oor:name="Command">
<value>CommandName</value>
</prop>
</node>
</node>
</node>
</oor:node>
The Commands.xcu file uses the following schema:
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-schema oor:name="Commands"
oor:package="org.openoffice.Office" xml:lang="en-US"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
35
Comentarios a estos manuales