Lines Matching defs:object
72 SPObject *object = doc->getObjectById(name);
73 if (object && SP_IS_MARKER(object)) {
76 Inkscape::XML::Node *mark_repr = object->getRepr()->duplicate(xml_doc);
116 SPObject *object = doc->getObjectById(name);
117 if (object && SP_IS_PATTERN(object)) {
120 Inkscape::XML::Node *pat_repr = object->getRepr()->duplicate(xml_doc);
123 return object;
159 SPObject *object = doc->getObjectById(name);
160 if (object && SP_IS_GRADIENT(object)) {
163 Inkscape::XML::Node *pat_repr = object->getRepr()->duplicate(xml_doc);
166 return object;
172 // get_stock_item returns a pointer to an instance of the desired stock object in the current doc
173 // if necessary it will import the object. Copes with name clashes through use of the inkscape:stockid property
205 SPObject *object = NULL;
213 object = child;
225 object = child;
237 object = child;
243 if (object == NULL) {
246 object = sp_marker_load_from_svg(name_p, doc);
249 object = sp_pattern_load_from_svg(name_p, doc);
252 object = sp_gradient_load_from_svg(name_p, doc);
259 if (object) {
260 object->getRepr()->setAttribute("inkscape:isstock", "true");
263 return object;
270 SPObject *object = doc->getObjectById(urn);
272 return object;