ギャラリー拡張機能パッケージ 
ギャラリーを配布するための拡張機能パッケージの作成方法。
ディレクトリ構造 
ギャラリー用拡張機能パッケージの最小ファイル構成を示してあります。

- manifest.xml
- Paths.xcu
- sgXXX.sdg, sgXXX.sdv, sgXXX.thm
manifest.xml 
コンフィグレーション Paths.xcu ファイルを拡張機能マネージャに処理されるように指定します。
0
1
2
3
4
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path ="Paths.xcu"/>
</manifest:manifest>
|
Paths.xcu 
このファイルではツール - オプション - OpenOffice.org - パスのギャラリーにパスを追加するために使用します。
以下では gallery ディレクトリを指定しています。
0
1
2
3
4
5
6
7
8
9
10
11
12
| <?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:package="org.openoffice.Office"
oor:name="Paths" xmlns:install="http://openoffice.org/2004/installation"
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="Paths">
<node oor:name="Gallery" oor:op="fuse">
<node oor:name="InternalPaths">
<node oor:name="%origin%/gallery" oor:op="fuse"/>
</node>
</node>
</node>
</oor:component-data>
|
.sdg .sdv .thm 
ギャラリー用のファイルは sgXXX.sdg、sgXXX.sdv、sgXXX.thm の三つのファイルで一セットです。XXX には数字が入ります。
ギャラリーファイルには OOo のギャラリーを作成、アイテムを追加してできたファイルを使用します。
注意点 
ギャラリーのテーマに同名のものが二つ以上あるときには (すべてリストに表示されるにもかかわらず) 最初にインストールされたものの内容が表示されてしまいます。