Code

Fixed some further issues with Internal extensions after the introduction of schema...
authormfloryan <mfloryan@users.sourceforge.net>
Wed, 23 Apr 2008 15:42:42 +0000 (15:42 +0000)
committermfloryan <mfloryan@users.sourceforge.net>
Wed, 23 Apr 2008 15:42:42 +0000 (15:42 +0000)
src/extension/internal/emf-win32-print.cpp
src/extension/internal/eps-out.cpp
src/extension/internal/latex-pstricks.cpp
src/extension/internal/pdf-cairo.cpp
src/extension/internal/ps.cpp
src/extension/internal/svg.cpp
src/extension/internal/svgz.cpp
src/extension/internal/win32.cpp
src/extension/param/bool.cpp
src/extension/system.cpp

index 3d18e73b4113b702441a062a49209a3ba0b1ada1..bb82183fd8700e45601f19ac4de726390dd81751 100644 (file)
@@ -773,8 +773,8 @@ PrintEmfWin32::init (void)
         "<name>Enhanced Metafile Print</name>\n"
         "<id>org.inkscape.print.emf.win32</id>\n"
         "<param name=\"destination\" type=\"string\"></param>\n"
-        "<param name=\"textToPath\" type=\"boolean\">TRUE</param>\n"
-        "<param name=\"pageBoundingBox\" type=\"boolean\">TRUE</param>\n"
+        "<param name=\"textToPath\" type=\"boolean\">true</param>\n"
+        "<param name=\"pageBoundingBox\" type=\"boolean\">true</param>\n"
         "<print/>\n"
         "</inkscape-extension>", new PrintEmfWin32());
 
index 550043c9601b6cf88ef5c65075d0e9d564b10aa8..c08bd1de65dce86605a178c552c35117eced4935 100644 (file)
@@ -88,9 +88,9 @@ EpsOutput::init (void)
         "<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"
-            "<param name=\"textToPath\" type=\"boolean\" gui-text=\"" N_("Convert texts to paths") "\">TRUE</param>\n"
-            "<param name=\"fontEmbedded\" type=\"boolean\" gui-text=\"" N_("Embed fonts (Type 1 only)") "\">FALSE</param>\n"
+            "<param name=\"pageBoundingBox\" type=\"boolean\" gui-text=\"" N_("Make bounding box around full page") "\">false</param>\n"
+            "<param name=\"textToPath\" type=\"boolean\" gui-text=\"" N_("Convert texts to paths") "\">true</param>\n"
+            "<param name=\"fontEmbedded\" type=\"boolean\" gui-text=\"" N_("Embed fonts (Type 1 only)") "\">false</param>\n"
             "<output>\n"
                 "<extension>.eps</extension>\n"
                 "<mimetype>image/x-eps</mimetype>\n"
index e14d199291391c91dc3097afadcc10a487829c99..0795ddbdb240c606e9ee80cd429a639ffe8037aa 100644 (file)
@@ -347,7 +347,7 @@ PrintLatex::init (void)
                        "<name>" N_("LaTeX Print") "</name>\n"
                        "<id>" SP_MODULE_KEY_PRINT_LATEX "</id>\n"
                        "<param name=\"destination\" type=\"string\"></param>\n"
-                        "<param name=\"textToPath\" type=\"boolean\">TRUE</param>\n"
+                        "<param name=\"textToPath\" type=\"boolean\">true</param>\n"
                        "<print/>\n"
                "</inkscape-extension>", new PrintLatex());
 
index 0c77c27a64faf4e7b6261874fead2148d9bed754..6669c619a0c9e904e9a59b1b6da2be2f67761fda 100644 (file)
@@ -1054,13 +1054,13 @@ PrintCairoPDF::init(void)
         "<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"
+        "<param name=\"bitmap\" type=\"boolean\">false</param>\n"
         "<param name=\"resolution\" type=\"string\">72</param>\n"
         "<param name=\"destination\" type=\"string\">| lp</param>\n"
-        "<param name=\"pageBoundingBox\" type=\"boolean\">TRUE</param>\n"
-        "<param name=\"textToPath\" type=\"boolean\">TRUE</param>\n"
-        "<param name=\"exportDrawing\" type=\"boolean\">FALSE</param>\n"
-        "<param name=\"exportCanvas\" type=\"boolean\">FALSE</param>\n"
+        "<param name=\"pageBoundingBox\" type=\"boolean\">true</param>\n"
+        "<param name=\"textToPath\" type=\"boolean\">true</param>\n"
+        "<param name=\"exportDrawing\" type=\"boolean\">false</param>\n"
+        "<param name=\"exportCanvas\" type=\"boolean\">false</param>\n"
         "<param name=\"exportId\" type=\"string\"></param>\n"
         "<print/>\n"
         "</inkscape-extension>", new PrintCairoPDF());
