summaryrefslogtreecommitdiffstats
path: root/include/basegfx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-03-03 00:00:23 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-08-29 20:10:50 +0900
commit14da8ab9656467c986ff940dd87f2636ee57dab1 (patch)
tree4ae2e2ffb9e9cd2ed940eac768e75d6dc9713952 /include/basegfx
parentuse gfx namespace for DrawCommands (diff)
downloadcore-14da8ab9656467c986ff940dd87f2636ee57dab1.tar.gz
core-14da8ab9656467c986ff940dd87f2636ee57dab1.zip
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> (cherry picked from commit 8c0178870889a47c46fec8f59b7c94dcabf6d126)
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/DrawCommands.hxx14
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)
{
}
};