安装

From Apache OpenOffice Wiki
< Zh‎ | Documentation
Revision as of 08:32, 31 July 2008 by Jirong (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


办公软件在配置文件中找到 URL 的协议处理器实现时,将要求全局服务管理器实例化该实现。所有组件必须在能够实例化之前注册到服务管理器。这在安装扩展的时候自动完成(详见 扩展 一章的介绍)。


配置并注册新协议处理器的最简单的的方法就是使用扩展管理器,只有一个步骤。一个协议处理器扩展的示例可以包含以下目录结构:

 ExampleHandler.oxt:
     META-INF/manifest.xml
     ProtocolHandler.xcu
     windows.plt/
         examplehandler.dll
     solaris_sparc.plt/
         libexamplehandler.so
     linux_x86.plt/
         libexamplehandler.so


.xcu 文件将放入软件包的根路径,用于各种平台的共享库分别放入其各自的 .plt 目录。.xcu 文件与库文件都需要在 manifest.xml 中指明。


安装软件包只需使用命令行 Shell,更改到 <OfficePath>/program 目录并运行

 $ unopkg add /foo/bar/ExampleHandler.oxt

或只需启动 OpenOffice.org 中的扩展管理器通过用户界面来安装扩展。


扩展结构的具体说明,请参阅 扩展 章节。

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages