Lines Matching refs:css
21 #include "svg/css-ostringstream.h"
43 #include "xml/sp-css-attr.h"
85 SPCSSAttr *css = sp_repr_css_attr_new();
87 sp_repr_css_set_property(css, "fill", b);
90 sp_repr_css_set_property(css, "fill-opacity", osalpha.str().c_str());
92 sp_repr_css_set_property(css, "stroke", b);
95 sp_repr_css_set_property(css, "stroke-opacity", osalpha.str().c_str());
98 sp_desktop_set_style(desktop, css);
100 sp_repr_css_attr_unref(css);
107 sp_desktop_apply_css_recursive(SPObject *o, SPCSSAttr *css, bool skip_lines)
144 sp_repr_css_merge(css_set, css);
167 if (sp_repr_css_property(css, "opacity", NULL) != NULL) {
171 sp_repr_css_merge(css_recurse, css);
176 sp_desktop_apply_css_recursive(child, css, skip_lines);
185 sp_desktop_set_style(SPDesktop *desktop, SPCSSAttr *css, bool change, bool write_current)
190 sp_repr_css_merge(desktop->current, css);
194 sp_repr_css_merge(css_write, css);
216 bool intercepted = desktop->_set_style_signal.emit(css);
234 sp_repr_css_merge(css_no_text, css);
246 if( !sp_repr_css_property_is_unset(css, "font-family") ) {
247 sp_repr_css_unset_property(css, "font");
250 sp_desktop_apply_css_recursive(item, css, true);
268 SPCSSAttr *css = sp_repr_css_attr_new();
269 sp_repr_css_merge(css, desktop->current);
270 if (!css->attributeList()) {
271 sp_repr_css_attr_unref(css);
275 css = sp_css_attr_unset_text(css);
277 return css;
306 SPCSSAttr *css = NULL;
311 css = sp_desktop_get_style(desktop, true);
313 css = prefs->getStyle(tool + "/style");
316 if (css) {
317 gchar const *property = css ? sp_repr_css_property(css, "opacity", "1.000") : 0;
328 sp_repr_css_attr_unref(css);
337 SPCSSAttr *css = NULL;
340 css = sp_desktop_get_style(desktop, true);
342 css = prefs->getStyle(tool + "/style");
345 if (css) {
346 gchar const *property = css ? sp_repr_css_property(css, is_fill ? "fill-opacity": "stroke-opacity", "1.000") : 0;
354 sp_repr_css_attr_unref(css);
364 SPCSSAttr *css = NULL;
369 css = sp_desktop_get_style(desktop, true);
371 css = prefs->getStyle(tool + "/style");
374 if (css) {
375 gchar const *property = sp_repr_css_property(css, is_fill ? "fill" : "stroke", "#000");
386 sp_repr_css_attr_unref(css);
404 SPCSSAttr *css = prefs->getInheritedStyle(tool_path + "/style");
405 sp_repr_css_set(repr, css, "style");
406 sp_repr_css_attr_unref(css);