ODF 和 ODS (OpenOffice) 的 Objective-C 包装器?

发布于 2024-07-26 16:25:48 字数 241 浏览 3 评论 0原文

我想从 Cocoa 应用程序导入和导出 OpenOffice 格式。 特别是电子表格,但也可能是文本。

我看过,但似乎找不到正确的搜索词组合。

I'd like to import and export from a Cocoa application from/to OpenOffice format. Spreadsheets, in particular, but also potentially text.

I've looked, but I can't seem to find the right combination of search words.

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

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

发布评论

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

评论(2

染柒℉ 2024-08-02 16:25:48

文本相当简单,因为 Cocoa 文本系统直接支持 OpenDocument 文本文档 自 OS X 10.5 起。 因此,如果您使用它,您将免费获得 ODT 导入和导出。

不幸的是,据我所知,电子表格没有原生支持。 不过,这种格式并不太难理解,尤其是导出功能应该是您应该能够轻松使用的功能。 请查看 规范David Eisenberg 的 OpenDocument Essentials。 基本导入器也不应该太难,但这取决于您的具体要求。 避免提供与其他 ODF 应用程序的往返功能,并坚持使用 ODF 导入/导出,除非您的用户与其他 ODF 应用程序的用户就 ODF 文档进行协作至关重要。 祝你好运。

Text is rather easy as OpenDocument text documents are directly supported by the Cocoa Text System since OS X 10.5. Thus, if you use that, you'll get ODT import and export for free.

Unfortunately, there is no native support for spreadsheets that I'm aware of. The format isn't too hard to grok though and especially export functionality should be something you should be able to get going without too much trouble. Have a look at the spec and at David Eisenberg's OpenDocument Essentials. A basic importer shouldn't be too hard either but it depends on your specific requirements. Avoid offering round-trip functionality with other ODF applications and stick to ODF import/export unless it is critical for your users to collaborate on ODF documents with users of other ODF applications. Good luck.

意中人 2024-08-02 16:25:48

TextEdit 将打开 ODF 文件。 TextEdit 的源代码位于您计算机上的开发人员文件夹的示例部分。 /Developer/Examples/AppKit/TextEdit/

所以看看那里,看看是否可以找到他们在哪里进行导入。

TextEdit will open ODF files. The source for TextEdit is on your machine in the examples section of the developer folder. /Developer/Examples/AppKit/TextEdit/

So have a look in there and see if you can find where they do the import.

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