summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-02 17:14:36 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-02 17:14:36 +0000
commitd1af3566872dfff2aeec84859c87f1f8d13f79df (patch)
treef52de634baaf9cce333012b29437979881c7ac22 /src/sp-tspan.cpp
parentAdded new factory for SPObject tree objects. (diff)
downloadinkscape-d1af3566872dfff2aeec84859c87f1f8d13f79df.tar.gz
inkscape-d1af3566872dfff2aeec84859c87f1f8d13f79df.zip
Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewritten, as they aren't real classes.
(bzr r11608.1.69)
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