summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-09-26 18:55:41 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-09-26 18:55:41 +0000
commit2321a238075c5174e997670de531b07e15af0cac (patch)
tree155c0fadf2ddddb375b26d1ee6dbd18d1825ad48 /src
parentChanged preference to use file chooser button (diff)
downloadinkscape-2321a238075c5174e997670de531b07e15af0cac.tar.gz
inkscape-2321a238075c5174e997670de531b07e15af0cac.zip
remove obsolete import-as-pattern option
(bzr r3807)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/gdkpixbuf-input.cpp41
-rw-r--r--src/preferences-skeleton.h1
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp3
-rw-r--r--src/ui/dialog/inkscape-preferences.h2
4 files changed, 9 insertions, 38 deletions
diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp
index 4a46b146d..b24bda8e9 100644
--- a/src/extension/internal/gdkpixbuf-input.cpp
+++ b/src/extension/internal/gdkpixbuf-input.cpp
@@ -52,39 +52,14 @@ GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri)
}
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);
diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h
index 137b3f8a2..64b531af5 100644
--- a/src/preferences-skeleton.h
+++ b/src/preferences-skeleton.h
@@ -214,7 +214,6 @@ static char const preferences_skeleton[] =
" <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"
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index a5c071dc3..436d5cce6 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -611,9 +611,6 @@ void InkscapePreferences::initPageImportExport()
_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);
diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h
index 1f53115ca..eff068569 100644
--- a/src/ui/dialog/inkscape-preferences.h
+++ b/src/ui/dialog/inkscape-preferences.h
@@ -158,7 +158,7 @@ protected:
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;