Java LOEclipse,如何在openoffice扩展中创建选项页?
我一直在openoffice的扩展中工作,我正在使用LOEclipse()创建它。我正在尝试在LibreOffice中的工具/选项中创建选项页 这是我的选项对话框.xcu文件:Java LOEclipse,如何在openoffice扩展中创建选项页?,java,openoffice.org,libreoffice,Java,Openoffice.org,Libreoffice,我一直在openoffice的扩展中工作,我正在使用LOEclipse()创建它。我正在尝试在LibreOffice中的工具/选项中创建选项页 这是我的选项对话框.xcu文件: <?xml version="1.0" encoding="UTF-8"?> <oor:component-data oor:name="OptionsDialog" oor:package="org.openoffice.Office" xmlns:oor="http://openoffic
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data oor:name="OptionsDialog" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w2.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<node oor:name="Nodes">
<node oor:name="org.libreoffice.example.InfoPage" oor:op="fuse">
<prop oor:name="Label">
<value>Some Label</value>
</prop>
<prop oor:name="AllModules">
<value>true</value>
</prop>
<prop oor:name="OptionsPage">
<value>%origin%/../../../../../dialog/InfoDialog.xdl</value>
</prop>
<node oor:name="Leaves">
<node oor:name="org.libreoffice.example.OptionsPage" oor:op="fuse">
<prop oor:name="Id">
<value>org.libreoffice.example.OptionsPage</value>
</prop>
<prop oor:name="Label">
<value>Some Label</value>
</prop>
<prop oor:name="OptionsPage">
<value>%origin%/../../../../../dialog/OptionsDialog.xdl</value>
</prop>
<prop oor:name="EventHandlerService">
<value>org.libreoffice.example.comp.StarterProjectImpl</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>
一些标签
真的
%原点%/../../../../../../dialog/InfoDialog.xdl
org.libreoffice.example.options页面
一些标签
%原点%/../../../../../../../dialog/options对话框.xdl
org.libreoffice.example.comp.starterprojectmpl
问题是EventHandlerService不工作,如果我编译扩展,它不会创建此菜单,但是如果我删除EventHandlerServices的值,它会显示菜单,但不会保留数据
您可以看到STARTERPROJECTMPL的源代码
如果有人有任何建议,我将不胜感激。谢谢。我在StarterProjectMPL项目中没有看到名为
OptionsDialog.xcu
的文件。你是在某处学习一个例子吗
有一个例子叫做options页面演示
at。我从网上下载的
然后我在NetBeans中打开它并更新了库(LibreOffice文件夹中的juh.jar、jurt.jar、ridl.jar、unoil.jar)。在OpenOffice 4.1.2中运行和安装成功显示选项屏幕。尝试保存选项时出错,但您的问题所询问的部分有效
这也来自谷歌搜索:。我在StarterProjectMPL项目中没有看到名为
OptionsDialog.xcu
的文件。你是在某处学习一个例子吗
有一个例子叫做options页面演示
at。我从网上下载的
然后我在NetBeans中打开它并更新了库(LibreOffice文件夹中的juh.jar、jurt.jar、ridl.jar、unoil.jar)。在OpenOffice 4.1.2中运行和安装成功显示选项屏幕。尝试保存选项时出错,但您的问题所询问的部分有效
这也来自谷歌搜索:。谢谢Jim,这帮了我的忙,我在starterprojectmpl.java上遇到了问题,我错过了XcontainerIndoweVenthandler和一些与此事件相关的东西。再次感谢。谢谢Jim,这帮了我的忙,我在starterprojectmpl.java上遇到了问题,我错过了XcontainerIndoweventhandler和一些与此事件相关的东西。再次感谢。