Apache OpenOffice の機能の制限
From Apache OpenOffice Wiki
Apache OpenOffice プログラムモジュールの機能は、個々のユーザー、グループ、またはネットワークを通じて制限できます。ユーザーごとに異なる制限を適用できます。また、XML 形式のコマンド設定ファイルを作成して、Apache OpenOffice プログラムのメニューコマンドの使用を制限することもできます。
コマンド設定ファイルの作成
コマンド設定ファイルの作成は、次の 3 つの手順で行います。
- 制限する機能のコマンド名を調べます。
- XML 設定ファイルを作成します。
- この設定ファイルを Apache OpenOffice インストールディレクトリの適切な場所にコピーします。
コマンド設定ファイルを作成する
- 制限する機能の UNO コマンド名を調べます。
- テキストエディタで、XML 設定ファイルを作成します。
- 次のファイル構造を使用します。
- 制限する機能ごとに異なるノードを作成します。
- 各ノードで、CommandName という用語を機能のコマンド名で置き換えます。
- このファイルを Commands.xcu という名前で保存します。
<?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>
Commands.xcu ファイルでは、次のスキーマが使用されます。
<?xml version='1.0' encoding='UTF-8'?> <oor:component-schema oor:name="Commands" oor:package="org.openoffice.Office" xml:language="ja-JP" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <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>
次の Commands.xcu ファイルでは、Apache OpenOffice のメニューをカスタマイズする機能が無効になります。この制限をすべてのユーザーに適用するには、このファイルを network-install-dir/share/registry/data/org/openoffice/Office ディレクトリにコピーします。
<?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>
コマンド名のリストとその説明については、「Index of UNO Command Names for Apache OpenOffice」を参照してください。
コマンド設定ファイルを適用する
コマンド設定ファイルは、Solaris、Linux、および Windows プラットフォーム上の Apache OpenOffice に適用できます。
- すべての Apache OpenOffice アプリケーションを終了します。
Windows では、システムトレイにある Apache OpenOffice クイック起動も終了してください。 - Commands.xcu ファイルを適切なディレクトリにコピーします。
- この設定をネットワーク上のすべてのユーザーに適用するには、 Commands.xcu ファイルを次のディレクトリにコピーします。
network-install-dir/share/registry/data/org/openoffice/Office - この設定をネットワーク上の特定のユーザーに適用するには、 Commands.xcu ファイルを次のディレクトリにコピーします。
workstat-dir/user/registry/data/org/openoffice/Office
- この設定をネットワーク上のすべてのユーザーに適用するには、 Commands.xcu ファイルを次のディレクトリにコピーします。
Apache OpenOffice を再起動すると、設定が適用されます。
Content on this page is licensed under the Public Documentation License (PDL). |