summaryrefslogtreecommitdiffstats
path: root/src/sp-clippath.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-clippath.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-clippath.cpp')
-rw-r--r--src/sp-clippath.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp
index ff12f9678..496a4ed82 100644
--- a/src/sp-clippath.cpp
+++ b/src/sp-clippath.cpp
@@ -40,6 +40,16 @@ struct SPClipPathView {
static SPClipPathView* sp_clippath_view_new_prepend(SPClipPathView *list, unsigned int key, Inkscape::DrawingItem *arenaitem);
static SPClipPathView* sp_clippath_view_list_remove(SPClipPathView *list, SPClipPathView *view);
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createClipPath() {
+ return new SPClipPath();
+ }
+
+ bool clipPathRegistered = SPFactory::instance().registerObject("svg:clipPath", createClipPath);
+}
+
G_DEFINE_TYPE(SPClipPath, sp_clippath, G_TYPE_OBJECT);
static void