从菜单/工具栏按钮启动 OpenOffice 过滤器

发布于 2024-07-14 16:28:19 字数 374 浏览 8 评论 0原文

我按照本页上的说明为 OpenOffice 打包了一个 XSLT 导出过滤器: http://wiki.services.openoffice.org/wiki/Filter_extensions

工作正常; 但为了使用,用户必须选择命令“文件/另存为”,然后选择触发使用过滤器的正确文件扩展名和目标文件名。

我想让用户通过使用菜单项或工具栏按钮来启动过滤器,而不要求他们提供任何信息(目标文件名在转换中定义)。

最好的方法是什么并将其包装在与过滤器相同的扩展中?

I have packaged an XSLT export filter for OpenOffice as per the instructions on this page:
http://wiki.services.openoffice.org/wiki/Filter_extensions

It works fine; but in order to be used, the user has to select the command 'File/Save as' then choose the correct file extension that triggers the use of the filter, and a target file name.

I would like to let the users launch the filter by using either a menu item or a toolbar button, without asking them for anything (the target file name is defined within the transformation).

What is the best way to do that and packaging it in the same extension as the filter?

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

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

发布评论

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

评论(1

肤浅与狂妄 2024-07-21 16:28:19

经过多次毫无结果的搜索和询问后,事实证明最好的技巧是编写一个启动过滤器的宏,并将该宏与一个按钮相关联; 宏和按钮可以打包在与过滤器相同的扩展中。

Well after much fruitless searching and asking, it turns out the best trick is to write a macro that launches the filter, and associate that macro with a button; the macro and the button can be packaged in the same extension as the filter.

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