summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-tspan.cpp')
-rw-r--r--src/sp-tspan.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp
index e9cc6f161..29786f244 100644
--- a/src/sp-tspan.cpp
+++ b/src/sp-tspan.cpp
@@ -43,6 +43,20 @@
#include "xml/repr.h"
#include "document.h"
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createTSpan() {
+ return new SPTSpan();
+ }
+
+ SPObject* createTextPath() {
+ return new SPTextPath();
+ }
+
+ bool tspanRegistered = SPFactory::instance().registerObject("svg:tspan", createTSpan);
+ bool textPathRegistered = SPFactory::instance().registerObject("svg:textPath", createTextPath);
+}
/*#####################################################
# SPTSPAN