summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-05-31 08:42:13 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-05-31 08:42:13 +0000
commit9021546d20792fdd799715227685d5d6d8226517 (patch)
tree0e764a178bf7234a230d980e181d0aeda3f7c50f
parentAdd center mirror symmetry butons for perfect symmetry and rotate copyes cleanup (diff)
downloadinkscape-9021546d20792fdd799715227685d5d6d8226517.tar.gz
inkscape-9021546d20792fdd799715227685d5d6d8226517.zip
Boiler plate stuff for 'textPath' 'side' attribute.
-rwxr-xr-xshare/attributes/genMapDataSVG.pl1
-rw-r--r--share/attributes/svgprops2
-rw-r--r--src/attributes.cpp1
-rw-r--r--src/attributes.h1
-rw-r--r--testfiles/src/attributes-test.cpp1
5 files changed, 6 insertions, 0 deletions
diff --git a/share/attributes/genMapDataSVG.pl b/share/attributes/genMapDataSVG.pl
index 412b94910..c2653e0d0 100755
--- a/share/attributes/genMapDataSVG.pl
+++ b/share/attributes/genMapDataSVG.pl
@@ -84,6 +84,7 @@ push @{$attributes{ "style" }->{elements}}, "flowRoot","flowPara","flowSpan","fl
push @{$attributes{ "xml:space" }->{elements}}, "flowRoot","flowPara","flowSpan";
push @{$attributes{ "transform" }->{elements}}, "flowRoot","flowPara","flowSpan";
push @{$attributes{ "fr" }->{elements}}, "radialGradient";
+push @{$attributes{ "side" }->{elements}}, "textPath";
# Mesh gradients
push @{$attributes{ "id" }->{elements}}, "meshgradient","mesh","meshrow","meshpatch";
diff --git a/share/attributes/svgprops b/share/attributes/svgprops
index 38ac4f355..69d13c857 100644
--- a/share/attributes/svgprops
+++ b/share/attributes/svgprops
@@ -304,6 +304,8 @@
"seed" - "feTurbulence"
+"side" - "textPath"
+
"slope" - "font-face","feFuncA","feFuncB","feFuncG","feFuncR"
"spacing" - "textPath"
diff --git a/src/attributes.cpp b/src/attributes.cpp
index 7a3916f6d..fb9b97a15 100644
--- a/src/attributes.cpp
+++ b/src/attributes.cpp
@@ -212,6 +212,7 @@ static SPStyleProp const props[] = {
{SP_ATTR_SODIPODI_LINESPACING, "sodipodi:linespacing"},
/* SPTextPath */
{SP_ATTR_STARTOFFSET, "startOffset"},
+ {SP_ATTR_SIDE, "side"},
/* SPStop */
{SP_ATTR_OFFSET, "offset"},
/* SPFilter */
diff --git a/src/attributes.h b/src/attributes.h
index cecf2673b..caad42f71 100644
--- a/src/attributes.h
+++ b/src/attributes.h
@@ -220,6 +220,7 @@ enum SPAttributeEnum {
SP_ATTR_SODIPODI_LINESPACING,
/* SPTextPath */
SP_ATTR_STARTOFFSET,
+ SP_ATTR_SIDE,
/* SPStop */
SP_ATTR_OFFSET,
/* SPFilter */
diff --git a/testfiles/src/attributes-test.cpp b/testfiles/src/attributes-test.cpp
index da9a8d592..e6fbe8ece 100644
--- a/testfiles/src/attributes-test.cpp
+++ b/testfiles/src/attributes-test.cpp
@@ -278,6 +278,7 @@ std::vector<AttributeInfo> getKnownAttrs()
AttributeInfo("shape-subtract", true),
AttributeInfo("shape-padding", true),
AttributeInfo("shape-rendering", true),
+ AttributeInfo("side", true),
AttributeInfo("slope", true),
AttributeInfo("solid-color", true), // SVG 2.0
AttributeInfo("solid-opacity", true), // SVG 2.0