<div class="gmail_quote">On Sat, Jan 28, 2012 at 3:24 AM, Friedrich W. H. Kossebau <span dir="ltr"><<a href="mailto:kossebau@kde.org">kossebau@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
last weekend I started to try if I can do an import filter for the CorelDraw<br>
file format. I managed to get first parts of that format decoded and turned<br>
into some Karbon document data, see also my blog entry<br>
<a href="http://frinring.wordpress.com/2012/01/28/trying-to-read-files-from-the-%0Apast/" target="_blank">http://frinring.wordpress.com/2012/01/28/trying-to-read-files-from-the-<br>
past/</a><br>
<br>
Some questions:<br>
Initially I tried to create directly a KarbonDocument object, not another SVG<br>
file. But then I found out that shapes like e.g. Rectangle and Ellipsis are<br>
only provided by factories from plugins, so I cannot create them directly from<br>
code, is that correct? Do I really have to instead create a SVG file as<br>
output?<br>
<br>
Anybody would like to join the efforts? You are welcome! The CDR formats I<br>
will work on are the ones for version 4 and 5 (as these are the ones of the<br>
files I am interested in). So people with other versions will have to scratch<br>
their itch themselves :)<br>
<br>
You can find the current state in the branch “CDRImport” in my clone of the<br>
Calligra repo here:<br>
<a href="http://quickgit.kde.org/?p=clones%2Fcalligra%2Fkossebau%2Fcalligra.git&a=summary" target="_blank">http://quickgit.kde.org/?p=clones%2Fcalligra%2Fkossebau%2Fcalligra.git&a=summary</a><br>
</blockquote></div><br>Why are you using libcdr? No idea in what state it is, but that would share the code with other projects and produce less duplicated code.<br>