svgio visitor, add draw commands and create the from svg

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 6 March 2019 15:33 EST

Adds a visitor for svgio for visiting svg nodes and create something useful from them.

Basic draw commands - a tree of draw commands (with sub-pixel precision support) just to store a simple definition for drawing.

Adds a svg draw visitor and create draw commands from the svg structure and expose the commands through UNO API.

Change-Id: I073e891a2cffdd76d4e3b838590e3a19c998e9bf Reviewed-on: https://gerrit.libreoffice.org/68770

7894fd2b442e svgio visitor, add draw commands and create the from svg
include/basegfx/DrawCommands.hxx | 74 ++++++++++++++++++
offapi/com/sun/star/graphic/XSvgParser.idl | 14 ++++
svgio/CppunitTest_svgio_read.mk | 67 +++++++++++++++++
svgio/Library_svgio.mk | 1 +
svgio/Module_svgio.mk | 1 +
svgio/inc/svgnode.hxx | 12 +++
svgio/inc/svgvisitor.hxx | 41 ++++++++++
svgio/qa/cppunit/SvgRead.cxx | 102 +++++++++++++++++++++++++
svgio/source/svgreader/svgnode.cxx | 4 +
svgio/source/svgreader/svgvisitor.cxx | 105 ++++++++++++++++++++++++++
svgio/source/svguno/xsvgparser.cxx | 116 ++++++++++++++++++++---------
11 files changed, 501 insertions(+), 36 deletions(-)

Upstream: cgit.freedesktop.org


  • Share