Two svg import filters
fridrich.strba at graduateinstitute.ch
Wed Nov 4 07:49:08 PST 2015
-----BEGIN PGP SIGNED MESSAGE-----
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
> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the LibreOffice