Lines Matching refs:repr
17 #include "xml/repr.h"
34 void SPMissingGlyph::build(SPDocument* doc, Inkscape::XML::Node* repr) {
35 SPObject::build(doc, repr);
106 Inkscape::XML::Node* SPMissingGlyph::write(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) {
107 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
108 repr = xml_doc->createElement("svg:glyph");
112 repr->setAttribute("d", glyph->d);
113 sp_repr_set_svg_double(repr, "horiz-adv-x", glyph->horiz_adv_x);
114 sp_repr_set_svg_double(repr, "vert-origin-x", glyph->vert_origin_x);
115 sp_repr_set_svg_double(repr, "vert-origin-y", glyph->vert_origin_y);
116 sp_repr_set_svg_double(repr, "vert-adv-y", glyph->vert_adv_y);
118 if (repr != this->getRepr()) {
123 COPY_ATTR(repr, this->getRepr(), "d");
124 COPY_ATTR(repr, this->getRepr(), "horiz-adv-x");
125 COPY_ATTR(repr, this->getRepr(), "vert-origin-x");
126 COPY_ATTR(repr, this->getRepr(), "vert-origin-y");
127 COPY_ATTR(repr, this->getRepr(), "vert-adv-y");
130 SPObject::write(xml_doc, repr, flags);
132 return repr;