[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: How to use kwmf for KWord import filters
From:       Ewald Snel <ewald () rambo ! its ! tudelft ! nl>
Date:       2002-02-27 22:48:44
[Download RAW message or body]

Hi Thierry,

[...]

> actually kword store wmf file in QPicture format
> (in memory and on disk).
>
> the following code can do the job.
> #include "qwmf.h"
> QWinMetaFile wmf;
> QPicture pic;
> if ( wmf.load( filename )
>   wmf.paint( &pic );

Thanks a lot!  :)

I did not expect it to be this easy to use the kwmf library. Now I can finally 
fix the broken clipart import for RTF documents.

> when you untar a .kwd file the /cliparts
> directory contain *.wmf files.
> But these files are in QPicture format
> and not 'windows meta file'.

I know, otherwise you wouldn't need kwmf. ;)

> bye.
> thierry

bye,

ewald

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic