summaryrefslogtreecommitdiffstats
path: root/src/color-profile.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/color-profile.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/color-profile.cpp')
-rw-r--r--src/color-profile.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 63cb3addc..f1d89111d 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -184,6 +184,18 @@ cmsHPROFILE ColorProfileImpl::getNULLProfile() {
#endif // defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
+
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createColorProfile() {
+ return new Inkscape::ColorProfile();
+ }
+
+ bool rectRegistered = SPFactory::instance().registerObject("svg:color-profile", createColorProfile);
+}
+
+
/**
* Register ColorProfile class and return its type.
*/