[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-06-01 21:01:33
Message-ID: 200506012301.35854.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
I've got one last problem, namely when trying to export part of a document.
I am trying the following:
QString mimelist = KoFilterManager::mimeFilter("application/x-krita",
KoFilterManager::Export).join(" ");
KURL url = KFileDialog::getSaveURL(QString::null, mimelist, this,
i18n("Export Layer"));
if (url.isEmpty())
return;
<... construct a new KisDoc from the data I want to export ...>
KisDoc d;
d.exp0rt(url);
Obviously, nobody knows that I want, say, png instead of the native mimetype
for a KisDoc; but how can I get the mimetype the user selected with
KFileDialog and how can I make sure exp0rt() uses that?
--
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