From: mfloryan Date: Wed, 23 Apr 2008 15:42:42 +0000 (+0000) Subject: Fixed some further issues with Internal extensions after the introduction of schema... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=840c7e40984a84ece8179242a97caa01b52810d9;p=inkscape.git Fixed some further issues with Internal extensions after the introduction of schema for INX files (the boolean values now spelled in lower case). This fixes an intermediate problem of Inkscape concerning its native SVG files as a loosy format. --- diff --git a/src/extension/internal/emf-win32-print.cpp b/src/extension/internal/emf-win32-print.cpp index 3d18e73b4..bb82183fd 100644 --- a/src/extension/internal/emf-win32-print.cpp +++ b/src/extension/internal/emf-win32-print.cpp @@ -773,8 +773,8 @@ PrintEmfWin32::init (void) "Enhanced Metafile Print\n" "org.inkscape.print.emf.win32\n" "\n" - "TRUE\n" - "TRUE\n" + "true\n" + "true\n" "\n" "", new PrintEmfWin32()); diff --git a/src/extension/internal/eps-out.cpp b/src/extension/internal/eps-out.cpp index 550043c96..c08bd1de6 100644 --- a/src/extension/internal/eps-out.cpp +++ b/src/extension/internal/eps-out.cpp @@ -88,9 +88,9 @@ EpsOutput::init (void) "\n" "" N_("Encapsulated Postscript Output") "\n" "org.inkscape.output.eps\n" - "FALSE\n" - "TRUE\n" - "FALSE\n" + "false\n" + "true\n" + "false\n" "\n" ".eps\n" "image/x-eps\n" diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp index e14d19929..0795ddbdb 100644 --- a/src/extension/internal/latex-pstricks.cpp +++ b/src/extension/internal/latex-pstricks.cpp @@ -347,7 +347,7 @@ PrintLatex::init (void) "" N_("LaTeX Print") "\n" "" SP_MODULE_KEY_PRINT_LATEX "\n" "\n" - "TRUE\n" + "true\n" "\n" "", new PrintLatex()); diff --git a/src/extension/internal/pdf-cairo.cpp b/src/extension/internal/pdf-cairo.cpp index 0c77c27a6..6669c619a 100644 --- a/src/extension/internal/pdf-cairo.cpp +++ b/src/extension/internal/pdf-cairo.cpp @@ -1054,13 +1054,13 @@ PrintCairoPDF::init(void) "\n" "" N_("PDF Print") "\n" "" SP_MODULE_KEY_PRINT_CAIRO_PDF "\n" - "FALSE\n" + "false\n" "72\n" "| lp\n" - "TRUE\n" - "TRUE\n" - "FALSE\n" - "FALSE\n" + "true\n" + "true\n" + "false\n" + "false\n" "\n" "\n" "", new PrintCairoPDF()); diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index 63361348f..ab52ac280 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -1752,12 +1752,12 @@ PrintPS::init(void) "\n" "" N_("Postscript Print") "\n" "" SP_MODULE_KEY_PRINT_PS "\n" - "FALSE\n" + "false\n" "72\n" "| lp\n" - "TRUE\n" - "TRUE\n" - "FALSE\n" + "true\n" + "true\n" + "false\n" "\n" "", new PrintPS()); } diff --git a/src/extension/internal/svg.cpp b/src/extension/internal/svg.cpp index 1e10a8066..19d770af0 100644 --- a/src/extension/internal/svg.cpp +++ b/src/extension/internal/svg.cpp @@ -73,7 +73,7 @@ Svg::init(void) "image/x-inkscape-svg\n" "" N_("Inkscape SVG (*.svg)") "\n" "" N_("SVG format with Inkscape extensions") "\n" - "FALSE\n" + "false\n" "\n" "", new Svg()); diff --git a/src/extension/internal/svgz.cpp b/src/extension/internal/svgz.cpp index 2761fa1d7..2c15120e7 100644 --- a/src/extension/internal/svgz.cpp +++ b/src/extension/internal/svgz.cpp @@ -66,7 +66,7 @@ Svgz::init(void) "image/x-inkscape-svg-compressed\n" "" N_("Compressed Inkscape SVG (*.svgz)") "\n" "" N_("Inkscape's native file format compressed with GZip") "\n" - "FALSE\n" + "false\n" "\n" "", new Svgz()); diff --git a/src/extension/internal/win32.cpp b/src/extension/internal/win32.cpp index 136463f8f..1d242d80d 100644 --- a/src/extension/internal/win32.cpp +++ b/src/extension/internal/win32.cpp @@ -490,7 +490,7 @@ PrintWin32::init (void) "\n" "" N_("Windows 32-bit Print") "\n" "" SP_MODULE_KEY_PRINT_WIN32 "\n" - "TRUE\n" + "true\n" "\n" "", new PrintWin32()); diff --git a/src/extension/param/bool.cpp b/src/extension/param/bool.cpp index 509ded032..ab90ddaf9 100644 --- a/src/extension/param/bool.cpp +++ b/src/extension/param/bool.cpp @@ -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; diff --git a/src/extension/system.cpp b/src/extension/system.cpp index 16e13c94d..d66655a51 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -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; }