Lines Matching defs:css

6  * sp-css-attr.h and node.h
25 #include "svg/css-ostringstream.h"
30 #include "xml/sp-css-attr.h"
44 : SimpleNode(g_quark_from_static_string("css"), doc) {}
54 static void sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr);
71 void sp_repr_css_attr_unref(SPCSSAttr *css)
73 g_assert(css != NULL);
74 Inkscape::GC::release((Node *) css);
88 SPCSSAttr *css = sp_repr_css_attr_new();
89 sp_repr_css_add_components(css, repr, attr);
90 return css;
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);
186 SPCSSAttr *css = sp_repr_css_attr_new();
188 sp_repr_css_attr_inherited_recursive(css, repr, attr);
190 return css;
198 static void sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr)
200 g_assert(css != NULL);
205 sp_repr_css_attr_add_from_string(css, data);
212 char const *sp_repr_css_property(SPCSSAttr *css, gchar const *name, gchar const *defval)
214 g_assert(css != NULL);
217 char const *attr = ((Node *)css)->attribute(name);
226 bool sp_repr_css_property_is_unset(SPCSSAttr *css, gchar const *name)
228 g_assert(css != NULL);
231 char const *attr = ((Node *)css)->attribute(name);
239 void sp_repr_css_set_property(SPCSSAttr *css, gchar const *name, gchar const *value)
241 g_assert(css != NULL);
244 ((Node *) css)->setAttribute(name, value, false);
250 void sp_repr_css_unset_property(SPCSSAttr *css, gchar const *name)
252 g_assert(css != NULL);
255 ((Node *) css)->setAttribute(name, "inkscape:unset", false);
261 double sp_repr_css_double_property(SPCSSAttr *css, gchar const *name, double defval)
263 g_assert(css != NULL);
267 sp_repr_get_double((Node *) css, name, &val);
274 void sp_repr_css_write_string(SPCSSAttr *css, Glib::ustring &str)
277 for ( List<AttributeRecord const> iter = css->attributeList() ;
297 void sp_repr_css_set(Node *repr, SPCSSAttr *css, gchar const *attr)
300 g_assert(css != NULL);
304 sp_repr_css_write_string(css, value);
318 void sp_repr_css_print(SPCSSAttr *css)
320 for ( List<AttributeRecord const> iter = css->attributeList() ;
347 static void sp_repr_css_merge_from_decl(SPCSSAttr *css, CRDeclaration const *const decl)
405 ((Node *) css)->setAttribute(decl->property->stryng->str, os.str().c_str(), false);
413 static void sp_repr_css_merge_from_decl_list(SPCSSAttr *css, CRDeclaration const *const decl_list)
418 sp_repr_css_merge_from_decl(css, decl_list);
420 sp_repr_css_merge_from_decl_list(css, decl_list->next);
428 void sp_repr_css_attr_add_from_string(SPCSSAttr *css, gchar const *p)
434 sp_repr_css_merge_from_decl_list(css, decl_list);
445 void sp_repr_css_change(Node *repr, SPCSSAttr *css, gchar const *attr)
448 g_assert(css != NULL);
452 sp_repr_css_merge(current, css);
458 void sp_repr_css_change_recursive(Node *repr, SPCSSAttr *css, gchar const *attr)
461 g_assert(css != NULL);
464 sp_repr_css_change(repr, css, attr);
467 sp_repr_css_change_recursive(child, css, attr);