Lines Matching refs:attr

6  * sp-css-attr.h and node.h
30 #include "xml/sp-css-attr.h"
54 static void sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr);
83 SPCSSAttr *sp_repr_css_attr(Node *repr, gchar const *attr)
86 g_assert(attr != NULL);
89 sp_repr_css_add_components(css, repr, attr);
167 static void sp_repr_css_attr_inherited_recursive(SPCSSAttr *css, Node *repr, gchar const *attr)
173 sp_repr_css_attr_inherited_recursive(css, parent, attr);
175 sp_repr_css_add_components(css, repr, attr);
181 SPCSSAttr *sp_repr_css_attr_inherited(Node *repr, gchar const *attr)
184 g_assert(attr != NULL);
188 sp_repr_css_attr_inherited_recursive(css, repr, attr);
198 static void sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr)
202 g_assert(attr != NULL);
204 char const *data = repr->attribute(attr);
217 char const *attr = ((Node *)css)->attribute(name);
218 return ( attr == NULL
220 : attr );
231 char const *attr = ((Node *)css)->attribute(name);
232 return (attr && !strcmp(attr, "inkscape:unset"));
297 void sp_repr_css_set(Node *repr, SPCSSAttr *css, gchar const *attr)
301 g_assert(attr != NULL);
312 repr->setAttribute(attr, value.c_str());
445 void sp_repr_css_change(Node *repr, SPCSSAttr *css, gchar const *attr)
449 g_assert(attr != NULL);
451 SPCSSAttr *current = sp_repr_css_attr(repr, attr);
453 sp_repr_css_set(repr, current, attr);
458 void sp_repr_css_change_recursive(Node *repr, SPCSSAttr *css, gchar const *attr)
462 g_assert(attr != NULL);
464 sp_repr_css_change(repr, css, attr);
467 sp_repr_css_change_recursive(child, css, attr);