Lines Matching refs:repr
17 #include "xml/repr.h"
46 void SPFont::build(SPDocument *document, Inkscape::XML::Node *repr) {
47 SPObject::build(document, repr);
171 Inkscape::XML::Node* SPFont::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
172 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
173 repr = xml_doc->createElement("svg:font");
176 sp_repr_set_svg_double(repr, "horiz-origin-x", this->horiz_origin_x);
177 sp_repr_set_svg_double(repr, "horiz-origin-y", this->horiz_origin_y);
178 sp_repr_set_svg_double(repr, "horiz-adv-x", this->horiz_adv_x);
179 sp_repr_set_svg_double(repr, "vert-origin-x", this->vert_origin_x);
180 sp_repr_set_svg_double(repr, "vert-origin-y", this->vert_origin_y);
181 sp_repr_set_svg_double(repr, "vert-adv-y", this->vert_adv_y);
183 if (repr != this->getRepr()) {
186 COPY_ATTR(repr, this->getRepr(), "horiz-origin-x");
187 COPY_ATTR(repr, this->getRepr(), "horiz-origin-y");
188 COPY_ATTR(repr, this->getRepr(), "horiz-adv-x");
189 COPY_ATTR(repr, this->getRepr(), "vert-origin-x");
190 COPY_ATTR(repr, this->getRepr(), "vert-origin-y");
191 COPY_ATTR(repr, this->getRepr(), "vert-adv-y");
194 SPObject::write(xml_doc, repr, flags);
196 return repr;