Searched refs:defs (Results 1 - 25 of 40) sorted by relevance

12

/inkscape/share/extensions/
H A Dsimplepath.py171 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 Dmotion.py40 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 Dedge3d.py115 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 Ddimension.py66 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 Dmarkers_strokepaint.py74 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 Dlayers2svgfont.py59 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 Dsvgfont2layers.py55 self.defs = self.svg.find(inkex.addNS('defs', 'svg'))
59 font = self.defs.find(inkex.addNS('font', 'svg'))
H A Dfuncplot.py303 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 Drender_alphabetsoup.py101 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 Ddxf_input.py293 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 Dnicechart.py289 # 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 Ddraw_from_triangle.py141 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 Dgenerate_voronoi.py105 defs = self.xpathSingle('/svg:svg//svg:defs')
106 pattern = inkex.etree.SubElement(defs ,inkex.addNS('pattern','svg'))
/inkscape/src/helper/
H A Dstock-items.cpp74 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 Dfilter-file.cpp102 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 Dpatheffect.cpp45 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 Dwmf-inout.cpp213 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 Demf-inout.cpp236 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 Dsp-root.cpp23 #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 Dfilter-chemistry.cpp95 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 Dsp-root.h46 * 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 Ddocument.cpp231 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 Dsamplify.py50 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 Dparameter.cpp373 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 Dsvg-builder.cpp539 // 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...]

Completed in 412 milliseconds

12