Subject: MSWord Export
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Thu Jul 27 2000 - 10:20:25 CDT
These 2 patches applied to the abi and wv trees as of about 2 weeks ago. What
they accomplish is this:
1) wv has a *lot* but not all of the required wvPutXXX methods
corresponding to the existing wvGetXXX methods. I'm certain that these
new "put" methods will only work on Little endian platforms currently.
Please insert the code to convert little endian to big endian as
required for your platform. There are currently macros called
LE_TO_BE_XX where XX represents the size of the int in bytes (i.e. 32,
16, 8, etc...). This needs to be done in wv/exporter/support.c (i know
that these macros are poorly named, backwards, and totally misleading
but the names made sense at some point to me... feel free to rename
them)
2) The abi tree now has ie_exp_MsWord97.[cpp|h]. This is a valid
exporter. It doesn't export in MSWord format quite yet though, as a
bunch of the wvPut methods needed to describe the FIB aren't coded
yet. It does, however, export to a valid OLE2 byte stream. A *very*
good description of what needs to be done for MSWord export was written
by Jamie Montgomerie (co-author of these patches and a *huge* help) and
is located at the top of ie_exp_MsWord97.cpp
What needs to be done:
A bunch of wvPut methods need to be coded (though I'm not sure which
ones.. wv/exporter/TODO.txt may be of *some* use) before further work
on the exporter can continue. This patch has been lying around on my
HD for about 2 weeks now, neglected because I've been too busy at work
to accomplish much more with it. Jamie might have some more
accomplished than I do, but I haven't heard anything from him in a
while.
I'd like to see the wv stuff committed so that others can continue to
hack on the stuff while it's in the tree. It won't do anything bad
to our existing stuff. The only bad thing is that it will increase
the binary's size a little, but that's to be expected. I plan on
hacking on this more in the near future.
The abi stuff doesn't need to be applied as it would only be misleading
to have "MsWord97 (.doc)" show up in the save dialog and not get a
completely valid word document as its output. This is a work in
progress.
Tested on Win32 and Linux x86. Your performance may vary. I'd also like
to upgrade the version of libole2 we're using in the near future, but
that's another issue.
Dom, hoping to make the painful switch to libole2 worthwhile :-)
This archive was generated by hypermail 2b25 : Thu Jul 27 2000 - 10:20:35 CDT