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-flowtext.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/sp-flowtext.cpp') diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp index 8b6cf4a25..1d08b8256 100644 --- a/src/sp-flowtext.cpp +++ b/src/sp-flowtext.cpp @@ -37,6 +37,16 @@ static void sp_flowtext_init(SPFlowtext *group); static void sp_flowtext_dispose(GObject *object); +#include "sp-factory.h" + +namespace { + SPObject* createFlowtext() { + return new SPFlowtext(); + } + + bool flowtextRegistered = SPFactory::instance().registerObject("svg:flowRoot", createFlowtext); +} + G_DEFINE_TYPE(SPFlowtext, sp_flowtext, G_TYPE_OBJECT); static void -- cgit v1.2.3