Does LibreOffice/OpenOffice Support the COM Model

♀尐吖头ヾ 提交于 2021-02-07 10:14:36

问题


Does LibreOffice/OpenOffice Support the COM Model (Component Object Model)?


回答1:


Not directly. The creators of OpenOffice/LibreOffice invented their own component framework which is called UNO.

From the limited insights into this framework (quite crappy documentation, but the official COM documentation is also crap [save Don Box'es book, but that is Addison Wesley]), it seems to me as if UNO is quite a match to COM (no fixed ABI, so that components from the same environment can talk to each other without having to translate their calls into a common ABI).

I have to admit that I have not used it (only my co-workers) while I have used COM automation for MS Office a lot (Visual C++/ATL). I suppose that there is a bridging framework that creates COM to UNO glueing components.

But if you want to automate OpenOffice, you could as well start to use UNO (it is not as if you could write COM code that addresses both MS Office as well as LO/OO). Else have a look at this link: http://www.oooforum.org/forum/viewtopic.phtml?t=9815 (Googling for COM-related stuff is a PITA since com is also a top-level internet domain name. Guess what MS chose as name for the successor technology :-)

Regards, Stuart

PS: Would you mind keeping us informed about your experience with UNO or UNO to COM bridging? Thx in advance



来源:https://stackoverflow.com/questions/17796767/does-libreoffice-openoffice-support-the-com-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!