summaryrefslogtreecommitdiffstats
path: root/src/sp-ellipse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-ellipse.cpp')
-rw-r--r--src/sp-ellipse.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index a2c94c508..66c7a81a8 100644
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
@@ -35,6 +35,28 @@
#define noELLIPSE_VERBOSE
+
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createEllipse() {
+ return new SPEllipse();
+ }
+
+ SPObject* createCircle() {
+ return new SPCircle();
+ }
+
+ SPObject* createArc() {
+ return new SPArc();
+ }
+
+ bool ellipseRegistered = SPFactory::instance().registerObject("svg:ellipse", createEllipse);
+ bool circleRegistered = SPFactory::instance().registerObject("svg:circle", createCircle);
+ bool arcRegistered = SPFactory::instance().registerObject("arc", createArc);
+}
+
+
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif