| /inkscape/src/ |
| H A D | sp-desc.cpp | 13 #include "xml/repr.h" 22 * Writes it's settings to an incoming repr object, if any. 24 Inkscape::XML::Node* SPDesc::write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags) { argument 25 if (!repr) { 26 repr = this->getRepr()->duplicate(doc); 29 SPObject::write(doc, repr, flags); 31 return repr;
|
| H A D | sp-title.cpp | 13 #include "xml/repr.h" 21 Inkscape::XML::Node* SPTitle::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { argument 24 if (!repr) { 25 repr = object->getRepr()->duplicate(xml_doc); 28 SPObject::write(xml_doc, repr, flags); 30 return repr;
|
| H A D | sp-missing-glyph.cpp | 17 #include "xml/repr.h" 34 void SPMissingGlyph::build(SPDocument* doc, Inkscape::XML::Node* repr) { argument 35 SPObject::build(doc, repr); 106 Inkscape::XML::Node* SPMissingGlyph::write(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) { argument 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, "ver [all...] |
| H A D | attribute-rel-util.h | 39 * repr: the root node in a document or any other node. 41 void sp_attribute_clean_tree(Node *repr); 45 * repr: the root node in a document or any other node. 48 void sp_attribute_clean_recursive(Node *repr, unsigned int flags); 53 void sp_attribute_clean_element(Node *repr, unsigned int flags); 58 void sp_attribute_clean_style(Node *repr, unsigned int flags); 63 Glib::ustring sp_attribute_clean_style(Node *repr, gchar const *string, unsigned int flags); 68 void sp_attribute_clean_style(Node* repr, SPCSSAttr *css, unsigned int flags);
|
| H A D | attribute-rel-util.cpp | 49 * repr: the root node in a document or any other node. 51 void sp_attribute_clean_tree(Node *repr) { argument 53 g_return_if_fail (repr != NULL); 58 sp_attribute_clean_recursive( repr, flags ); 65 void sp_attribute_clean_recursive(Node *repr, unsigned int flags) { argument 67 g_return_if_fail (repr != NULL); 69 if( repr->type() == Inkscape::XML::ELEMENT_NODE ) { 70 Glib::ustring element = repr->name(); 74 sp_attribute_clean_element(repr, flags ); 78 for(Node *child=repr 93 sp_attribute_clean_element(Node *repr, unsigned int flags) argument 131 sp_attribute_clean_style(Node *repr, unsigned int flags) argument 157 sp_attribute_clean_style(Node *repr, gchar const *string, unsigned int flags) argument 183 sp_attribute_clean_style(Node* repr, SPCSSAttr *css, unsigned int flags) argument [all...] |
| H A D | sp-anchor.cpp | 18 #include "xml/repr.h" 31 void SPAnchor::build(SPDocument *document, Inkscape::XML::Node *repr) { argument 32 SPGroup::build(document, repr); 80 Inkscape::XML::Node* SPAnchor::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { argument 81 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 82 repr = xml_doc->createElement("svg:a"); 85 repr->setAttribute("xlink:href", this->href); 87 if (repr != this->getRepr()) { 90 COPY_ATTR(repr, this->getRepr(), "xlink:type"); 91 COPY_ATTR(repr, thi [all...] |
| H A D | sp-linear-gradient.cpp | 6 #include "xml/repr.h" 21 void SPLinearGradient::build(SPDocument *document, Inkscape::XML::Node *repr) { argument 22 SPGradient::build(document, repr); 62 * Callback: write attributes to associated repr. 64 Inkscape::XML::Node* SPLinearGradient::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { argument 65 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 66 repr = xml_doc->createElement("svg:linearGradient"); 70 sp_repr_set_svg_double(repr, "x1", this->x1.computed); 74 sp_repr_set_svg_double(repr, "y1", this->y1.computed); 78 sp_repr_set_svg_double(repr, "x [all...] |
| H A D | sp-font.cpp | 17 #include "xml/repr.h" 46 void SPFont::build(SPDocument *document, Inkscape::XML::Node *repr) { argument 47 SPObject::build(document, repr); 171 Inkscape::XML::Node* SPFont::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { argument 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, "ver [all...] |
| H A D | sp-metadata.cpp | 57 void SPMetadata::build(SPDocument* doc, Inkscape::XML::Node* repr) { argument 66 for ( NodeSiblingIterator iter=repr->firstChild() ; iter ; ++iter ) { 72 SPObject::build(doc, repr); 105 Inkscape::XML::Node* SPMetadata::write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags) { argument 108 if ( repr != this->getRepr() ) { 109 if (repr) { 110 repr->mergeFrom(this->getRepr(), "id"); 112 repr = this->getRepr()->duplicate(doc); 116 SPObject::write(doc, repr, flags); 118 return repr; [all...] |
| H A D | sp-glyph-kerning.cpp | 14 #include "xml/repr.h" 34 void SPGlyphKerning::build(SPDocument *document, Inkscape::XML::Node *repr) argument 36 SPObject::build(document, repr); 162 Inkscape::XML::Node* SPGlyphKerning::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) argument 164 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 165 repr = xml_doc->createElement("svg:glyphkerning"); // fix this! 168 if (repr != this->getRepr()) { 171 COPY_ATTR(repr, this->getRepr(), "u1"); 172 COPY_ATTR(repr, this->getRepr(), "g1"); 173 COPY_ATTR(repr, thi [all...] |
| H A D | filter-chemistry.cpp | 33 #include "xml/repr.h" 65 static void set_filter_area(Inkscape::XML::Node *repr, gdouble radius, argument 84 sp_repr_set_svg_double(repr, "x", -xmargin); 85 sp_repr_set_svg_double(repr, "width", 1 + 2 * xmargin); 86 sp_repr_set_svg_double(repr, "y", -ymargin); 87 sp_repr_set_svg_double(repr, "height", 1 + 2 * ymargin); 100 Inkscape::XML::Node *repr; local 101 repr = xml_doc->createElement("svg:filter"); 109 sp_repr_css_change(repr, css, "style"); 113 defs->appendChild(repr); 132 Inkscape::XML::Node *repr; local 206 Inkscape::XML::Node *repr; local 270 Inkscape::XML::Node *repr; local 392 Inkscape::XML::Node *repr = item->style->getFilter()->getRepr()->duplicate(xml_doc); local 419 Inkscape::XML::Node *repr = item->style->getFilter()->getRepr(); local 475 Inkscape::XML::Node *repr = item->style->getFilter()->getRepr(); local [all...] |
| H A D | sp-glyph.cpp | 17 #include "xml/repr.h" 37 void SPGlyph::build(SPDocument *document, Inkscape::XML::Node *repr) argument 39 SPObject::build(document, repr); 243 Inkscape::XML::Node* SPGlyph::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) argument 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, "orientatio [all...] |
| H A D | sp-mesh-patch.cpp | 21 #include "xml/repr.h" 69 void SPMeshpatch::build(SPDocument* doc, Inkscape::XML::Node* repr) { argument 70 SPObject::build(doc, repr); 98 Inkscape::XML::Node* SPMeshpatch::write(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) { argument 99 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 100 repr = xml_doc->createElement("svg:meshpatch"); 103 SPObject::write(xml_doc, repr, flags); 105 return repr; 109 * Virtual write: write object attributes to repr.
|
| H A D | sp-mesh-row.cpp | 20 #include "xml/repr.h" 66 void SPMeshrow::build(SPDocument* doc, Inkscape::XML::Node* repr) { argument 67 SPObject::build(doc, repr); 81 Inkscape::XML::Node* SPMeshrow::write(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) { argument 82 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 83 repr = xml_doc->createElement("svg:meshrow"); 86 SPObject::write(xml_doc, repr, flags); 88 return repr; 92 * Virtual write: write object attributes to repr.
|
| H A D | sp-solid-color.cpp | 17 #include "xml/repr.h" 32 void SPSolidColor::build(SPDocument* doc, Inkscape::XML::Node* repr) { argument 33 SPPaintServer::build(doc, repr); 58 Inkscape::XML::Node* SPSolidColor::write(Inkscape::XML::Document* xml_doc, Inkscape::XML::Node* repr, guint flags) { argument 59 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 60 repr = xml_doc->createElement("svg:solidColor"); 63 SPObject::write(xml_doc, repr, flags); 65 return repr; 78 * Virtual write: write object attributes to repr.
|
| H A D | sp-tag.cpp | 15 #include "xml/repr.h" 59 * our name must be associated with a repr via "sp_object_type_register". Best done through 60 * sp-object-repr.cpp's repr_name_entries array. 63 SPTag::build(SPDocument *document, Inkscape::XML::Node *repr) argument 66 SPObject::build(document, repr); 111 * Writes its settings to an incoming repr object, if any. 114 SPTag::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) argument 116 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 117 repr = doc->createElement("inkscape:tag"); 123 repr [all...] |
| H A D | sp-polyline.cpp | 20 #include "xml/repr.h" 29 void SPPolyLine::build(SPDocument * document, Inkscape::XML::Node * repr) { argument 30 SPShape::build(document, repr); 106 Inkscape::XML::Node* SPPolyLine::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { argument 107 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 108 repr = xml_doc->createElement("svg:polyline"); 111 if (repr != this->getRepr()) { 112 repr->mergeFrom(this->getRepr(), "id"); 115 SPShape::write(xml_doc, repr, flags); 117 return repr; [all...] |
| H A D | sp-font-face.cpp | 21 #include "xml/repr.h" 317 void SPFontFace::build(SPDocument *document, Inkscape::XML::Node *repr) { argument 318 SPObject::build(document, repr); 738 Inkscape::XML::Node* SPFontFace::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { argument 739 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) { 740 repr = xml_doc->createElement("svg:font-face"); 744 //sp_repr_set_svg_double(repr, "font-family", face->font_family); 745 //sp_repr_set_svg_double(repr, "font-style", face->font_style); 746 //sp_repr_set_svg_double(repr, "font-variant", face->font_variant); 747 //sp_repr_set_svg_double(repr, "fon [all...] |
| H A D | sp-script.cpp | 26 void SPScript::build(SPDocument* doc, Inkscape::XML::Node* repr) { argument 27 SPObject::build(doc, repr); 37 * our name must be associated with a repr via "sp_object_type_register". Best done through 38 * sp-object-repr.cpp's repr_name_entries array. 74 Inkscape::XML::Node* SPScript::write(Inkscape::XML::Document* /*doc*/, Inkscape::XML::Node* repr, guint /*flags*/) { argument 75 return repr; 78 //static Inkscape::XML::Node *sp_script_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) 87 if (!repr) { 88 repr = xml_doc->createElement("svg:script"); 100 repr [all...] |
| /inkscape/src/xml/ |
| H A D | node-event-vector.h | 29 inline void sp_repr_synthesize_events (Inkscape::XML::Node *repr, const Inkscape::XML::NodeEventVector *vector, void* data) { argument 30 repr->synthesizeEvents(vector, data); 36 inline void sp_repr_add_listener (Inkscape::XML::Node *repr, const Inkscape::XML::NodeEventVector *vector, void* data) { argument 37 repr->addListener(vector, data); 43 inline void sp_repr_remove_listener_by_data (Inkscape::XML::Node *repr, void* data) { argument 44 repr->removeListenerByData(data); 56 void (* child_added) (Node *repr, Node *child, Node *ref, void* data); 57 void (* child_removed) (Node *repr, Node *child, Node *ref, void* data); 58 void (* attr_changed) (Node *repr, char const *key, char const *oldval, char const *newval, bool is_interactive, void* data); 59 void (* content_changed) (Node *repr, cha [all...] |
| /inkscape/src/widgets/ |
| H A D | sp-xmlview-content.cpp | 34 static void event_content_changed (Inkscape::XML::Node * repr, const gchar * old_content, const gchar * new_content, gpointer data); 44 GtkWidget *sp_xmlview_content_new(Inkscape::XML::Node * repr) argument 55 sp_xmlview_content_set_repr (text, repr); 61 sp_xmlview_content_set_repr (SPXMLViewContent * text, Inkscape::XML::Node * repr) argument 63 if ( repr == text->repr ) return; 64 if (text->repr) { 65 sp_repr_remove_listener_by_data (text->repr, text); 66 Inkscape::GC::release(text->repr); 68 text->repr [all...] |
| H A D | sp-xmlview-attr-list.h | 27 Inkscape::XML::Node * repr; member in struct:SPXMLViewAttrList 38 GtkWidget * sp_xmlview_attr_list_new (Inkscape::XML::Node * repr); 40 #define SP_XMLVIEW_ATTR_LIST_GET_REPR(list) (SP_XMLVIEW_ATTR_LIST (list)->repr) 42 void sp_xmlview_attr_list_set_repr (SPXMLViewAttrList * list, Inkscape::XML::Node * repr);
|
| H A D | sp-xmlview-content.h | 27 Inkscape::XML::Node * repr; member in struct:SPXMLViewContent 37 GtkWidget * sp_xmlview_content_new (Inkscape::XML::Node * repr); 39 #define SP_XMLVIEW_CONTENT_GET_REPR(text) (SP_XMLVIEW_CONTENT (text)->repr) 41 void sp_xmlview_content_set_repr (SPXMLViewContent * text, Inkscape::XML::Node * repr);
|
| /inkscape/src/filters/ |
| H A D | tile.cpp | 17 #include "xml/repr.h" 29 * our name must be associated with a repr via "sp_object_type_register". Best done through 30 * sp-object-repr.cpp's repr_name_entries array. 32 void SPFeTile::build(SPDocument *document, Inkscape::XML::Node *repr) { argument 33 SPFilterPrimitive::build(document, repr); 70 * Writes its settings to an incoming repr object, if any. 72 Inkscape::XML::Node* SPFeTile::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) { argument 73 /* TODO: Don't just clone, but create a new repr node and write all 75 if (!repr) { 76 repr [all...] |
| H A D | distantlight.cpp | 23 #include "xml/repr.h" 38 * our name must be associated with a repr via "sp_object_type_register". Best done through 39 * sp-object-repr.cpp's repr_name_entries array. 41 void SPFeDistantLight::build(SPDocument *document, Inkscape::XML::Node *repr) { argument 42 SPObject::build(document, repr); 136 * Writes its settings to an incoming repr object, if any. 138 Inkscape::XML::Node* SPFeDistantLight::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) { argument 139 if (!repr) { 140 repr = this->getRepr()->duplicate(doc); 144 sp_repr_set_css_double(repr, "azimut [all...] |