Yannick Patois wrote: > - To the point I'm now, why not just creating an import filter for OOo? > That would give users a very easy way to open and convert the files > interactively, and likely generate a hook tha could be called from a > pyuno cli script, if wanted. > But... Can filter be wrote and distributed independently of OOo itself, > or would I have to recompile the whole software including my hack? Is it > difficult to create and insert a new filter in OOo? > I really dont know.
Filter development does not force you to compile any OOo source code at all. I don't know what you want to import (only text, some attributes or even more complex structures and elements), but in general a UNO based filter using the Writer API is a good option. Of course you must learn something about this API but AFAIK the SDK contains a simple example for a "pure text" import filter for Writer written in Java so you have at least a starting point how you can import the pure text, adding the formatting or other things can be done later. If the example isn't part of the SDK I'm sure it can be found somewhere else. :-) Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
