如何在 OpenOffice 中创建侧边栏面板?

发布于 2024-07-13 14:10:41 字数 327 浏览 5 评论 0原文

我想创建一个添加侧边栏的 OpenOffice.org 插件。 我已成功安装 OpenOffice.org、OpenOffice.org SDK 和 NetBeans OpenOffice 插件。

我熟悉Java、AWT和Swing,所以不需要向我解释这些概念。

现在,我想在 OpenOffice.org Writer 应用程序中创建一个侧边栏面板(或 JPanel)。 我怎样才能做到这一点? 它将位于左侧并填充所有可用高度(同时使用固定宽度)。

关于如何实施这个有什么想法吗? 我过去没有使用 OpenOffice.org 插件的经验。 先感谢您。

I want to create an OpenOffice.org plug-in that adds a sidebar.
I have successfully installed OpenOffice.org, OpenOffice.org SDK and NetBeans OpenOffice plug-in.

I am familiar with Java, AWT and Swing, so no need to explain these concepts to me.

Now, I want to create a sidebar Panel(or JPanel) in OpenOffice.org Writer application.
How can I do this? It would be in the left and fill all available height(while using a fixed width).

Any idea on how to implement this? I have no OpenOffice.org plug-in past experience.
Thank you in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

笑脸一如从前 2024-07-20 14:10:41

目前无法通过 OpenOffice.org API 实现这一点。 您可以创建菜单、工具栏和对话框。 您无法通过 UNO 创建可停靠窗口或面板。 请参阅:开发指南中的 GUI 章节

通过 API 公开此功能正在积极开发中,我建议您加入 [电子邮件受保护] 邮件列表以掌握最新动态。

您要求的具体功能已经在那里讨论过,并且建议在 OpenOffice 3.0 的未来更新中提供该功能。 请参阅列表存档中的帖子

This is currently not possible through the OpenOffice.org API. You can create menus, toolbars and dialogs. You cannot create dockable windows or panels via UNO. See: GUI Chapter in the Dev Guide.

Exposing this capability through the API is under active development and I suggest you join the [email protected] mailing list to stay on top of things.

The specific feature you asked for was already discussed there and it was suggested that it would be made available with a future update to OpenOffice 3.0. See post in the list archive.

我早已燃尽 2024-07-20 14:10:41

我不知道这个问题是否有一个简单的答案。 OO.o 此处提供了他们的开发指南。 一旦您创建了符合其规范的 UNO 组件,您就可以使用它:

用 Java 或
C++ [然后] 可以从用户调用
界面,显示自己的 GUI,以及
处理整个应用程序。

这听起来像是你想做的。 希望这可以帮助!

I don't know if there's an easy answer for this. OO.o provides their dev guide here. It appears once you create an UNO component to their spec you can use:

Arbitrary objects written in Java or
C++ [and then] can be called from the user
interface, display their own GUI, and
work with the entire application.

That sounds like what you want to do. Hope this helps!

淡水深流 2024-07-20 14:10:41

从 4.0 版本开始就可以了。
请参阅https://wiki.openoffice.org/wiki/Sidebar

It's possible since version 4.0.
See https://wiki.openoffice.org/wiki/Sidebar

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文