Two svg import filters

Fridrich Strba fridrich.strba at graduateinstitute.ch
Wed Nov 4 07:49:08 PST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/11/15 13:11, Caolán McNamara wrote:
> We have svgio which is being used for insert->image->from file and 
> filter/source/svg which is being used for open file.

The first is renderer of the svg files. If you insert the file as you
mentioned, it will be stored as a svg file and svgio will render it
using the drawing layer.

The second is document importer. It imports the svg into Draw shape by
shape and mappable style property by mappable style property. The
result of such import (because there is no matching exporter) is
basically an odg file, since our importer API is internally using flag
ODF anyway.

> Which one is "the future", and what prevents us from using it in
> both places ?

There might be a possibility to share some code, I guess. Although, I
am not sure whether the parsers use the same approach. The
filter/source/svg one is basically constructing DOM and then several
"visitors" are running through the structure and extracting useful
information.

Cheers

F.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlY6KPMACgkQu9a1imXPdA9+lgCeL+2A2ccg/VqX8LeXGlVKoa8Q
fq8An3kNvcQz/A18dE3l33SPg4ocLd2c
=D+56
-----END PGP SIGNATURE-----


More information about the LibreOffice mailing list