Code

r19076@shi: ted | 2008-04-21 15:42:45 -0700
authorgouldtj <gouldtj@users.sourceforge.net>
Mon, 21 Apr 2008 22:57:53 +0000 (22:57 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Mon, 21 Apr 2008 22:57:53 +0000 (22:57 +0000)
 Core of having a real namespace for Inkscape extensions.
 r19077@shi:  ted | 2008-04-21 15:50:12 -0700
 First layer of adding NS
 r19078@shi:  ted | 2008-04-21 15:56:03 -0700
 Whew, doing the rest of them.

69 files changed:
src/extension/effect.cpp
src/extension/extension.cpp
src/extension/extension.h
src/extension/implementation/script.cpp
src/extension/implementation/xslt.cpp
src/extension/input.cpp
src/extension/internal/bitmap/adaptiveThreshold.cpp
src/extension/internal/bitmap/addNoise.cpp
src/extension/internal/bitmap/blur.cpp
src/extension/internal/bitmap/channel.cpp
src/extension/internal/bitmap/charcoal.cpp
src/extension/internal/bitmap/colorize.cpp
src/extension/internal/bitmap/contrast.cpp
src/extension/internal/bitmap/convolve.cpp
src/extension/internal/bitmap/cycleColormap.cpp
src/extension/internal/bitmap/despeckle.cpp
src/extension/internal/bitmap/edge.cpp
src/extension/internal/bitmap/emboss.cpp
src/extension/internal/bitmap/enhance.cpp
src/extension/internal/bitmap/equalize.cpp
src/extension/internal/bitmap/gaussianBlur.cpp
src/extension/internal/bitmap/implode.cpp
src/extension/internal/bitmap/level.cpp
src/extension/internal/bitmap/levelChannel.cpp
src/extension/internal/bitmap/medianFilter.cpp
src/extension/internal/bitmap/modulate.cpp
src/extension/internal/bitmap/negate.cpp
src/extension/internal/bitmap/normalize.cpp
src/extension/internal/bitmap/oilPaint.cpp
src/extension/internal/bitmap/opacity.cpp
src/extension/internal/bitmap/raise.cpp
src/extension/internal/bitmap/reduceNoise.cpp
src/extension/internal/bitmap/sample.cpp
src/extension/internal/bitmap/shade.cpp
src/extension/internal/bitmap/sharpen.cpp
src/extension/internal/bitmap/solarize.cpp
src/extension/internal/bitmap/spread.cpp
src/extension/internal/bitmap/swirl.cpp
src/extension/internal/bitmap/threshold.cpp
src/extension/internal/bitmap/unsharpmask.cpp
src/extension/internal/bitmap/wave.cpp
src/extension/internal/bluredge.cpp
src/extension/internal/cairo-pdf-out.cpp
src/extension/internal/cairo-png-out.cpp
src/extension/internal/cairo-ps-out.cpp
src/extension/internal/cairo-renderer-pdf-out.cpp
src/extension/internal/emf-win32-inout.cpp
src/extension/internal/emf-win32-print.cpp
src/extension/internal/eps-out.cpp
src/extension/internal/gdkpixbuf-input.cpp
src/extension/internal/gimpgrad.cpp
src/extension/internal/grid.cpp
src/extension/internal/latex-pstricks-out.cpp
src/extension/internal/latex-pstricks.cpp
src/extension/internal/odf.cpp
src/extension/internal/pdf-cairo.cpp
src/extension/internal/pdf-input-cairo.cpp
src/extension/internal/pdfinput/pdf-input.cpp
src/extension/internal/pov-out.cpp
src/extension/internal/ps-out.cpp
src/extension/internal/ps.cpp
src/extension/internal/svg.cpp
src/extension/internal/svgz.cpp
src/extension/internal/win32.cpp
src/extension/internal/wpg-input.cpp
src/extension/output.cpp
src/extension/param/notebook.cpp
src/extension/param/radiobutton.cpp
src/extension/system.cpp

index 2010e253a6429d0e3831edd256b8a53615cd3f81..615aeac7ae90d4ec006ea92d49f6992eee4597f7 100644 (file)
@@ -52,7 +52,7 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
     if (repr != NULL) {
 
         for (Inkscape::XML::Node *child = sp_repr_children(repr); child != NULL; child = child->next()) {
-            if (!strcmp(child->name(), "effect")) {
+            if (!strcmp(child->name(), INKSCAPE_EXTENSION_NS "effect")) {
                 if (child->attribute("needs-document") && !strcmp(child->attribute("needs-document"), "false")) {
                   no_doc = true;
                 }
@@ -60,20 +60,20 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
                   no_live_preview = true;
                 }
                 for (Inkscape::XML::Node *effect_child = sp_repr_children(child); effect_child != NULL; effect_child = effect_child->next()) {
-                    if (!strcmp(effect_child->name(), "effects-menu")) {
+                    if (!strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "effects-menu")) {
                         // printf("Found local effects menu in %s\n", this->get_name());
                         local_effects_menu = sp_repr_children(effect_child);
                         if (effect_child->attribute("hidden") && !strcmp(effect_child->attribute("hidden"), "true")) {
                             hidden = true;
                         }
                     }
-                    if (!strcmp(effect_child->name(), "menu-name") ||
-                            !strcmp(effect_child->name(), "_menu-name")) {
+                    if (!strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "menu-name") ||
+                            !strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "_menu-name")) {
                         // printf("Found local effects menu in %s\n", this->get_name());
                         _verb.set_name(sp_repr_children(effect_child)->content());
                     }
-                    if (!strcmp(effect_child->name(), "menu-tip") ||
-                            !strcmp(effect_child->name(), "_menu-tip")) {
+                    if (!strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "menu-tip") ||
+                            !strcmp(effect_child->name(), INKSCAPE_EXTENSION_NS "_menu-tip")) {
                         // printf("Found local effects menu in %s\n", this->get_name());
                         _verb.set_tip(sp_repr_children(effect_child)->content());
                     }
index 1229749f5339d73acb616da57b36ce6a688d018f..52d5f5148b540e3915a1bf1f5354ca2764dad108 100644 (file)
@@ -79,6 +79,9 @@ Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementat
         /* TODO: Handle what happens if we don't have these two */
         while (child_repr != NULL) {
             char const * chname = child_repr->name();
+                       if (!strncmp(chname, INKSCAPE_EXTENSION_NS_NC, strlen(INKSCAPE_EXTENSION_NS_NC))) {
+                               chname += strlen(INKSCAPE_EXTENSION_NS);
+                       }
             if (chname[0] == '_') /* Allow _ for translation of tags */
                 chname++;
             if (!strcmp(chname, "id")) {
index 6cdb1f44c1b7ca531c8713ef7c37fc10b9349ef0..b05f67c5d90a6ca86dcdf6f970e0dabbf7b79726 100644 (file)
 /** Name of the extension error file */
 #define EXTENSION_ERROR_LOG_FILENAME  "extension-errors.log"
 
+
+#define INKSCAPE_EXTENSION_URI   "http://www.inkscape.org/namespace/inkscape/extension"
+#define INKSCAPE_EXTENSION_NS_NC "extension"
+#define INKSCAPE_EXTENSION_NS    "extension:"
+
 namespace Inkscape {
 namespace Extension {
 
index cededca516c13fe2abb8b4e9d310dcdae090d687..67e35149685bd71aabb6e13dc658b92abaaf4063 100644 (file)
@@ -366,10 +366,10 @@ Script::load(Inkscape::Extension::Extension *module)
     /* This should probably check to find the executable... */
     Inkscape::XML::Node *child_repr = sp_repr_children(module->get_repr());
     while (child_repr != NULL) {
-        if (!strcmp(child_repr->name(), "script")) {
+        if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "script")) {
             child_repr = sp_repr_children(child_repr);
             while (child_repr != NULL) {
-                if (!strcmp(child_repr->name(), "command")) {
+                if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "command")) {
                     const gchar *interpretstr = child_repr->attribute("interpreter");
                     if (interpretstr != NULL) {
                         Glib::ustring interpString =
@@ -383,7 +383,7 @@ Script::load(Inkscape::Extension::Extension *module)
 
                     command.insert(command.end(), tmp);
                 }
-                if (!strcmp(child_repr->name(), "helper_extension")) {
+                if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "helper_extension")) {
                     helper_extension = sp_repr_children(child_repr)->content();
                 }
                 child_repr = sp_repr_next(child_repr);
@@ -427,12 +427,14 @@ Script::unload(Inkscape::Extension::Extension */*module*/)
 bool
 Script::check(Inkscape::Extension::Extension *module)
 {
+       int script_count = 0;
     Inkscape::XML::Node *child_repr = sp_repr_children(module->get_repr());
     while (child_repr != NULL) {
-        if (!strcmp(child_repr->name(), "script")) {
+        if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "script")) {
+                       script_count++;
             child_repr = sp_repr_children(child_repr);
             while (child_repr != NULL) {
-                if (!strcmp(child_repr->name(), "check")) {
+                if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "check")) {
                     Glib::ustring command_text = solve_reldir(child_repr);
                     if (command_text.size() > 0) {
                         /* I've got the command */
@@ -442,7 +444,7 @@ Script::check(Inkscape::Extension::Extension *module)
                     }
                 }
 
-                if (!strcmp(child_repr->name(), "helper_extension")) {
+                if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "helper_extension")) {
                     gchar const *helper = sp_repr_children(child_repr)->content();
                     if (Inkscape::Extension::db.get(helper) == NULL) {
                         return false;
@@ -457,6 +459,10 @@ Script::check(Inkscape::Extension::Extension *module)
         child_repr = sp_repr_next(child_repr);
     }
 
+       if (script_count == 0) {
+               return false;
+       }
+
     return true;
 }
 
index 8b0ba97a86021037c6b8b504ebd5a3f343ad628b..9540b08e5de3d9860873519435ba985d940c3a35 100644 (file)
@@ -103,10 +103,10 @@ XSLT::load(Inkscape::Extension::Extension *module)
 
     Inkscape::XML::Node *child_repr = sp_repr_children(module->get_repr());
     while (child_repr != NULL) {
-        if (!strcmp(child_repr->name(), "xslt")) {
+        if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "xslt")) {
             child_repr = sp_repr_children(child_repr);
             while (child_repr != NULL) {
-                if (!strcmp(child_repr->name(), "file")) {
+                if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "file")) {
                     _filename = solve_reldir(child_repr);
                 }
                 child_repr = sp_repr_next(child_repr);
index cdc4f32f4f288db3b511c2c9b779ecec80c52175..689c1286f6e96155694f7b13c3868f075e6c976b 100644 (file)
@@ -52,10 +52,13 @@ Input::Input (Inkscape::XML::Node * in_repr, Implementation::Implementation * in
         child_repr = sp_repr_children(repr);
 
         while (child_repr != NULL) {
-            if (!strcmp(child_repr->name(), "input")) {
+            if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "input")) {
                 child_repr = sp_repr_children(child_repr);
                 while (child_repr != NULL) {
                     char const * chname = child_repr->name();
+                                       if (!strncmp(chname, INKSCAPE_EXTENSION_NS_NC, strlen(INKSCAPE_EXTENSION_NS_NC))) {
+                                               chname += strlen(INKSCAPE_EXTENSION_NS);
+                                       }
                     if (chname[0] == '_') /* Allow _ for translation of tags */
                         chname++;
                     if (!strcmp(chname, "extension")) {
index df1c3ea8208db7f040fa16a496574eb214ecc487..8afbaa0ef24b4e1ad798d5d60ea6f96d334d99a7 100644 (file)
@@ -34,7 +34,7 @@ void
 AdaptiveThreshold::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Adaptive Threshold") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.adaptiveThreshold</id>\n"
                        "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"-100\" max=\"100\">5</param>\n"
index 1726ffb4357b0e992cd1818e4c14d57e2c3f3751..d524faafff1bdb6388845fa7f8a2b03ca04f99e5 100644 (file)
@@ -40,7 +40,7 @@ void
 AddNoise::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Add Noise") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.addNoise</id>\n"
                        "<param name=\"noiseType\" gui-text=\"" N_("Type") "\" type=\"enum\" >\n"
index 9349f471096fd73b888bb794d8b231afa3517794..2aab4c012492c3cdf67d386af0d28882caaceb3c 100644 (file)
@@ -33,7 +33,7 @@ void
 Blur::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Blur") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.blur</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"float\" min=\"0\" max=\"100\">1</param>\n"
index 7699365f361fcd3110775bf7d2a8f2a926ab4e3f..77bc875a6af3a353f3a1b453f046686e9a7a9289 100644 (file)
@@ -43,7 +43,7 @@ void
 Channel::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Channel") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.channel</id>\n"
                        "<param name=\"layer\" gui-text=\"" N_("Layer") "\" type=\"enum\" >\n"
index 442a5d480457eb09550a9aadb1008a2d8abf71dd..e5a70737498076297830509ef45653526ce52c0b 100644 (file)
@@ -33,7 +33,7 @@ void
 Charcoal::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Charcoal") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.charcoal</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"float\" min=\"0\" max=\"100\">1</param>\n"
index beb6d823b3603ea4d9f04aeb9a8050701612fca4..33020ef43c95f377f337e88c1013584c24b8748e 100644 (file)
@@ -45,7 +45,7 @@ void
 Colorize::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Colorize") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.colorize</id>\n"
                        "<param name=\"color\" gui-text=\"" N_("Color") "\" type=\"color\">0</param>\n"
index f4803dda46fbd45f22aad84d821c9da2d96275b7..b024c851587cca087d2a6851e1555c9487b23e9f 100644 (file)
@@ -32,7 +32,7 @@ void
 Contrast::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Contrast") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.contrast</id>\n"
                        "<param name=\"sharpen\" gui-text=\"" N_("Sharpen") "\" type=\"int\" min=\"0\" max=\"100\">1</param>\n"
index 83066cce95284aaa521e9568b86abea1b64d3a6c..2a27fc1ed49a24b97711cf6c810b402e405ee036 100644 (file)
@@ -45,7 +45,7 @@ void
 Convolve::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
 // TRANSLATORS: see http://docs.gimp.org/en/gimp-tool-convolve.html
                        "<name>" N_("Convolve") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.convolve</id>\n"
index 7282fa52e06c13c7ebba1a3df4da39cd9339a9c9..2efb4445c27e20d9f6c36e0dec8a0cbb40db089a 100644 (file)
@@ -32,7 +32,7 @@ void
 CycleColormap::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Cycle Colormap") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.cycleColormap</id>\n"
                        "<param name=\"amount\" gui-text=\"" N_("Amount") "\" type=\"int\" min=\"0\" max=\"360\">180</param>\n"
index 2a81d1b3d6f0b49b697e225f9035b4337f111c5d..1d4d4a7859424cf03d91e65eacee28156231aff4 100644 (file)
@@ -31,7 +31,7 @@ void
 Despeckle::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Despeckle") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.despeckle</id>\n"
                        "<effect>\n"
index 4bde1a779262cd131394d214632ddf87a647ccfa..0042e54e1ab365bd5c1d7fd157c052c28e8535cc 100644 (file)
@@ -32,7 +32,7 @@ void
 Edge::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Edge") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.edge</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"int\" min=\"0\" max=\"100\">0</param>\n"
index cf47bee9e8d0d48ab13056c9c425f40e982f7af3..f55fbebe931f5561ef571ff88db5a7c27aa53b7f 100644 (file)
@@ -33,7 +33,7 @@ void
 Emboss::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Emboss") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.emboss</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"float\" min=\"0\" max=\"100\">1.0</param>\n"
index 99ac4a171d2dc749083176250b9e6c67891b15db..2a1158d1d90983af05aceca086ca82f71050219c 100644 (file)
@@ -30,7 +30,7 @@ void
 Enhance::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Enhance") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.enhance</id>\n"
                        "<effect>\n"
index 9caf342b0650b6c01a5c303f4427805ac885d549..67f2f5a82d2967ed4cff81ec3e481f3dd15e34fb 100644 (file)
@@ -30,7 +30,7 @@ void
 Equalize::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Equalize") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.equalize</id>\n"
                        "<effect>\n"
index 97a2482cbd21f56ebcca68450acc74a9909e8c86..e5e0db5f4e1b5a5ebe4a1018ecae3e2a2421a393 100644 (file)
@@ -33,7 +33,7 @@ void
 GaussianBlur::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Gaussian Blur") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.gaussianBlur</id>\n"
                        "<param name=\"width\" gui-text=\"" N_("Factor") "\" type=\"float\" min=\"0\" max=\"100\">5.0</param>\n"
index e8fd2201ce58cf7055b2cefa8811571c4051c249..75fa1b87162f1f031931a6d567ce102070051904 100644 (file)
@@ -32,7 +32,7 @@ void
 Implode::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Implode") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.implode</id>\n"
                        "<param name=\"factor\" gui-text=\"" N_("Factor") "\" type=\"float\" min=\"0\" max=\"100\">10</param>\n"
index 04f78d7e56a56b3cb3176ee598d93cc383472200..5890aa9f11556b4f11a1a93a5ae07e92df6e9bb2 100644 (file)
@@ -36,7 +36,7 @@ void
 Level::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Level") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.level</id>\n"
                        "<param name=\"blackPoint\" gui-text=\"" N_("Black Point") "\" type=\"float\" min=\"0\" max=\"100\">0</param>\n"                        
index 601e4d6936ecac630bec84137604ed1eb8c4c918..dde0feff771794acf84e212ff8f08247bcaae246 100644 (file)
@@ -47,7 +47,7 @@ void
 LevelChannel::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Level (with Channel)") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.levelChannel</id>\n"
                        "<param name=\"channel\" gui-text=\"" N_("Channel") "\" type=\"enum\" >\n"
index 3255043ce084c6ba4653561e0f25ccabcc166df3..0985be3d67c6a0b63d47d136b25333ff7991ce06 100644 (file)
@@ -32,7 +32,7 @@ void
 MedianFilter::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Median Filter") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.medianFilter</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"float\" min=\"0\" max=\"100\">0</param>\n"                 
index f8dbca86d6aa80c5f160798eee9484bec834974d..d8ea288bab2b0aa508eb25bceb7ff53fd8f8f88f 100644 (file)
@@ -35,7 +35,7 @@ void
 Modulate::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Modulate") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.modulate</id>\n"                        
                        "<param name=\"brightness\" gui-text=\"" N_("Brightness") "\" type=\"float\" min=\"0\" max=\"100\">1</param>\n"
index 8792883dc84366f11e5bef8fd1c34ffc1e5d64b0..0f85ac726c0a1620861a20c5c623d5a004c7c2b5 100644 (file)
@@ -31,7 +31,7 @@ void
 Negate::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Negate") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.negate</id>\n"
                        "<effect>\n"
index 0b2ddb303c32d6a2e653c7c6b396f9362dc2fccf..318afb0dae66dcbf1e00f3236ad3d22c2ddc4022 100644 (file)
@@ -31,7 +31,7 @@ void
 Normalize::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Normalize") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.normalize</id>\n"
                        "<effect>\n"
index 6e8bacdaeb6ac3313c6c65998540823e7d1d295f..5d47efc327565951ac8a4b6211c89e5bbb112e73 100644 (file)
@@ -32,7 +32,7 @@ void
 OilPaint::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Oil Paint") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.oilPaint</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"int\" min=\"0\" max=\"50\">3</param>\n"                    
index e2db6792b3f4715116e1faa8606cb9484aad571e..6033b5129e5d48537b9ed743d5e28c11cce57e15 100644 (file)
@@ -33,7 +33,7 @@ void
 Opacity::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Opacity") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.opacity</id>\n"
                        "<param name=\"opacity\" gui-text=\"" N_("Opacity") "\" type=\"float\" min=\"0.0\" max=\"100.0\">80.0</param>\n"
index d3130a11d6f8c071fec7ddc3b31c7f0a73f6b749..5ae0339b1d5efeb7494f575dd3f963bcf98d796f 100644 (file)
@@ -35,7 +35,7 @@ void
 Raise::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Raise") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.raise</id>\n"
                        "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"0\" max=\"800\">6</param>\n"
index 972ab39be583f2c7c5aade55b8cfea906223736a..6c483291b169b0eed168d6870626000a09ae1e08 100644 (file)
@@ -35,7 +35,7 @@ void
 ReduceNoise::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Reduce Noise") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.reduceNoise</id>\n"
                        "<param name=\"order\" gui-text=\"" N_("Order") "\" type=\"int\" min=\"-1\" max=\"100\">-1</param>\n"
index 9c245432a0eddce5cd6af406ecb9d13d6526bae7..4c2e95a2161cc9c772780f6dd8666cd1addbc854 100644 (file)
@@ -34,7 +34,7 @@ void
 Sample::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Sample") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.sample</id>\n"
                        "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"0\" max=\"6400\">100</param>\n"
index 3ee83b43f5a25667253b1473bfba2fb642e6b8af..709149c540b6006e3e4151914709a9277dda7678 100644 (file)
@@ -35,7 +35,7 @@ void
 Shade::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Shade") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.shade</id>\n"
                        "<param name=\"azimuth\" gui-text=\"" N_("Azimuth") "\" type=\"float\" min=\"-180\" max=\"180\">30</param>\n"
index 4e21017ed0e38ccc9ca412c43fa550484d5df47c..cd87785ecec2c70d3f34a686c94bbda122c52136 100644 (file)
@@ -33,7 +33,7 @@ void
 Sharpen::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Sharpen") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.sharpen</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"float\" min=\"0\" max=\"50\">1.0</param>\n"
index 744b09046c6a5fc4a22ad7381480a2b82e54c0b5..147c4f0b5d1c7b46c800a9696d21685e41906402 100644 (file)
@@ -32,7 +32,7 @@ void
 Solarize::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Solarize") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.solarize</id>\n"
                        "<param name=\"factor\" gui-text=\"" N_("Factor") "\" type=\"float\" min=\"0\" max=\"100\">50</param>\n"
index 1000d304d3788612ecb132c535e915b42554d447..60b4550dee7ab4b6931094a65db5d85f6e9b5549 100644 (file)
@@ -32,7 +32,7 @@ void
 Spread::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Spread") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.spread</id>\n"
                        "<param name=\"amount\" gui-text=\"" N_("Amount") "\" type=\"int\" min=\"0\" max=\"100\">3</param>\n"
index 668528616fb616afda55ccce0639372e6f7f456c..a42047527b621396200a12fb57f87831cd23e550 100644 (file)
@@ -32,7 +32,7 @@ void
 Swirl::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Swirl") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.swirl</id>\n"
                        "<param name=\"degrees\" gui-text=\"" N_("Degrees") "\" type=\"int\" min=\"-360\" max=\"360\">30</param>\n"
index ee920a57ffa7e418237dac8b71b6667598e7c237..8a6c8a6b0bc54def1c6a2bacc5d9fc4b3e1d5694 100644 (file)
@@ -32,7 +32,7 @@ void
 Threshold::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
 // TRANSLATORS: see http://docs.gimp.org/en/gimp-tool-threshold.html
                        "<name>" N_("Threshold") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.threshold</id>\n"
index 1249345ba678bd9a73e7a788077827537a07e677..fe44432ebb397e78f1415e7bcfdda7d0375a7be3 100644 (file)
@@ -36,7 +36,7 @@ void
 Unsharpmask::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Unsharp Mask") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.unsharpmask</id>\n"
                        "<param name=\"radius\" gui-text=\"" N_("Radius") "\" type=\"float\" min=\"0.0\" max=\"50.0\">5.0</param>\n"
index b654fa7e0c249d41e6d3f6d7af6e3b8fcbff0b1f..55993e98233612a3970e220f6b0c7fca90477e08 100644 (file)
@@ -33,7 +33,7 @@ void
 Wave::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Wave") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.wave</id>\n"
                        "<param name=\"amplitude\" gui-text=\"" N_("Amplitude") "\" type=\"float\" min=\"-720.0\" max=\"720.0\">25</param>\n"                   
index 4a732fb495c193e67828fddbe302ac22e8decbaa..f8f2f57bdbbd1f219bdef6860ffd42c7829aebed 100644 (file)
@@ -128,7 +128,7 @@ void
 BlurEdge::init (void)
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("Inset/Outset Halo") "</name>\n"
             "<id>org.inkscape.effect.bluredge</id>\n"
             "<param name=\"blur-width\" gui-text=\"" N_("Width") "\" gui-description=\"" N_("Width in px of the halo") "\" scope=\"document\" type=\"float\" min=\"1.0\" max=\"50.0\">1.0</param>\n"
index 71e9eda171133127d3c0c1ca2e4baf44fba6bb9d..93dad1e6436f9b1bc280d2a693a49007d21209b7 100644 (file)
@@ -235,7 +235,7 @@ void
 CairoPdfOutput::init (void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Cairo PDF Output") "</name>\n"
                        "<id>org.inkscape.output.pdf.cairo</id>\n"
                        "<param name=\"PDFversion\" gui-text=\"" N_("Restrict to PDF version") "\" type=\"enum\" >\n"
index 6fd45d0d5a7afbcb31bda2f7eb90bdcfadad77c8..c9da645f0488778cdb8f35905122ae1bd7b7e894 100644 (file)
@@ -114,7 +114,7 @@ void
 CairoRendererOutput::init (void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>Cairo PNG Output</name>\n"
                        "<id>org.inkscape.output.png.cairo</id>\n"
                        "<output>\n"
index 1a4a4a5760ad7e1e8642652213470639106838be..610f4fb7028ce388a2f5575e8a2f792f784f7d78 100644 (file)
@@ -218,7 +218,7 @@ void
 CairoPsOutput::init (void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Cairo PS Output") "</name>\n"
                        "<id>" SP_MODULE_KEY_PRINT_CAIRO_PS "</id>\n"
                        "<param name=\"PSlevel\" gui-text=\"" N_("Restrict to PS level") "\" type=\"enum\" >\n"
index f1975eb3914f9c563c8075643d7d477c36b56b93..919bcd12ab2743cf895c061430b1d6b9c07c4b0c 100644 (file)
@@ -114,7 +114,7 @@ void
 CairoRendererPdfOutput::init (void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>Cairo PDF Output (experimental)</name>\n"
                        "<id>org.inkscape.output.pdf.cairorenderer</id>\n"
                        "<output>\n"
index 7c0d7e72404e7cb03cd720aac788f54d702202ee..3eac9e5fc61eb21c6c95ff2572e4320b165a9c51 100644 (file)
@@ -1681,7 +1681,7 @@ EmfWin32::init (void)
 
     /* EMF in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("EMF Input") "</name>\n"
             "<id>org.inkscape.input.emf.win32</id>\n"
             "<input>\n"
@@ -1695,7 +1695,7 @@ EmfWin32::init (void)
 
     /* WMF in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("WMF Input") "</name>\n"
             "<id>org.inkscape.input.wmf.win32</id>\n"
             "<input>\n"
@@ -1709,7 +1709,7 @@ EmfWin32::init (void)
 
     /* EMF out */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("EMF Output") "</name>\n"
             "<id>org.inkscape.output.emf.win32</id>\n"
             "<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">true</param>\n"
index 2eac1ad9a5fd3440c6b1971398665a922e49ff45..3d18e73b4113b702441a062a49209a3ba0b1ada1 100644 (file)
@@ -769,7 +769,7 @@ PrintEmfWin32::init (void)
 
     /* EMF print */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
         "<name>Enhanced Metafile Print</name>\n"
         "<id>org.inkscape.print.emf.win32</id>\n"
         "<param name=\"destination\" type=\"string\"></param>\n"
index 4fd5541c23b01d072d6d326b829792fa7bd7a449..550043c9601b6cf88ef5c65075d0e9d564b10aa8 100644 (file)
@@ -85,7 +85,7 @@ void
 EpsOutput::init (void)
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("Encapsulated Postscript Output") "</name>\n"
             "<id>org.inkscape.output.eps</id>\n"
             "<param name=\"pageBoundingBox\" type=\"boolean\" gui-text=\"" N_("Make bounding box around full page") "\">FALSE</param>\n"
index 0b01a6ab1a7ec703ee21e0290807ded2388b9408..14effbeb7a991aaf66c554bf6e910f32b38df394 100644 (file)
@@ -110,7 +110,7 @@ GdkpixbufInput::init(void)
             }
 
             gchar *xmlString = g_strdup_printf(
-                "<inkscape-extension>\n"
+                "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                     "<name>" N_("%s GDK pixbuf Input") "</name>\n"
                     "<id>org.inkscape.input.gdkpixbuf.%s</id>\n"
                     "<input>\n"
index d46c1870a7a0431bd51a354cb59e73d929172ee4..5b3e0c16ef2e37bf7427d6951906fd7777730ed7 100644 (file)
@@ -270,7 +270,7 @@ void
 GimpGrad::init (void)
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("GIMP Gradients") "</name>\n"
             "<id>org.inkscape.input.gimpgrad</id>\n"
             "<input>\n"
index 57b1240352baa18bb209c34ef8d4e01651baf41e..534d4bcda632f96d7dbdd618bb29620c39454b95 100644 (file)
@@ -188,7 +188,7 @@ void
 Grid::init (void)
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("Grid") "</name>\n"
             "<id>org.inkscape.effect.grid</id>\n"
             "<param name=\"lineWidth\" gui-text=\"" N_("Line Width") "\" type=\"float\">1.0</param>\n"
index 48eb475bace3d35ce23ef793f82783b361db1778..2dced1d3213f1034b48d09b79f408c38dcefe4b3 100644 (file)
@@ -102,7 +102,7 @@ void
 LatexOutput::init (void)
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("LaTeX Output") "</name>\n"
             "<id>org.inkscape.output.latex</id>\n"
             "<output>\n"
index 1baa06991dcfd9ae020fc0098212ea463542c6e6..e14d199291391c91dc3097afadcc10a487829c99 100644 (file)
@@ -343,7 +343,7 @@ PrintLatex::init (void)
        
        /* SVG in */
     ext = Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("LaTeX Print") "</name>\n"
                        "<id>" SP_MODULE_KEY_PRINT_LATEX "</id>\n"
                        "<param name=\"destination\" type=\"string\"></param>\n"
index f94084e4f2d118a2e01a91cf6925630e9a670efd..3123faebbc3904d81bf7f000eae057e6566b2ac3 100644 (file)
@@ -2420,7 +2420,7 @@ void
 OdfOutput::init()
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("OpenDocument Drawing Output") "</name>\n"
             "<id>org.inkscape.output.odf</id>\n"
             "<output>\n"
index f2a8483c27790e352fa5cfdfaedd6984c7e5dbe4..0c77c27a64faf4e7b6261874fead2148d9bed754 100644 (file)
@@ -1051,7 +1051,7 @@ PrintCairoPDF::init(void)
 {
     /* PDF out */
     (void) Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
         "<name>" N_("PDF Print") "</name>\n"
         "<id>" SP_MODULE_KEY_PRINT_CAIRO_PDF "</id>\n"
         "<param name=\"bitmap\" type=\"boolean\">FALSE</param>\n"
index 06b680d2a6c1ebf169d571f39e688f182536277d..937fefb1117636f7c1cba87534697813c7e4960c 100644 (file)
@@ -84,7 +84,7 @@ PdfInputCairo::init(void) {
     Inkscape::Extension::Extension * ext;
 
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>PDF Input</name>\n"
             "<id>org.inkscape.input.pdf</id>\n"
             "<input>\n"
index 4211e86ba849ebc8df1700f10926bd62749b320a..1de74541bb6e2f6013a5cb7757687fca420a1a14 100644 (file)
@@ -726,7 +726,7 @@ PdfInput::init(void) {
 
     /* PDF in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("PDF Input") "</name>\n"
             "<id>org.inkscape.input.pdf</id>\n"
             "<input>\n"
@@ -739,7 +739,7 @@ PdfInput::init(void) {
 
     /* AI in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("AI Input") "</name>\n"
             "<id>org.inkscape.input.ai</id>\n"
             "<input>\n"
index 6c3cf4ea13f61d15af2ecc7b74a8786bf7e4ef18..1e7d505485c14420ec0c686309e2882078cc45b8 100644 (file)
@@ -679,7 +679,7 @@ void
 PovOutput::init()
 {
     Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("PovRay Output") "</name>\n"
             "<id>org.inkscape.output.pov</id>\n"
             "<output>\n"
index 8ccd3b5935e209e90b9e490058e29ca7d5dc3130..1daa6514e39275155916a095f58bd8914b1c1869 100644 (file)
@@ -78,7 +78,7 @@ void
 PsOutput::init (void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Postscript Output") "</name>\n"
                        "<id>org.inkscape.output.ps</id>\n"
                        "<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">true</param>\n"
index e6086aa81c3e9d0525a2c451f7f116847a6a5227..63361348f65c3754968c21f2eab011888885652a 100644 (file)
@@ -1749,7 +1749,7 @@ PrintPS::init(void)
 {
     /* SVG in */
     (void) Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
         "<name>" N_("Postscript Print") "</name>\n"
         "<id>" SP_MODULE_KEY_PRINT_PS "</id>\n"
         "<param name=\"bitmap\" type=\"boolean\">FALSE</param>\n"
index 47f1ce31bfddebd7ac7c67648b862f408b2d63f2..1e10a80663278c85e3aab82f3f9ae2985916d055 100644 (file)
@@ -51,7 +51,7 @@ Svg::init(void)
 
     /* SVG in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVG Input") "</name>\n"
             "<id>" SP_MODULE_KEY_INPUT_SVG "</id>\n"
             "<input>\n"
@@ -65,7 +65,7 @@ Svg::init(void)
 
     /* SVG out Inkscape */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVG Output Inkscape") "</name>\n"
             "<id>" SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE "</id>\n"
             "<output>\n"
@@ -79,7 +79,7 @@ Svg::init(void)
 
     /* SVG out */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVG Output") "</name>\n"
             "<id>" SP_MODULE_KEY_OUTPUT_SVG "</id>\n"
             "<output>\n"
index 98d3fcfb2785d24832943cdfd5f762cabfd62e13..2761fa1d7882e4bb1aa631332bfc186050b6a516 100644 (file)
@@ -43,7 +43,7 @@ Svgz::init(void)
 
     /* SVGZ in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVGZ Input") "</name>\n"
             "<id>" SP_MODULE_KEY_INPUT_SVGZ "</id>\n"
             "<dependency type=\"extension\">" SP_MODULE_KEY_INPUT_SVG "</dependency>\n"
@@ -58,7 +58,7 @@ Svgz::init(void)
 
        /* SVGZ out Inkscape */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVGZ Output") "</name>\n"
             "<id>" SP_MODULE_KEY_OUTPUT_SVGZ_INKSCAPE "</id>\n"
             "<output>\n"
@@ -72,7 +72,7 @@ Svgz::init(void)
 
        /* SVGZ out */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVGZ Output") "</name>\n"
             "<id>" SP_MODULE_KEY_OUTPUT_SVGZ "</id>\n"
             "<output>\n"
index f0d2343e06ba85781d67dfcc2dd5768c78df7162..136463f8fc94c2245f1f07c21092960f34d2b40e 100644 (file)
@@ -487,7 +487,7 @@ PrintWin32::init (void)
 
        /* SVG in */
     ext = Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Windows 32-bit Print") "</name>\n"
                        "<id>" SP_MODULE_KEY_PRINT_WIN32 "</id>\n"
                        "<param name=\"textToPath\" type=\"boolean\">TRUE</param>\n"
index c17eeffe043962204e5186155a15424248e84e29..c37d5705b4bc0b0077fc2506a9b129ed0b6bd79f 100644 (file)
@@ -98,7 +98,7 @@ WpgInput::init(void) {
     Inkscape::Extension::Extension * ext;
 
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("WPG Input") "</name>\n"
             "<id>org.inkscape.input.wpg</id>\n"
             "<input>\n"
index e4a7bc5fc8d02137a2b90648b1ec58a9f725ca42..3220e574aa53c97511b58a102d0316f204c876a6 100644 (file)
@@ -49,10 +49,13 @@ Output::Output (Inkscape::XML::Node * in_repr, Implementation::Implementation *
         child_repr = sp_repr_children(repr);
 
         while (child_repr != NULL) {
-            if (!strcmp(child_repr->name(), "output")) {
+            if (!strcmp(child_repr->name(), INKSCAPE_EXTENSION_NS "output")) {
                 child_repr = sp_repr_children(child_repr);
                 while (child_repr != NULL) {
                     char const * chname = child_repr->name();
+                                       if (!strncmp(chname, INKSCAPE_EXTENSION_NS_NC, strlen(INKSCAPE_EXTENSION_NS_NC))) {
+                                               chname += strlen(INKSCAPE_EXTENSION_NS);
+                                       }
                     if (chname[0] == '_') /* Allow _ for translation of tags */
                         chname++;
                     if (!strcmp(chname, "extension")) {
index 5c4f9675919276a9fb84b933b18cc07ffadca098..1a2623fbfc1536112192ccb6545fc92a8dfef6e1 100644 (file)
@@ -71,6 +71,9 @@ ParamNotebookPage::ParamNotebookPage (const gchar * name, const gchar * guitext,
         Inkscape::XML::Node *child_repr = sp_repr_children(xml);
         while (child_repr != NULL) {
             char const * chname = child_repr->name();
+                       if (!strncmp(chname, INKSCAPE_EXTENSION_NS_NC, strlen(INKSCAPE_EXTENSION_NS_NC))) {
+                               chname += strlen(INKSCAPE_EXTENSION_NS);
+                       }
             if (chname[0] == '_') // Allow _ for translation of tags
                 chname++;
             if (!strcmp(chname, "param") || !strcmp(chname, "_param")) {
@@ -237,6 +240,9 @@ ParamNotebook::ParamNotebook (const gchar * name, const gchar * guitext, const g
         Inkscape::XML::Node *child_repr = sp_repr_children(xml);
         while (child_repr != NULL) {
             char const * chname = child_repr->name();
+                       if (!strncmp(chname, INKSCAPE_EXTENSION_NS_NC, strlen(INKSCAPE_EXTENSION_NS_NC))) {
+                               chname += strlen(INKSCAPE_EXTENSION_NS);
+                       }
             if (chname[0] == '_') // Allow _ for translation of tags
                 chname++;
             if (!strcmp(chname, "page")) {
index 1ab526d191faa23e0f3f3b6aa0ead79953cf4265..ba96486189d79d4176c9578eb526e05f3af501b7 100644 (file)
@@ -71,7 +71,7 @@ ParamRadioButton::ParamRadioButton (const gchar * name, const gchar * guitext, c
         Inkscape::XML::Node *child_repr = sp_repr_children(xml);
         while (child_repr != NULL) {
             char const * chname = child_repr->name();
-            if (!strcmp(chname, "option") || !strcmp(chname, "_option")) {
+            if (!strcmp(chname, INKSCAPE_EXTENSION_NS "option") || !strcmp(chname, INKSCAPE_EXTENSION_NS "_option")) {
                 Glib::ustring * newguitext = NULL;
                 Glib::ustring * newvalue = NULL;
                 const char * contents = sp_repr_children(child_repr)->content();
index b9976595ab67abdde468c008810edc68d0ad3045..16e13c94defaf1c59e2a188f67a91e2f2b770002 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <interface.h>
 
+#include "extension.h"
 #include "db.h"
 #include "input.h"
 #include "output.h"
@@ -390,8 +391,8 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
 
     /* sp_repr_print(repr); */
 
-    if (strcmp(repr->name(), "inkscape-extension")) {
-        g_warning("Extension definition started with <%s> instead of <inkscape-extension>.  Extension will not be created.\n", repr->name());
+    if (strcmp(repr->name(), INKSCAPE_EXTENSION_NS "inkscape-extension")) {
+        g_warning("Extension definition started with <%s> instead of <" INKSCAPE_EXTENSION_NS "inkscape-extension>.  Extension will not be created.\n", repr->name());
         return NULL;
     }
 
@@ -399,19 +400,19 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
     while (child_repr != NULL) {
         char const *element_name = child_repr->name();
         /* printf("Child: %s\n", child_repr->name()); */
-        if (!strcmp(element_name, "input")) {
+        if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "input")) {
             module_functional_type = MODULE_INPUT;
-        } else if (!strcmp(element_name, "output")) {
+        } else if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "output")) {
             module_functional_type = MODULE_OUTPUT;
-        } else if (!strcmp(element_name, "effect")) {
+        } else if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "effect")) {
             module_functional_type = MODULE_FILTER;
-        } else if (!strcmp(element_name, "print")) {
+        } else if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "print")) {
             module_functional_type = MODULE_PRINT;
-        } else if (!strcmp(element_name, "path-effect")) {
+        } else if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "path-effect")) {
             module_functional_type = MODULE_PATH_EFFECT;
-        } else if (!strcmp(element_name, "script")) {
+        } else if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "script")) {
             module_implementation_type = MODULE_EXTENSION;
-        } else if (!strcmp(element_name, "xslt")) {
+        } else if (!strcmp(element_name, INKSCAPE_EXTENSION_NS "xslt")) {
             module_implementation_type = MODULE_XSLT;
 #if 0
         } else if (!strcmp(element_name, "plugin")) {
@@ -496,7 +497,7 @@ build_from_file(gchar const *filename)
 {
     /* TODO: Need to define namespace here, need to write the
        DTD in general for this stuff */
-    Inkscape::XML::Document *doc = sp_repr_read_file(filename, NULL);
+    Inkscape::XML::Document *doc = sp_repr_read_file(filename, INKSCAPE_EXTENSION_URI);
     Extension *ext = build_from_reprdoc(doc, NULL);
     if (ext != NULL)
         Inkscape::GC::release(doc);
@@ -517,7 +518,7 @@ build_from_file(gchar const *filename)
 Extension *
 build_from_mem(gchar const *buffer, Implementation::Implementation *in_imp)
 {
-    Inkscape::XML::Document *doc = sp_repr_read_mem(buffer, strlen(buffer), NULL);
+    Inkscape::XML::Document *doc = sp_repr_read_mem(buffer, strlen(buffer), INKSCAPE_EXTENSION_URI);
     Extension *ext = build_from_reprdoc(doc, in_imp);
     Inkscape::GC::release(doc);
     return ext;