summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e38df2f)
raw | patch | inline | side by side (parent: e38df2f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 26 Sep 2007 18:55:41 +0000 (18:55 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 26 Sep 2007 18:55:41 +0000 (18:55 +0000) |
diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp
index 4a46b146df2979da59dfac0b752d79fc9e723c6f..b24bda8e9ed079449b5422e62ba8c32f955441ef 100644 (file)
}
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc);
- if (prefs_get_int_attribute("options.importbitmapsasimages", "value", 1) == 1) {
- // import as <image>
- repr = xml_doc->createElement("svg:image");
- // both are the same, as we don't know our base dir here and cannot relativate href (importer will fixupHrefs):
- repr->setAttribute("xlink:href", uri);
- repr->setAttribute("sodipodi:absref", uri);
-
- sp_repr_set_svg_double(repr, "width", width);
- sp_repr_set_svg_double(repr, "height", height);
-
- } else {
- // import as pattern-filled rect
- Inkscape::XML::Node *pat = xml_doc->createElement("svg:pattern");
- pat->setAttribute("inkscape:collect", "always");
- pat->setAttribute("patternUnits", "userSpaceOnUse");
- sp_repr_set_svg_double(pat, "width", width);
- sp_repr_set_svg_double(pat, "height", height);
- SP_OBJECT_REPR(SP_DOCUMENT_DEFS(doc))->appendChild(pat);
- gchar const *pat_id = pat->attribute("id");
- SPObject *pat_object = doc->getObjectById(pat_id);
-
- Inkscape::XML::Node *im = xml_doc->createElement("svg:image");
- im->setAttribute("xlink:href", uri);
- im->setAttribute("sodipodi:absref", uri);
- sp_repr_set_svg_double(im, "width", width);
- sp_repr_set_svg_double(im, "height", height);
- SP_OBJECT_REPR(pat_object)->addChild(im, NULL);
-
- repr = xml_doc->createElement("svg:rect");
- repr->setAttribute("style", g_strdup_printf("stroke:none;fill:url(#%s)", pat_id));
- sp_repr_set_svg_double(repr, "width", width);
- sp_repr_set_svg_double(repr, "height", height);
- }
+ // import as <image>
+ repr = xml_doc->createElement("svg:image");
+ // both are the same, as we don't know our base dir here and cannot relativate href (importer will fixupHrefs):
+ repr->setAttribute("xlink:href", uri);
+ repr->setAttribute("sodipodi:absref", uri);
+
+ sp_repr_set_svg_double(repr, "width", width);
+ sp_repr_set_svg_double(repr, "height", height);
SP_DOCUMENT_ROOT(doc)->appendChildRepr(repr);
Inkscape::GC::release(repr);
index 137b3f8a2937275fc06e8cbb2af91e90113cc7f0..64b531af5cf4d6c2469f465de167c22e907eff56 100644 (file)
" <group id=\"cloneorphans\" value=\"0\"/>\n"
" <group id=\"stickyzoom\" value=\"0\"/>\n"
" <group id=\"selcue\" value=\"2\"/>\n"
-" <group id=\"importbitmapsasimages\" value=\"1\"/>\n"
" <group id=\"transform\" stroke=\"1\" rectcorners=\"1\" pattern=\"1\" gradient=\"1\" />\n"
" <group id=\"kbselection\" inlayer=\"1\" onlyvisible=\"1\" onlysensitive=\"1\" />\n"
" <group id=\"selection\" layerdeselect=\"1\" />\n"
index a5c071dc3518e4ce0357faa7738dc8f74c9f3c51..436d5cce676b2a02c83326720ae03b8883bfc8f6 100644 (file)
_importexport_export.init("dialogs.export.defaultxdpi", "value", 0.0, 6000.0, 1.0, 1.0, PX_PER_IN, true, false);
_page_importexport.add_line( false, _("Default export resolution:"), _importexport_export, _("dpi"),
_("Default bitmap resolution (in dots per inch) in the Export dialog"), false);
- _importexport_imp_bitmap.init( _("Import bitmap as <image>"), "options.importbitmapsasimages", "value", true);
- _page_importexport.add_line( false, "", _importexport_imp_bitmap, "",
- _("When on, an imported bitmap creates an <image> element; otherwise it is a rectangle with bitmap fill"), true);
_importexport_ocal_url.init("options.ocalurl", "str", true, g_strdup_printf("openclipart.org"));
_page_importexport.add_line( false, _("Open Clip Art Library Server Name:"), _importexport_ocal_url, "",
_("The server name of the Open Clip Art Library webdav server. It's used by the Import and Export to OCAL function."), true);
index 1f53115cada6aee6fa6d7708d64a5a5ccbec8c5b..eff0685691f1741a5fe1cf220f9eb0edd459e11b 100644 (file)
PrefCheckButton _sel_layer_deselects;
PrefSpinButton _importexport_export, _misc_recent, _misc_simpl;
- PrefCheckButton _importexport_imp_bitmap, _misc_comment, _misc_scripts;
+ PrefCheckButton _misc_comment, _misc_scripts;
PrefCheckButton _misc_small_toolbar;
PrefCombo _misc_overs_bitmap;