/inkscape/share/extensions/ |
H A D | simplepath.py | 171 defs = pathdefs[cmd] 172 for i in range(defs[1]): 173 if defs[3][i] == 'x': 175 elif defs[3][i] == 'y': 180 defs = pathdefs[cmd] 181 for i in range(defs[1]): 182 if defs[3][i] == 'x': 184 elif defs[3][i] == 'y': 186 elif defs[3][i] == 'r': # radius parameter 188 elif defs[ [all...] |
H A D | motion.py | 40 defs = simplepath.pathdefs[cmd] 41 for i in range(defs[1]): 42 if defs[3][i] == 'x': 44 elif defs[3][i] == 'y':
|
H A D | edge3d.py | 115 defs = self.document.getroot().xpath('//svg:defs', namespaces=inkex.NSS) 116 if defs: 117 defs = defs[0] 120 clip = inkex.etree.SubElement(defs,inkex.addNS('clipPath','svg')) 128 filt = inkex.etree.SubElement(defs,inkex.addNS('filter','svg')) 138 # can't find defs, just group paths
|
H A D | dimension.py | 66 defs = self.xpathSingle('/svg:svg//svg:defs') 67 if defs == None: 68 defs = inkex.etree.SubElement(self.document.getroot(),inkex.addNS('defs','svg')) 69 marker = inkex.etree.SubElement(defs ,inkex.addNS('marker','svg'))
|
H A D | markers_strokepaint.py | 74 defs = self.xpathSingle('/svg:svg//svg:defs') 75 if defs == None: 76 defs = inkex.etree.SubElement(self.document.getroot(),inkex.addNS('defs','svg')) 145 defs.append(mnode)
|
H A D | layers2svgfont.py | 59 self.defs = self.get_or_create(self.svg, inkex.addNS('defs', 'svg')) 68 font = self.get_or_create(self.defs, inkex.addNS('font', 'svg'))
|
H A D | svgfont2layers.py | 55 self.defs = self.svg.find(inkex.addNS('defs', 'svg')) 59 font = self.defs.find(inkex.addNS('font', 'svg'))
|
H A D | funcplot.py | 303 defs = self.xpathSingle('/svg:svg//svg:defs') 304 if defs == None: 305 defs = inkex.etree.SubElement(self.document.getroot(),inkex.addNS('defs','svg')) 306 clip = inkex.etree.SubElement(defs,inkex.addNS('clipPath','svg'))
|
H A D | render_alphabetsoup.py | 101 defs = simplepath.pathdefs[cmd] 102 for i in range(defs[1]): 103 if defs[3][i] == 'x': 108 defs = simplepath.pathdefs[cmd] 109 for i in range(defs[1]): 110 if defs[3][i] == 'y':
|
H A D | dxf_input.py | 293 block = inkex.etree.SubElement(defs, 'symbol', {'id': vals[groups['2']][0].replace(" ", "_")}) 297 block = defs # initiallize with dummy 363 defs = inkex.etree.SubElement(doc.getroot(), 'defs', {}) variable 364 marker = inkex.etree.SubElement(defs, 'marker', {'id': 'DistanceX', 'orient': 'auto', 'refX': '0.0', 'refY': '0.0', 'style': 'overflow:visible'}) 366 pattern = inkex.etree.SubElement(defs, 'pattern', {'id': 'Hatch', 'patternUnits': 'userSpaceOnUse', 'width': '8', 'height': '8', 'x': '0', 'y': '0'}) 451 block = defs # initiallize with dummy 480 if block != defs: # in a BLOCK
|
H A D | nicechart.py | 289 # Get defs of Document 290 defs = self.xpathSingle('/svg:svg//svg:defs') 291 if defs == None: 292 defs = inkex.etree.SubElement(self.document.getroot(), inkex.addNS('defs', 'svg')) 295 filt = inkex.etree.SubElement(defs,inkex.addNS('filter', 'svg'))
|
H A D | draw_from_triangle.py | 141 defs = simplepath.pathdefs[cmd] 142 for i in range(defs[1]): 143 if defs[3][i] == 'x' and len(xi) < n:#only collect the first three 145 elif defs[3][i] == 'y' and len(yi) < n:#only collect the first three
|
H A D | generate_voronoi.py | 105 defs = self.xpathSingle('/svg:svg//svg:defs') 106 pattern = inkex.etree.SubElement(defs ,inkex.addNS('pattern','svg'))
|
/inkscape/src/helper/ |
H A D | stock-items.cpp | 74 SPDefs *defs = current_doc->getDefs(); local 77 defs->getRepr()->addChild(mark_repr, NULL); 118 SPDefs *defs = current_doc->getDefs(); local 121 defs->getRepr()->addChild(pat_repr, NULL); 161 SPDefs *defs = current_doc->getDefs(); local 164 defs->getRepr()->addChild(pat_repr, NULL); 200 SPDefs *defs = doc->getDefs(); local 201 if (!defs) { 207 for ( SPObject *child = defs->firstChild(); child; child = child->getNext() ) 219 for ( SPObject *child = defs [all...] |
/inkscape/src/extension/internal/filter/ |
H A D | filter-file.cpp | 102 if (!strcmp(child->name(), "svg:defs")) { 103 for (Inkscape::XML::Node * defs = child->firstChild(); 104 defs != NULL; defs = defs->next()) { 105 if (!strcmp(defs->name(), "svg:filter")) { 106 filters_load_node(defs, menuname); 108 } //defs 109 } // is defs
|
/inkscape/src/extension/ |
H A D | patheffect.cpp | 45 Inkscape::XML::Node * defs = doc->getDefs()->getRepr(); local 53 Inkscape::XML::Node * prefs = sp_repr_lookup_child(defs, "id", &(patheffect[1]));
|
/inkscape/src/extension/internal/ |
H A D | wmf-inout.cpp | 213 does not exist it is added to the hatches list and also entered into <defs>. 248 d->defs += "\n"; 251 d->defs += " <path id=\""; 252 d->defs += hpathname; 253 d->defs += "\" d=\"M 0 0 6 0\" style=\"fill:none;stroke:#"; 254 d->defs += tmpcolor; 255 d->defs += "\" />\n"; 258 d->defs += " <path id=\""; 259 d->defs += hpathname; 260 d->defs [all...] |
H A D | emf-inout.cpp | 236 does not exist it is added to the hatches list and also entered into <defs>. 271 d->defs += "\n"; 274 d->defs += " <path id=\""; 275 d->defs += hpathname; 276 d->defs += "\" d=\"M 0 0 6 0\" style=\"fill:none;stroke:#"; 277 d->defs += tmpcolor; 278 d->defs += "\" />\n"; 281 d->defs += " <path id=\""; 282 d->defs += hpathname; 283 d->defs [all...] |
/inkscape/src/ |
H A D | sp-root.cpp | 23 #include "sp-defs.h" 48 this->defs = NULL; 75 // Search for first <defs> node 78 this->defs = SP_DEFS(o); 89 this->defs = NULL; 176 // We search for first <defs> node - it is not beautiful, but works 179 this->defs = SP_DEFS(c); 188 if (this->defs && (this->defs->getRepr() == child)) { 191 // We search for first remaining <defs> nod [all...] |
H A D | filter-chemistry.cpp | 95 SPDefs *defs = document->getDefs(); local 112 // Append the new filter node to defs 113 defs->appendChild(repr); 201 SPDefs *defs = document->getDefs(); local 238 // Append the new filter node to defs 239 defs->appendChild(repr); 265 SPDefs *defs = document->getDefs(); local 283 // Append the new filter node to defs 284 defs->appendChild(repr); 393 SPDefs *defs local [all...] |
H A D | sp-root.h | 46 * Primary \<defs\> element where we put new defs (patterns, gradients etc.). 48 * At the time of writing, this is chosen as the first \<defs\> child of 51 SPDefs *defs; member in class:SPRoot
|
H A D | document.cpp | 231 return root->defs; 243 // If not, return the first perspective in defs (which may be NULL of none exists) 260 for (SPObject *i = root->defs->firstChild(); i; i = i->getNext() ) { 425 if (!document->root->defs) { 426 Inkscape::XML::Node *r = rdoc->createElement("svg:defs"); 429 g_assert(document->root->defs); 1676 * Paste SVG defs from the document retrieved from the clipboard or imported document into the active document. 1684 std::vector<Inkscape::XML::Node const *> defsNodes = sp_repr_lookup_name_many(root, "svg:defs"); 1688 for (std::vector<Inkscape::XML::Node const *>::iterator defs = defsNodes.begin(); defs ! 1693 importDefsNode(SPDocument *source, Inkscape::XML::Node *defs, Inkscape::XML::Node *target_defs) argument [all...] |
/inkscape/share/filters/ |
H A D | samplify.py | 50 e_defs = addNS('defs', 'svg') 65 for defs in fdoc.getroot().getchildren(): 66 for fi in defs.getchildren(): 109 for defs in fdoc.getroot().getchildren(): 110 for fi in defs.getchildren(): 122 for defs in fdoc.getroot().getchildren(): 123 for fi in defs.getchildren():
|
/inkscape/src/extension/param/ |
H A D | parameter.cpp | 373 Inkscape::XML::Node * defs = doc->getDefs()->getRepr(); local 378 for (Inkscape::XML::Node * child = defs->firstChild(); 391 defs->appendChild(params);
|
/inkscape/src/extension/internal/pdfinput/ |
H A D | svg-builder.cpp | 539 // Append clipPath to defs and get id 737 // Append the pattern to defs 812 Inkscape::XML::Node *defs = _doc->getDefs()->getRepr(); local 813 defs->appendChild(gradient); 1692 * \brief Creates a <mask> with the specified width and height and adds to <defs> 1693 * If we're not the top-level SvgBuilder, creates a <defs> too and adds the mask to it. 1703 // Append mask to defs 1710 Inkscape::XML::Node *defs = _root->firstChild(); local 1711 if ( !( defs && !strcmp(defs [all...] |