r14172 by jghali - add missing sccolormngtenginefactory.h/cpp files

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 18 17:10:17 CEST 2009


Revision: 14172
Author: jghali
Date: 2009-10-18T12:54:55.838360Z
Commit message: add missing sccolormngtenginefactory.h/cpp files

Changeset: 
A  /trunk/Scribus/scribus/colormngt/sccolormngtenginefactory.cpp
A  /trunk/Scribus/scribus/colormngt/sccolormngtenginefactory.h

Diffs:
Index: scribus/colormngt/sccolormngtenginefactory.cpp
===================================================================
--- scribus/colormngt/sccolormngtenginefactory.cpp	(revision 0)
+++ scribus/colormngt/sccolormngtenginefactory.cpp	(revision 14172)
@@ -0,0 +1,23 @@
+/*
+For general Scribus (>=1.3.2) copyright and licensing information please refer
+to the COPYING file provided with the program. Following this notice may exist
+a copyright and/or license notice that predates the release of Scribus 1.3.2
+for which a new license (GPL+exception) is in place.
+*/
+
+#include "sccolormngtenginefactory.h"
+#include "sclcmscolormngtengineimpl.h"
+
+ScColorMngtEngineFactory colorMngtEngineFactory;
+
+ScColorMngtEngine ScColorMngtEngineFactory::createEngine(int engineID)
+{
+	// for now just return default engine
+	return createDefaultEngine();
+}
+
+ScColorMngtEngine ScColorMngtEngineFactory::createDefaultEngine()
+{
+	ScColorMngtEngine lcmsEngine(new ScLcmsColorMngtEngineImpl());
+	return lcmsEngine;
+}
\ No newline at end of file
Index: scribus/colormngt/sccolormngtenginefactory.h
===================================================================
--- scribus/colormngt/sccolormngtenginefactory.h	(revision 0)
+++ scribus/colormngt/sccolormngtenginefactory.h	(revision 14172)
@@ -0,0 +1,22 @@
+/*
+For general Scribus (>=1.3.2) copyright and licensing information please refer
+to the COPYING file provided with the program. Following this notice may exist
+a copyright and/or license notice that predates the release of Scribus 1.3.2
+for which a new license (GPL+exception) is in place.
+*/
+
+#ifndef SCCOLORMNGTENGINEFACTORY_H
+#define SCCOLORMNGTENGINEFACTORY_H
+
+#include "sccolormngtengine.h"
+
+class ScColorMngtEngineFactory
+{
+public:
+	ScColorMngtEngine createEngine(int engineID);
+	ScColorMngtEngine createDefaultEngine();
+};
+
+extern ScColorMngtEngineFactory colorMngtEngineFactory;
+
+#endif




More information about the scribus-commit mailing list