summaryrefslogtreecommitdiffstats
path: root/src/extension/system.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2006-05-02 05:26:13 +0000
committergouldtj <gouldtj@users.sourceforge.net>2006-05-02 05:26:13 +0000
commit422f555591b3b7f2a0157e74cd95f7095f4c1098 (patch)
treeea4b89d6d1942da38ebc7d2af26eb4cf3387fa59 /src/extension/system.cpp
parentr11466@tres: ted | 2006-04-19 21:27:49 -0700 (diff)
downloadinkscape-422f555591b3b7f2a0157e74cd95f7095f4c1098.tar.gz
inkscape-422f555591b3b7f2a0157e74cd95f7095f4c1098.zip
r11467@tres: ted | 2006-04-19 21:49:02 -0700
Adding in the basic support for having an xslt implementation. (bzr r675)
Diffstat (limited to 'src/extension/system.cpp')
-rw-r--r--src/extension/system.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/extension/system.cpp b/src/extension/system.cpp
index f62089369..81bf3075e 100644
--- a/src/extension/system.cpp
+++ b/src/extension/system.cpp
@@ -25,6 +25,7 @@
#include "patheffect.h"
#include "print.h"
#include "implementation/script.h"
+#include "implementation/xslt.h"
/* #include "implementation/plugin.h" */
namespace Inkscape {
@@ -326,6 +327,7 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
{
enum {
MODULE_EXTENSION,
+ MODULE_XSLT,
/* MODULE_PLUGIN, */
MODULE_UNKNOWN_IMP
} module_implementation_type = MODULE_UNKNOWN_IMP;
@@ -365,6 +367,8 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
module_functional_type = MODULE_PATH_EFFECT;
} else if (!strcmp(element_name, "script")) {
module_implementation_type = MODULE_EXTENSION;
+ } else if (!strcmp(element_name, "xslt")) {
+ module_implementation_type = MODULE_XSLT;
#if 0
} else if (!strcmp(element_name, "plugin")) {
module_implementation_type = MODULE_PLUGIN;
@@ -384,6 +388,11 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
imp = static_cast<Implementation::Implementation *>(script);
break;
}
+ case MODULE_XSLT: {
+ Implementation::XSLT *xslt = new Implementation::XSLT();
+ imp = static_cast<Implementation::Implementation *>(xslt);
+ break;
+ }
#if 0
case MODULE_PLUGIN: {
Implementation::Plugin *plugin = new Implementation::Plugin();