Administration Manual
Table Of Contents
- Copyright
- 1 Deploy OpenOffice.org using package managers
- 2 OpenOffice.org Basic Macros and Libraries
- 3 OpenOffice.org Extension Manager
- 4 Adding Template Files to an OpenOffice.org Installation
- 5 Adding AutoText Files to an OpenOffice.org Network Installation
- 6 Deactivating the OpenOffice.org Registration Wizard
- 7 Accessing Email Clients
- 8 Customizing the User Interface
- 9 Restricting Functionality in OpenOffice.org
- 10 Accessing OpenOffice.org User Profiles on an LDAP Server
9
C H A P T E R 9
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