summaryrefslogtreecommitdiffstats
path: root/src/sp-tref.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-tref.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-tref.cpp')
-rw-r--r--src/sp-tref.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp
index 83b0746d8..22ebb5c17 100644
--- a/src/sp-tref.cpp
+++ b/src/sp-tref.cpp
@@ -35,6 +35,15 @@
#include "xml/node.h"
#include "xml/repr.h"
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createTRef() {
+ return new SPTRef();
+ }
+
+ bool trefRegistered = SPFactory::instance().registerObject("svg:tref", createTRef);
+}
//#define DEBUG_TREF
#ifdef DEBUG_TREF