Progress on OOo GDI Metafile

Jaroslaw Staniek staniek at kde.org
Wed Apr 6 08:11:19 BST 2011


On 6 April 2011 01:12, Pierre <pinaraf at pinaraf.info> wrote:
> Hi
>
> Since a long time, people have been complaining about the OpenOffice GDI
> Metafile picture format being undocumented, hence impossible to implement.
> In the plane sunday, I decided to just jump in the OpenOffice.org code and write
> both a documentation and a pure Qt implementation of that format.
> Now, I understand why nobody did that.
>
> Attached to this mail is the first screenshot... Yes, choosing to display such a
> cross is perhaps a wrong idea...
>
> What do you think is best to add support for svm in Calligra ? Adding a
> QImageIOPlugin ? Or should I convert it to svg to be able to manipulate the
> vector elements ?

Pierre, fantastic news!
Regardless of the technology it would be nice to have general-purpose
Qt-only library i.e. provided as QImageIOPlugin, ideally maybe plus
some helper classes like QWidget and QGraphicsItem capable of
displaying the metafiles.
As for converting it's always a question of efficiency: if competing
code can render the metafile directly, we'll be slower having the
filter chain (the same as with document format filters).
But we can't we use QSvgGenerator to get option of conversion to svg?

-- 
regards / pozdrawiam, Jaroslaw Staniek
 http://www.linkedin.com/in/jstaniek
 Kexi & Calligra (kexi-project.org, identi.ca/kexi, calligra-suite.org)
 KDE Software Development Platform on MS Windows (windows.kde.org)



More information about the calligra-devel mailing list