On 20-1-2014 19:26, Krzysztof Kosiński wrote:
2014/1/19 Martin Owens <doctormo@...400...>:
On Sun, 2014-01-19 at 00:33 +0100, Krzysztof Kosiński wrote:
- Does this also solve the problem of svg:image rasterizing the
contents of referred SVG images?
Not yet. I'm working on how to make sp-image.cpp have that capability. I've already disabled linux-only/librsvg rendering since that's a toxic workaround. But I am committed to get it working for 0.91
Now we take the filename and get the same document object node and make sp-image behave like sp-use. What's your thoughts on the best way of duplicating this behavior without copy and pasting lots of code.
Maybe a common base class for SPImage and SPUse?
There are some important differences though, e.g. SPImage does not inherit any style, it creates a new viewport, and it can't refer to single elements.
Just an idea. Instead of forcing it into inheritance structure, a templated function perhaps? (so to do not duplicate written code, and have possibly "duplicated" generated code)
cheers, Johan