Lines Matching refs:XML
2 * @brief C facade to Inkscape::XML::Node
50 Inkscape::XML::Document *sp_repr_document_new(char const *rootname);
54 Inkscape::XML::Document *sp_repr_read_file(char const *filename, char const *default_ns);
55 Inkscape::XML::Document *sp_repr_read_mem(char const *buffer, int length, char const *default_ns);
56 void sp_repr_write_stream(Inkscape::XML::Node *repr, Inkscape::IO::Writer &out,
61 Inkscape::XML::Document *sp_repr_read_buf (const Glib::ustring &buf, const char *default_ns);
62 Glib::ustring sp_repr_save_buf(Inkscape::XML::Document *doc);
65 void sp_repr_save_stream(Inkscape::XML::Document *doc, FILE *to_file,
70 bool sp_repr_save_file(Inkscape::XML::Document *doc, char const *filename, char const *default_ns=NULL);
71 bool sp_repr_save_rebased_file(Inkscape::XML::Document *doc, char const *filename_utf8,
80 SPCSSAttr *sp_repr_css_attr(Inkscape::XML::Node *repr, char const *attr);
82 SPCSSAttr *sp_repr_css_attr_inherited(Inkscape::XML::Node *repr, char const *attr);
91 void sp_repr_css_set(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key);
94 void sp_repr_css_change(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key);
95 void sp_repr_css_change_recursive(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key);
101 inline void sp_repr_unparent(Inkscape::XML::Node *repr) {
103 Inkscape::XML::Node *parent=repr->parent();
110 bool sp_repr_is_meta_element(const Inkscape::XML::Node *node);
113 unsigned sp_repr_get_boolean(Inkscape::XML::Node *repr, char const *key, unsigned *val);
114 unsigned sp_repr_get_int(Inkscape::XML::Node *repr, char const *key, int *val);
115 unsigned sp_repr_get_double(Inkscape::XML::Node *repr, char const *key, double *val);
116 unsigned sp_repr_set_boolean(Inkscape::XML::Node *repr, char const *key, unsigned val);
117 unsigned sp_repr_set_int(Inkscape::XML::Node *repr, char const *key, int val);
118 unsigned sp_repr_set_css_double(Inkscape::XML::Node *repr, char const *key, double val);
119 unsigned sp_repr_set_svg_double(Inkscape::XML::Node *repr, char const *key, double val);
120 unsigned sp_repr_set_svg_length(Inkscape::XML::Node *repr, char const *key, SVGLength &val);
121 unsigned sp_repr_set_point(Inkscape::XML::Node *repr, char const *key, Geom::Point const & val);
122 unsigned sp_repr_get_point(Inkscape::XML::Node *repr, char const *key, Geom::Point *val);
125 int sp_repr_compare_position(Inkscape::XML::Node const *first, Inkscape::XML::Node const *second);
126 bool sp_repr_compare_position_bool(Inkscape::XML::Node const *first, Inkscape::XML::Node const *second);
133 * the first XML node with the specified name.
138 * @return A pointer to the matching Inkscape::XML::Node
139 * @relatesalso Inkscape::XML::Node
141 Inkscape::XML::Node *sp_repr_lookup_name(Inkscape::XML::Node *repr,
145 Inkscape::XML::Node const *sp_repr_lookup_name(Inkscape::XML::Node const *repr,
149 std::vector<Inkscape::XML::Node const *> sp_repr_lookup_name_many(Inkscape::XML::Node const *repr,
153 Inkscape::XML::Node *sp_repr_lookup_child(Inkscape::XML::Node *repr,
158 inline Inkscape::XML::Node *sp_repr_document_first_child(Inkscape::XML::Document const *doc) {
159 return const_cast<Inkscape::XML::Node *>(doc->firstChild());