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

List:       koffice-devel
Subject:    Re: File filters status...
From:       Cyrille Berger <cberger () cberger ! net>
Date:       2009-01-20 8:45:04
Message-ID: 200901200945.05009.cberger () cberger ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Monday 19 January 2009, Thomas Zander wrote:
> I can imagine this is not explaining it to you; but I'm not sure how you
> think you can have a filter query the app-internal document when you never
> start the app.
Since we are speaking of libraries, you don't need an instance of the 
application to instantiate objects of that library :) It's a little bit like 
kross scripts that can be runned without a running instance of a given 
application.

> Can you explain the process how you think this could work?
No idea, but just try to convert a SVG to a TIFF with koconverter :) And it 
uses, krita's tiff filter ;) And I have no doubt that the TIFF export filter of 
Krita needs a KisDoc2 as an entry point.

Here is the chain, as I guess it is:
svg -> png (karbon, maybe two steps ?)
png -> KisDoc2 (Krita)
KisDoc2 -> tiff (Krita)

Since the png import filter doesn't create a document, I assume that somewhere, 
something in the chain use Krita's KoFactory to create that document instance, 
and sounds like it's exactly what KoFilterChain::outputDocument() and/or 
KoFilterChain::inputDocument() does.

-- 
Cyrille Berger

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; \
font-weight:400; font-style:normal;">On Monday 19 January 2009, Thomas Zander \
wrote:<br> &gt; I can imagine this is not explaining it to you; but I'm not sure how \
you<br> &gt; think you can have a filter query the app-internal document when you \
never<br> &gt; start the app.<br>
Since we are speaking of libraries, you don't need an instance of the application to \
instantiate objects of that library :) It's a little bit like kross scripts that can \
be runned without a running instance of a given application.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>&gt; Can you explain the process how you think this could \
work?<br> No idea, but just try to convert a SVG to a TIFF with koconverter :) And it \
uses, krita's tiff filter ;) And I have no doubt that the TIFF export filter of Krita \
needs a KisDoc2 as an entry point.<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Here is the chain, as \
I guess it is:<br> svg -&gt; png (karbon, maybe two steps ?)<br>
png -&gt; KisDoc2 (Krita)<br>
KisDoc2 -&gt; tiff (Krita)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Since the png import filter doesn't create a document, I \
assume that somewhere, something in the chain use Krita's KoFactory to create that \
document instance, and sounds like it's exactly what KoFilterChain::outputDocument() \
and/or KoFilterChain::inputDocument() does.<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br> Cyrille \
Berger</p></body></html>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://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