index 63361348f65c3754968c21f2eab011888885652a..ab52ac280e851cde6c13e1b490faeb01711a3362 100644 (file)
@@ -1752,12 +1752,12 @@ PrintPS::init(void)
         "<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"
+        "<param name=\"bitmap\" type=\"boolean\">false</param>\n"
         "<param name=\"resolution\" type=\"string\">72</param>\n"
         "<param name=\"destination\" type=\"string\">| lp</param>\n"
-        "<param name=\"pageBoundingBox\" type=\"boolean\">TRUE</param>\n"
-        "<param name=\"textToPath\" type=\"boolean\">TRUE</param>\n"
-        "<param name=\"fontEmbedded\" type=\"boolean\">FALSE</param>\n"
+        "<param name=\"pageBoundingBox\" type=\"boolean\">true</param>\n"
+        "<param name=\"textToPath\" type=\"boolean\">true</param>\n"
+        "<param name=\"fontEmbedded\" type=\"boolean\">false</param>\n"
         "<print/>\n"
         "</inkscape-extension>", new PrintPS());
 }
index 1e10a80663278c85e3aab82f3f9ae2985916d055..19d770af0af04e968ff483607fcc11b86fb521da 100644 (file)
@@ -73,7 +73,7 @@ Svg::init(void)
                 "<mimetype>image/x-inkscape-svg</mimetype>\n"
                 "<filetypename>" N_("Inkscape SVG (*.svg)") "</filetypename>\n"
                 "<filetypetooltip>" N_("SVG format with Inkscape extensions") "</filetypetooltip>\n"
-                "<dataloss>FALSE</dataloss>\n"
+                "<dataloss>false</dataloss>\n"
             "</output>\n"
         "</inkscape-extension>", new Svg());
 
index 2761fa1d7882e4bb1aa631332bfc186050b6a516..2c15120e79c084897d327e4b845d8b61ffb87ee9 100644 (file)
@@ -66,7 +66,7 @@ Svgz::init(void)
                 "<mimetype>image/x-inkscape-svg-compressed</mimetype>\n"
                 "<filetypename>" N_("Compressed Inkscape SVG (*.svgz)") "</filetypename>\n"
                 "<filetypetooltip>" N_("Inkscape's native file format compressed with GZip") "</filetypetooltip>\n"
-                "<dataloss>FALSE</dataloss>\n"
+                "<dataloss>false</dataloss>\n"
             "</output>\n"
         "</inkscape-extension>", new Svgz());
 
index 136463f8fc94c2245f1f07c21092960f34d2b40e..1d242d80d8c87c573dcf32627bf37b475b23ae88 100644 (file)
@@ -490,7 +490,7 @@ PrintWin32::init (void)
                "<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"
+                       "<param name=\"textToPath\" type=\"boolean\">true</param>\n"
                        "<print/>\n"
                "</inkscape-extension>", new PrintWin32());
 
index 509ded032dcb37691400e7eb5b2301090fb510f0..ab90ddaf958b49a677943bf648bfb60beac4ccca 100644 (file)
@@ -29,7 +29,7 @@ ParamBool::ParamBool (const gchar * name, const gchar * guitext, const gchar * d
     if (sp_repr_children(xml) != NULL)
         defaultval = sp_repr_children(xml)->content();
 
-    if (defaultval != NULL && (!strcmp(defaultval, "TRUE") || !strcmp(defaultval, "true") || !strcmp(defaultval, "1"))) {
+    if (defaultval != NULL && (!strcmp(defaultval, "true") || !strcmp(defaultval, "true") || !strcmp(defaultval, "1"))) {
         _value = true;
     } else {
         _value = false;
index 16e13c94defaf1c59e2a188f67a91e2f2b770002..d66655a511f409ee8ac8f175361bcf33a9aae018 100644 (file)
@@ -392,7 +392,7 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation
     /* sp_repr_print(repr); */
 
     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());
+        g_warning("Extension definition started with <%s> instead of <" INKSCAPE_EXTENSION_NS "inkscape-extension>.  Extension will not be created. See http://wiki.inkscape.org/wiki/index.php/Extensions for reference.\n", repr->name());
         return NULL;
     }