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

List:       koffice
Subject:    Re: Calling filters from within a koffice application
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2005-05-31 20:02:11
Message-ID: 200505312202.14087.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 30 May 2005 15:21, David Faure wrote:

> Sure, take a look at KoFilterManager in kofficecore...

I did -- and I got quite confused...

What I wanted was something like

Filter f = koFilterManager -> getFilter(file, "to Krita);
KisDoc d = (KisDoc) f.import(file);
addLayer(d.image());

What I tried to do was:

koFilterManager m = koFilterManager(url, "krita's mimetype);
m.exp0rt(tmpfile, "krita's mimetype again");
KisDoc d();
d.openURL(tmpfile);
addLayer(d.image());

But in the end, this was all that was needed:

KisDoc d();
d.import(file);
addLayer(d.image());

I'm happy now :-).

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

[Attachment #5 (application/pgp-signature)]

____________________________________
koffice mailing list
koffice@kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice


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

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