From d1af3566872dfff2aeec84859c87f1f8d13f79df Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 2 Apr 2013 19:14:36 +0200 Subject: Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewritten, as they aren't real classes. (bzr r11608.1.69) --- src/sp-tspan.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/sp-tspan.cpp') 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 -- cgit v1.2.3