/inkscape/src/ |
H A D | sp-anchor.cpp | 25 this->href = NULL; 40 this->readAttr( "xlink:href" ); 45 if (this->href) { 46 g_free(this->href); 47 this->href = NULL; 56 g_free(this->href); 57 this->href = g_strdup(value); 85 repr->setAttribute("xlink:href", this->href); 109 if (this->href) { [all...] |
H A D | sp-tag-use.cpp | 31 href = NULL; 57 readAttr( "xlink:href" ); 60 // reading xlink:href will attach ref, and that will cause the changed signal to be emitted, 75 g_free(href); 76 href = NULL; 89 if ( value && href && ( strcmp(value, href) == 0 ) ) { 92 g_free(href); 93 href = NULL; 95 // First, set the href fiel [all...] |
H A D | style.h | 297 SPObject *getFilter() { return (filter.href) ? filter.href->getObject() : NULL; } 298 SPObject const *getFilter() const { return (filter.href) ? filter.href->getObject() : NULL; } 299 char const *getFilterURI() const { return (filter.href) ? filter.href->getURI()->toString() : NULL; } 301 SPPaintServer *getFillPaintServer() { return (fill.value.href) ? fill.value.href->getObject() : NULL; } 302 SPPaintServer const *getFillPaintServer() const { return (fill.value.href) ? fill.value.href [all...] |
H A D | resource-manager.cpp | 131 bool extractFilepath( Glib::ustring const &href, std::string &uri ); 148 bool ResourceManagerImpl::extractFilepath( Glib::ustring const &href, std::string &uri ) argument 154 std::string scheme = Glib::uri_parse_scheme(href); 158 // TODO debug g_message("--- is a file URI [%s]", href.c_str()); 161 uri = Glib::filename_from_uri(href); // TODO see if we can get this to throw 168 uri = Glib::filename_from_utf8( href ); 186 gchar const *href = ir->attribute("xlink:href"); local 187 if ( href && ( uniques.find(href) 313 gchar const *href = ir->attribute("xlink:href"); local [all...] |
H A D | sp-conn-end.cpp | 22 href(NULL), 246 if ( value && href && ( strcmp(value, href) == 0 ) ) { 254 g_free(href); 255 href = NULL; 260 href = g_strdup(value); 275 g_free(href); 276 href = NULL; 293 if (connEnd.href) {
|
H A D | sp-tref.cpp | 55 this->href = NULL; 69 this->readAttr( "xlink:href" ); 83 g_free(this->href); 84 this->href = NULL; 97 } else if (key == SP_ATTR_XLINK_HREF) { // xlink:href 100 g_free(this->href); 101 this->href = NULL; 103 } else if ((this->href && strcmp(value, this->href) != 0) || (!this->href)) { [all...] |
H A D | sp-filter.cpp | 42 static void filter_ref_modified(SPObject *href, guint flags, SPFilter *filter); 51 this->href = new SPFilterReference(this); 52 this->href->changedSignal().connect(sigc::bind(sigc::ptr_fun(filter_ref_changed), this)); 81 this->readAttr( "xlink:href" ); 101 //release href 102 if (this->href) { 104 this->href->detach(); 105 delete this->href; 106 this->href = NULL; 178 this->href [all...] |
H A D | sp-image.cpp | 78 static Inkscape::Pixbuf *sp_image_repr_read_image(gchar const *href, gchar const *absref, gchar const *base ); 126 this->href = 0; 139 this->readAttr( "xlink:href" ); 157 if (this->href) { 158 g_free (this->href); 159 this->href = NULL; 182 g_free (this->href); 183 this->href = (value) ? g_strdup (value) : NULL; 337 if (this->href) { 340 this->getRepr()->attribute("xlink:href"), 542 sp_image_repr_read_image(gchar const *href, gchar const *absref, gchar const *base) argument [all...] |
H A D | sp-anchor.h | 26 char *href; member in class:SPAnchor
|
H A D | sp-conn-end.h | 17 char *href; member in class:SPConnEnd 19 /** Change of href string (not a modification of the attributes of the referrent). */
|
H A D | style-test.h | 248 TSM_ASSERT( cases[i].src, style.fill.value.href ); 249 if ( style.fill.value.href ) { 250 TS_ASSERT_EQUALS( style.fill.value.href->getURI()->toString(), std::string(cases[i].uri) ); 253 TS_ASSERT( !style.fill.value.href || !style.fill.value.href->getObject() );
|
H A D | sp-conn-end-pair.cpp | 62 g_free(this->_connEnd[handle_ix]->href); 63 this->_connEnd[handle_ix]->href = NULL; 289 if (_connEnd[0]->href) { 290 // href begins with a '#' which we don't want. 291 const char *startId = _connEnd[0]->href + 1; 298 if (_connEnd[1]->href) { 299 // href begins with a '#' which we don't want. 300 const char *endId = _connEnd[1]->href + 1;
|
H A D | style-internal.cpp | 1146 // find the object for creating an href (this is done through document but should be done 1150 if( value.href ) { 1152 delete value.href; 1153 value.href = NULL; 1201 // Create href if not done already 1202 if (!value.href && document) { 1203 // std::cout << " Creating value.href" << std::endl; 1204 value.href = new SPPaintServerReference(document); 1206 style->fill_ps_changed_connection = value.href->changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_style_fill_paint_server_ref_changed), style)); 1208 style->stroke_ps_changed_connection = value.href [all...] |
H A D | sp-tag-use.h | 34 gchar *href; member in class:SPTagUse
|
/inkscape/src/xml/ |
H A D | rebase-hrefs.cpp | 18 * Determine if a href needs rebasing. 20 static bool href_needs_rebasing(std::string const &href) argument 24 if ( href.empty() || (href[0] == '#') ) { 31 std::string scheme = Glib::uri_parse_scheme(href); 40 } else if (Glib::path_is_absolute(href)) { 47 * - We assume that if xlink:href is absolute then we honour it in preference to 48 * sodipodi:absref even if sodipodi:absref points to an existing file while xlink:href 49 * doesn't. This is because we aren't aware of any bugs in xlink:href handling when 53 * confident of our handling of xlink:href an 62 calc_abs_href(std::string const &abs_base_dir, std::string const &href, gchar const *const sp_absref) argument 240 std::string href = uri; local [all...] |
/inkscape/src/live_effects/parameter/ |
H A D | path.cpp | 63 href(NULL), 114 if (href) 115 g_free(href); 116 href = g_strdup(strvalue); 120 ref.attach(Inkscape::URI(href)); 145 if (href) { 146 return g_strdup(href); 223 if (!href) { 252 if (!href) { 368 if (href) { [all...] |
H A D | originalpath.h | 27 bool linksToPath() const { return (href != NULL); }
|
H A D | originalpatharray.h | 34 : href(NULL), 41 gchar *href; member in class:Inkscape::LivePathEffect::PathAndDirection
|
/inkscape/share/extensions/ink2canvas/ |
H A D | canvas.py | 67 def createLinearGradient(self, href, x1, y1, x2, y2): 68 data = (href, x1, y1, x2, y2) 72 def createRadialGradient(self, href, cx1, cy1, rx, cx2, cy2, ry): 73 data = (href, cx1, cy1, rx, cx2, cy2, ry) 77 def addColorStop(self, href, pos, color): 78 self.write("%s.addColorStop(%f, %s);" % (href, pos, color)) 88 def setGradient(self, href): 96 self.addColorStop(href, pos, color) 98 return None #href
|
/inkscape/src/filters/ |
H A D | image.cpp | 31 this->href = NULL; 55 this->readAttr( "xlink:href" ); 72 static void sp_feImage_elem_modified(SPObject* /*href*/, guint /*flags*/, SPObject* obj) 98 if (this->href) { 99 g_free(this->href); 101 this->href = (value) ? g_strdup (value) : NULL; 102 if (!this->href) return; 109 Inkscape::URI SVGElem_uri(this->href); 243 nr_image->set_href(this->href);
|
H A D | image.h | 29 gchar *href; member in class:SPFeImage
|
/inkscape/share/extensions/ |
H A D | embedimage.py | 61 xlink = node.get(inkex.addNS('href','xlink')) 65 href=urllib.url2pathname(url.path) 69 # 1. href if absolute 70 # 2. realpath-ified href 72 if (href != None): 73 path=os.path.realpath(href) 84 inkex.errormsg(_('No xlink:href or sodipodi:absref attributes found, or they do not point to an existing file! Unable to embed image.')) 107 node.set(inkex.addNS('href','xlink'), 'data:%s;base64,%s' % (type, base64.encodestring(file)))
|
H A D | embed_raster_in_svg.pl | 29 xlink:href="beer.jpg" 43 xlink:href="data:;base64,... 75 s@\<image\s+((?:(?:\w|\:)+\=\"[^"]*\"\s*)*)xlink\:href=\"([^"]+)\"\s*((?:(?:\w|:)+\=\"[^"]*\"\s*)*)\/>@<imageHOBBITSES $1 $3 ITHURTSUS\"$2\"MYPRECIOUSS />@g; 110 ($data =~ s@ITHURTSUS\"$raster\"MYPRECIOUSS@\n xlink:href=\"data\:$type\;base64,$raster_data_base64\"@) or die "error embedding data for $raster";
|
/inkscape/src/display/ |
H A D | nr-filter-image.h | 37 void set_href(char const *href);
|
/inkscape/src/ui/dialog/ |
H A D | object-attributes.cpp | 47 { N_("Href:"), "xlink:href"}, 65 { N_("URL:"), "xlink:href"}, 144 const gchar *href = ir->attribute("xlink:href"); local 145 if ( (!href) || ((strncmp(href, "data:", 5) == 0)) )
|