office-gobmx/svgio
Xisco Fauli 82c0a363ab tdf#97539; if parent is css style, look one level up
if the style attributes are set like

  <rect x="10" y="10" width="100" height="100" fill="#00D000"
          clip-path="url(#myClip)"/>

it works, however, if it uses a css style like

  <rect x="10" y="10" width="100" height="100" style="fill:#00D000"
          clip-path="url(#myClip)"/>

it fails to get the clipPath from the parent, because the css style
is the direct parent, thus, check one level up

Change-Id: Iff6df95c9fa9da4c2f1a986cca0ad82ab1494353
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137094
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-07-15 19:10:12 +02:00
..
inc tdf#97539; if parent is css style, look one level up 2022-07-15 19:10:12 +02:00
qa/cppunit tdf#97539; if parent is css style, look one level up 2022-07-15 19:10:12 +02:00
source tdf#97539; if parent is css style, look one level up 2022-07-15 19:10:12 +02:00
CppunitTest_svgio.mk
CppunitTest_svgio_read.mk
CppunitTest_svgio_tools.mk
IwyuFilter_svgio.yaml
Library_svgio.mk
Makefile
Module_svgio.mk
README.md
svgio.component

SVG Reader

Introduction

The svgio module is used to read SVG (Scalable Vector Graphics[1]) files. It is an XML based format for vector graphics.

This module contains svgio/source/svgreader which is used for embedding an SVG file with "Insert -> Picture -> From File".

SVG is an open standard provided by the World Wide Web Consortium (W3C).

[1] Scalable Vector Graphics

How does it work?

svgio module uses sax for reading xml and turns it into drawinglayer primitives. The rendering is done via drawinglayer primitives. For more information, you should refer to drawinglayer documentation.

Known Bugs

Known remaining bugs for this module are gathered here:

Dependencies

Direct dependencies for emfio are drawinglayer and sax.

References

Documentation for the SVG format is available on the W3C website: