Lines Matching refs:repr

17 #include "xml/repr.h"
37 void SPGlyph::build(SPDocument *document, Inkscape::XML::Node *repr)
39 SPObject::build(document, repr);
243 Inkscape::XML::Node* SPGlyph::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
245 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
246 repr = xml_doc->createElement("svg:glyph");
250 repr->setAttribute("unicode", glyph->unicode);
251 repr->setAttribute("glyph-name", glyph->glyph_name);
252 repr->setAttribute("d", glyph->d);
253 sp_repr_set_svg_double(repr, "orientation", (double) glyph->orientation);
254 sp_repr_set_svg_double(repr, "arabic-form", (double) glyph->arabic_form);
255 repr->setAttribute("lang", glyph->lang);
256 sp_repr_set_svg_double(repr, "horiz-adv-x", glyph->horiz_adv_x);
257 sp_repr_set_svg_double(repr, "vert-origin-x", glyph->vert_origin_x);
258 sp_repr_set_svg_double(repr, "vert-origin-y", glyph->vert_origin_y);
259 sp_repr_set_svg_double(repr, "vert-adv-y", glyph->vert_adv_y);
262 if (repr != this->getRepr()) {
265 COPY_ATTR(repr, this->getRepr(), "unicode");
266 COPY_ATTR(repr, this->getRepr(), "glyph-name");
267 COPY_ATTR(repr, this->getRepr(), "d");
268 COPY_ATTR(repr, this->getRepr(), "orientation");
269 COPY_ATTR(repr, this->getRepr(), "arabic-form");
270 COPY_ATTR(repr, this->getRepr(), "lang");
271 COPY_ATTR(repr, this->getRepr(), "horiz-adv-x");
272 COPY_ATTR(repr, this->getRepr(), "vert-origin-x");
273 COPY_ATTR(repr, this->getRepr(), "vert-origin-y");
274 COPY_ATTR(repr, this->getRepr(), "vert-adv-y");
277 SPObject::write(xml_doc, repr, flags);
279 return repr;