Re: Patch for the mswrite plugin

From: J.M. Maurer <uwog_at_uwog.net>
Date: Sun May 30 2010 - 21:17:22 CEST

Hi Ingo!

On Wed, 2010-05-05 at 19:12 +0200, Ingo Brueckl wrote:
> The mswrite plugin of the actual version of AbiWord isn't really workable.
>
> I fixed several bugs, added character conversion and support for page
> properties which makes imported Write files look now as they did in Write
> before.

Thanks, I've committed your patch, and it will be in AbiWord 2.8.5.

> Unfortunately, I had to give up my plan to add support for embedded
> pictures, because there seems to be no plugin documentation or how to
> pass picture information to the document during import. (I tried to use
> the bmp plugin, but I wasn't successful. It seemed that I cannot simply call
> IE_ImpGraphic_BMP::importGraphic() which could do the necessary work
> otherwise.)
>
> If there is any plugin documentation or any other helpful resource, please
> let me know. (Especially if it *is* possible to use the bmp plugin.)

I'd suggest looking some example code, for example in our XHTML importer
in ./src/wp/impexp/xp/ie_imp_XHTML.cpp. Have a look at the call to
IE_ImpGraphic::loadGraphic() near the end of the function
IE_Imp_XHTML::importDataURLImage.

If you pass a blob of BMP data to loadGraphic, then that should do the
trick just fine.

Thanks!
  Marc
Received on Sun May 30 21:17:29 2010

This archive was generated by hypermail 2.1.8 : Sun May 30 2010 - 21:17:30 CEST