diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-03-03 00:00:23 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-06 16:37:01 +0100 |
commit | 8c0178870889a47c46fec8f59b7c94dcabf6d126 (patch) | |
tree | 208e34f244f03d54696a73003c8339731fee3d73 /include/basegfx | |
parent | d112761291b16c1d47bebdebf3169527f5e1249e (diff) |
parse more attributes in SvgDrawVisitor
- add additional parameters for DrawRectangle, DrawPath
- parse stroke width, stroke and fill color for path and rect
- parse rx, ry for rect
- use getCurrentViewPort for top-level SVG rectangle
Change-Id: Ife498bdaa721852ef2542ac5df2be0e86dfb4e62
Reviewed-on: https://gerrit.libreoffice.org/68785
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/DrawCommands.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/basegfx/DrawCommands.hxx b/include/basegfx/DrawCommands.hxx index 36321c312ba7..fda21e9231bb 100644 --- a/include/basegfx/DrawCommands.hxx +++ b/include/basegfx/DrawCommands.hxx @@ -58,10 +58,19 @@ class DrawRectangle : public DrawBase { public: basegfx::B2DRange maRectangle; + double mnRx; + double mnRy; + + double mnStrokeWidth; + std::shared_ptr<basegfx::BColor> mpFillColor; + std::shared_ptr<basegfx::BColor> mpStrokeColor; DrawRectangle(basegfx::B2DRange const& rRectangle) : DrawBase(DrawCommandType::Rectangle) , maRectangle(rRectangle) + , mnRx(1.0) + , mnRy(1.0) + , mnStrokeWidth(1.0) { } }; @@ -71,9 +80,14 @@ class DrawPath : public DrawBase public: basegfx::B2DPolyPolygon maPolyPolygon; + double mnStrokeWidth; + std::shared_ptr<basegfx::BColor> mpFillColor; + std::shared_ptr<basegfx::BColor> mpStrokeColor; + DrawPath(basegfx::B2DPolyPolygon const& rPolyPolygon) : DrawBase(DrawCommandType::Path) , maPolyPolygon(rPolyPolygon) + , mnStrokeWidth(1.0) { } }; |