diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-07-08 11:54:40 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-07-08 13:33:45 +0200 |
commit | 6dd0074e5e42467a7f82e363f67ca95d04466fa9 (patch) | |
tree | 1d49fbcd2db125036c6b422ffbad4c6acb5916fe /svgio/inc/svgmarkernode.hxx | |
parent | a4acae686c2c55b18b5c27e832827d3c2d8e0f63 (diff) |
tdf#149913: add support for auto-start-reverse
See https://svgwg.org/svg2-draft/painting.html#OrientAttribute
Change-Id: Iedcca7bc79a54333c0f80927364caec82ce61167
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136894
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio/inc/svgmarkernode.hxx')
-rw-r--r-- | svgio/inc/svgmarkernode.hxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/svgio/inc/svgmarkernode.hxx b/svgio/inc/svgmarkernode.hxx index 41c2d71efe41..3f4b08791bd0 100644 --- a/svgio/inc/svgmarkernode.hxx +++ b/svgio/inc/svgmarkernode.hxx @@ -34,6 +34,13 @@ namespace svgio::svgreader userSpaceOnUse }; + enum class MarkerOrient + { + notset, + auto_start, + auto_start_reverse + }; + private: /// buffered decomposition drawinglayer::primitive2d::Primitive2DContainer aPrimitives; @@ -51,8 +58,7 @@ namespace svgio::svgreader SvgNumber maMarkerWidth; SvgNumber maMarkerHeight; double mfAngle; - - bool mbOrientAuto : 1; // true == on, false == fAngle valid + MarkerOrient maMarkerOrient; public: SvgMarkerNode( @@ -94,10 +100,11 @@ namespace svgio::svgreader /// Angle content, set if found in current context double getAngle() const { return mfAngle; } - void setAngle(double fAngle) { mfAngle = fAngle; mbOrientAuto = false; } + void setAngle(double fAngle) { mfAngle = fAngle;} - /// OrientAuto content, set if found in current context - bool getOrientAuto() const { return mbOrientAuto; } + /// MarkerOrient content + MarkerOrient getMarkerOrient() const { return maMarkerOrient; } + void setMarkerOrient(const MarkerOrient aMarkerOrient) { maMarkerOrient = aMarkerOrient; } }; |