/inkscape/share/extensions/ |
H A D | merge_styles.py | 29 """Controls the style/css mechanics for this effect""" 49 def css(self, cls): member in class:Style 119 styles.text = (styles.text or "") + "\n" + common.css( newclass )
|
/inkscape/src/svg/ |
H A D | svg-color-test.h | 22 char css[8]; local 24 sp_svg_write_color(css, sizeof(css), rgb24 << 8); 25 TS_ASSERT_EQUALS(sp_svg_read_color(css, 0xff), 28 sp_svg_write_color(css, sizeof(css), rgb24 << 8); 29 TS_ASSERT_EQUALS(sp_svg_read_color(css, 0xff),
|
/inkscape/src/ |
H A D | attribute-rel-util.cpp | 21 #include "attribute-rel-css.h" 80 // Don't remove default css values if element is in <defs> or is a <symbol> 137 SPCSSAttr *css = sp_repr_css_attr( repr, "style" ); local 138 sp_attribute_clean_style(repr, css, flags); 140 // Convert css node's properties data to string and set repr node's attribute "style" to that string. 141 // sp_repr_css_set( repr, css, "style"); // Don't use as it will cause loop. 143 sp_repr_css_write_string(css, value); 150 sp_repr_css_attr_unref( css ); 162 SPCSSAttr *css = sp_repr_css_attr_new(); local 163 sp_repr_css_attr_add_from_string( css, strin 183 sp_attribute_clean_style(Node* repr, SPCSSAttr *css, unsigned int flags) argument [all...] |
H A D | color.cpp | 25 #include "svg/css-ostringstream.h" 196 CSSOStringStream css; local 200 css << tmp; 203 if ( !css.str().empty() ) { 204 css << " "; 206 css << "icc-color(" << icc->colorProfile; 210 css << ", " << *i; 212 css << ')'; 215 return css.str();
|
H A D | filter-chemistry.cpp | 31 #include "svg/css-ostringstream.h" 107 SPCSSAttr *css = sp_repr_css_attr_new(); local 108 sp_repr_css_set_property(css, "color-interpolation-filters", "sRGB"); 109 sp_repr_css_change(repr, css, "style"); 110 sp_repr_css_attr_unref(css); 217 SPCSSAttr *css = sp_repr_css_attr_new(); local 218 sp_repr_css_set_property(css, "color-interpolation-filters", "sRGB"); 219 sp_repr_css_change(repr, css, "style"); 220 sp_repr_css_attr_unref(css); 278 SPCSSAttr *css local 454 SPCSSAttr *css = sp_repr_css_attr_new(); local [all...] |
H A D | id-clash.cpp | 104 SPCSSAttr *css = sp_repr_css_attr(repr_elem, "style"); local 105 if (css) { 108 const gchar *value = sp_repr_css_property(css, attr, NULL);
|
H A D | style-internal.cpp | 42 #include "svg/css-ostringstream.h" 1056 CSSOStringStream css; local 1060 css << "currentColor"; 1062 css << "inherit"; 1066 css << color_buf; 1069 if ( !css.str().empty() ) { 1070 css << " "; 1072 css << "icc-color(" << this->value.color.icc->colorProfile; 1076 css << ", " << *i; 1078 css << ')'; 1285 CSSOStringStream css; local 1557 CSSOStringStream css; local 1959 CSSOStringStream css; local 2330 CSSOStringStream css; local [all...] |
H A D | sp-offset.cpp | 1158 SPCSSAttr *css; local 1166 css = sp_repr_css_attr (offset->sourceRepr , "style"); 1167 val = sp_repr_css_property (css, "fill-rule", NULL);
|
H A D | sp-pattern.cpp | 354 SPCSSAttr *css = sp_repr_css_attr_new(); local 355 sp_repr_css_set_property(css, property, href.c_str()); 356 sp_repr_css_change_recursive(item->getRepr(), css, "style");
|
/inkscape/src/extension/internal/ |
H A D | bluredge.cpp | 87 SPCSSAttr * css = sp_repr_css_attr(new_items[i], "style"); local 88 sp_repr_css_set_property(css, "opacity", opacity_string); 89 sp_repr_css_change(new_items[i], css, "style");
|
H A D | gdkpixbuf-input.cpp | 117 SPCSSAttr *css = sp_repr_css_attr_new(); local 118 sp_repr_css_set_property(css, "image-rendering", scale.c_str()); 119 sp_repr_css_set(image_node, css, "style"); 120 sp_repr_css_attr_unref( css );
|
/inkscape/src/live_effects/ |
H A D | lpe-jointype.cpp | 19 #include "svg/css-ostringstream.h" 91 SPCSSAttr *css = sp_repr_css_attr_new (); local 99 sp_repr_css_set_property (css, "fill", str.c_str()); 104 sp_repr_css_set_property (css, "fill", c); 106 sp_repr_css_set_property (css, "fill", "none"); 109 sp_repr_css_set_property(css, "fill-rule", "nonzero"); 110 sp_repr_css_set_property(css, "stroke", "none"); 112 sp_desktop_apply_css_recursive(item, css, true); 113 sp_repr_css_attr_unref (css); 127 SPCSSAttr *css local [all...] |
H A D | lpe-show_handles.cpp | 66 SPCSSAttr *css = sp_repr_css_attr_new (); local 67 sp_repr_css_set_property (css, "stroke", "black"); 68 sp_repr_css_set_property (css, "stroke-width", "1"); 69 sp_repr_css_set_property (css, "stroke-linecap", "butt"); 70 sp_repr_css_set_property(css, "fill", "none"); 72 sp_desktop_apply_css_recursive(item, css, true); 73 sp_repr_css_attr_unref (css);
|
H A D | lpe-taperstroke.cpp | 30 #include "svg/css-ostringstream.h" 103 SPCSSAttr *css = sp_repr_css_attr_new (); local 111 sp_repr_css_set_property (css, "fill", str.c_str()); 116 sp_repr_css_set_property (css, "fill", c); 118 sp_repr_css_set_property (css, "fill", "none"); 121 sp_repr_css_set_property(css, "fill-rule", "nonzero"); 122 sp_repr_css_set_property(css, "stroke", "none"); 124 sp_desktop_apply_css_recursive(item, css, true); 125 sp_repr_css_attr_unref (css); 141 SPCSSAttr *css local [all...] |
/inkscape/src/ui/dialog/ |
H A D | object-properties.cpp | 529 SPCSSAttr *css = sp_repr_css_attr_new(); local 530 sp_repr_css_set_property(css, "image-rendering", scale.c_str()); 533 sp_repr_css_change(image_node, css, "style"); 537 sp_repr_css_attr_unref(css);
|
H A D | pixelartdialog.cpp | 56 #include "svg/css-ostringstream.h" 453 SPCSSAttr *css = sp_repr_css_attr_new(); local 463 sp_repr_css_set_property(css, "fill", b); 469 sp_repr_css_set_property(css, "fill-opacity", 473 sp_repr_css_set(repr, css, "style"); 474 sp_repr_css_attr_unref(css);
|
H A D | text-edit.cpp | 55 #include "svg/css-ostringstream.h" 495 SPCSSAttr *css = sp_repr_css_attr_new (); local 502 fontlister->fill_css( css, fontspec ); 513 sp_repr_css_set_property (css, "font-size", os.str().c_str()); 518 sp_repr_css_set_property (css, "text-anchor", "start"); 519 sp_repr_css_set_property (css, "text-align", "start"); 521 sp_repr_css_set_property (css, "text-anchor", "middle"); 522 sp_repr_css_set_property (css, "text-align", "center"); 524 sp_repr_css_set_property (css, "text-anchor", "end"); 525 sp_repr_css_set_property (css, "tex 552 SPCSSAttr *css = fillTextStyle (); local 572 SPCSSAttr *css = fillTextStyle (); local [all...] |
/inkscape/src/ui/widget/ |
H A D | object-composite-settings.cpp | 29 #include "svg/css-ostringstream.h" 189 SPCSSAttr *css = sp_repr_css_attr_new (); local 193 sp_repr_css_set_property (css, "opacity", os.str().c_str()); 195 _subject->setCSS(css); 197 sp_repr_css_attr_unref (css);
|
H A D | style-subject.cpp | 12 #include "xml/sp-css-attr.h" 97 void StyleSubject::Selection::setCSS(SPCSSAttr *css) { argument 100 sp_desktop_set_style(desktop, css); 161 void StyleSubject::CurrentLayer::setCSS(SPCSSAttr *css) { argument 164 sp_desktop_apply_css_recursive(layer, css, true);
|
H A D | style-swatch.cpp | 27 #include "xml/sp-css-attr.h" 79 SPCSSAttr *css = val.getInheritedStyle(); local 80 _style_swatch.setStyle(css); 81 sp_repr_css_attr_unref(css); 100 SPCSSAttr *css = prefs->getStyle("/desktop/style"); local 101 if (!css->attributeList()) { 106 sp_repr_css_attr_unref(css); 113 StyleSwatch::StyleSwatch(SPCSSAttr *css, gchar const *main_tip) argument 181 setStyle (css); 250 void StyleSwatch::setStyle(SPCSSAttr *css) argument [all...] |
/inkscape/src/extension/internal/filter/ |
H A D | filter.cpp | 138 SPCSSAttr * css = sp_repr_css_attr(node, "style"); local 139 gchar const * filter = sp_repr_css_property(css, "filter", NULL); 152 sp_repr_css_set_property(css, "filter", url.c_str()); 153 sp_repr_css_set(node, css, "style");
|
/inkscape/src/ui/tools/ |
H A D | mesh-tool.cpp | 955 SPCSSAttr *css = sp_repr_css_attr_new(); local 956 sp_repr_css_set_property(css, "fill-opacity", "1.0"); 962 sp_repr_css_change_recursive((*i)->getRepr(), css, "style");
|
/inkscape/src/widgets/ |
H A D | fill-style.cpp | 347 SPCSSAttr *css = sp_repr_css_attr_new(); local 348 sp_repr_css_set_property(css, "fill-rule", (mode == SPPaintSelector::FILLRULE_EVENODD) ? "evenodd":"nonzero"); 350 sp_desktop_set_style(desktop, css); 352 sp_repr_css_attr_unref(css); 353 css = 0; 494 SPCSSAttr *css = sp_repr_css_attr_new(); local 495 sp_repr_css_set_property(css, (kind == FILL) ? "fill" : "stroke", "none"); 497 sp_desktop_set_style(desktop, css); 499 sp_repr_css_attr_unref(css); 500 css 546 SPCSSAttr *css = 0; local 633 SPCSSAttr *css = sp_repr_css_attr_new(); local 684 SPCSSAttr *css = sp_repr_css_attr_new(); local [all...] |
/inkscape/src/xml/ |
H A D | repr-css.cpp | 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) argument 73 g_assert(css != NULL); 74 Inkscape::GC::release((Node *) css); 88 SPCSSAttr *css = sp_repr_css_attr_new(); local 89 sp_repr_css_add_components(css, rep 167 sp_repr_css_attr_inherited_recursive(SPCSSAttr *css, Node *repr, gchar const *attr) argument 186 SPCSSAttr *css = sp_repr_css_attr_new(); local 198 sp_repr_css_add_components(SPCSSAttr *css, Node *repr, gchar const *attr) argument 212 sp_repr_css_property(SPCSSAttr *css, gchar const *name, gchar const *defval) argument 226 sp_repr_css_property_is_unset(SPCSSAttr *css, gchar const *name) argument 239 sp_repr_css_set_property(SPCSSAttr *css, gchar const *name, gchar const *value) argument 250 sp_repr_css_unset_property(SPCSSAttr *css, gchar const *name) argument 261 sp_repr_css_double_property(SPCSSAttr *css, gchar const *name, double defval) argument 274 sp_repr_css_write_string(SPCSSAttr *css, Glib::ustring &str) argument 297 sp_repr_css_set(Node *repr, SPCSSAttr *css, gchar const *attr) argument 318 sp_repr_css_print(SPCSSAttr *css) argument 347 sp_repr_css_merge_from_decl(SPCSSAttr *css, CRDeclaration const *const decl) argument 413 sp_repr_css_merge_from_decl_list(SPCSSAttr *css, CRDeclaration const *const decl_list) argument 428 sp_repr_css_attr_add_from_string(SPCSSAttr *css, gchar const *p) argument 445 sp_repr_css_change(Node *repr, SPCSSAttr *css, gchar const *attr) argument 458 sp_repr_css_change_recursive(Node *repr, SPCSSAttr *css, gchar const *attr) argument [all...] |
/inkscape/src/libnrtype/ |
H A D | font-lister.cpp | 617 void FontLister::fill_css(SPCSSAttr *css, Glib::ustring fontspec) argument 631 sp_repr_css_set_property(css, "-inkscape-font-specification", fontspec_quoted.c_str()); 635 sp_repr_css_set_property(css, "font-family", family.c_str()); 641 sp_repr_css_set_property(css, "font-weight", "100"); 644 sp_repr_css_set_property(css, "font-weight", "200"); 647 sp_repr_css_set_property(css, "font-weight", "300"); 651 sp_repr_css_set_property(css, "font-weight", "350"); 655 sp_repr_css_set_property(css, "font-weight", "380"); 658 sp_repr_css_set_property(css, "font-weight", "normal"); 661 sp_repr_css_set_property(css, "fon [all...] |