Hi,
I want to build a command-line tool that reads files in several file formats
and outputs a plain text file. OOo reads many formats, including MS Word and
its own OpenDocument. The plain text file is used to for a search index (i
need to extract the words from a document, not the format).
It is possible to create a macro to convert a document, but starting the
office seems a large overkill to me and may cause problems when running on a
server.
I searched the source of OOo and found two modules (or parts of the program)
related to file filters. The first one is in the sw source folder. The class
SwDocShell (/sw/inc/docsh.hxx) has read and save methods. This class is
using the so3 module (especially the SvStorage class), which is deprecated.
As a second part of the program, there must be an UNO service available
(capable of converting documents), but i haven't yet found this service.
My question is, is it possible to use the filters of OOo, without starting
the office? And, if so, can i use the sw and so3 module directly, or should
i use some UNO service or object?
Thanks in advance,
Ernst
_________________________________________________________________
Ontmoet nieuwe vrienden via je eigen vrienden! http://spaces.live.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]