Searched refs:css (Results 1 - 25 of 69) sorted by relevance

123

/inkscape/src/xml/
H A Drepr-css.cpp6 * 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...]
H A Drepr.h79 void sp_repr_css_attr_unref(SPCSSAttr *css);
84 char const *sp_repr_css_property(SPCSSAttr *css, char const *name, char const *defval);
85 void sp_repr_css_set_property(SPCSSAttr *css, char const *name, char const *value);
86 void sp_repr_css_unset_property(SPCSSAttr *css, char const *name);
87 bool sp_repr_css_property_is_unset(SPCSSAttr *css, char const *name);
88 double sp_repr_css_double_property(SPCSSAttr *css, char const *name, double defval);
90 void sp_repr_css_write_string(SPCSSAttr *css, Glib::ustring &str);
91 void sp_repr_css_set(Inkscape::XML::Node *repr, SPCSSAttr *css, char const *key);
93 void sp_repr_css_attr_add_from_string(SPCSSAttr *css, const char *data);
94 void sp_repr_css_change(Inkscape::XML::Node *repr, SPCSSAttr *css, cha
[all...]
/inkscape/src/live_effects/
H A Dlpe-jointype.cpp19 #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 Dlpe-show_handles.cpp66 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 Dlpe-taperstroke.cpp30 #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/widget/
H A Dselected-style.cpp42 #include "svg/css-ostringstream.h"
538 SPCSSAttr *css = sp_repr_css_attr_new(); local
539 sp_repr_css_set_property( css, (tracker->item == SS_FILL) ? "fill":"stroke", c );
540 sp_desktop_set_style( tracker->parent->_desktop, css );
541 sp_repr_css_attr_unref( css );
550 SPCSSAttr *css = sp_repr_css_attr_new (); local
551 sp_repr_css_set_property (css, "fill", "none");
552 sp_desktop_set_style (_desktop, css, true, true);
553 sp_repr_css_attr_unref (css);
559 SPCSSAttr *css local
568 SPCSSAttr *css = sp_repr_css_attr_new (); local
577 SPCSSAttr *css = sp_repr_css_attr_new (); local
593 SPCSSAttr *css = sp_repr_css_attr_new (); local
602 SPCSSAttr *css = sp_repr_css_attr_new (); local
611 SPCSSAttr *css = sp_repr_css_attr_new (); local
623 SPCSSAttr *css = sp_repr_css_attr_new (); local
635 SPCSSAttr *css = sp_repr_css_attr_new (); local
646 SPCSSAttr *css = sp_repr_css_attr_new (); local
657 SPCSSAttr *css = sp_repr_css_attr_new (); local
683 SPCSSAttr *css = sp_repr_css_attr_new (); local
707 SPCSSAttr *css = sp_repr_css_attr_new (); local
719 SPCSSAttr *css = sp_repr_css_attr_new (); local
731 SPCSSAttr *css = sp_repr_css_attr_new (); local
743 SPCSSAttr *css = sp_repr_css_attr_new (); local
817 SPCSSAttr *css = sp_repr_css_attr_new (); local
954 SPCSSAttr *css = sp_repr_css_attr_new (); local
1224 SPCSSAttr *css = sp_repr_css_attr_new (); local
1321 SPCSSAttr *css = sp_repr_css_attr_new (); local
1489 SPCSSAttr *css = sp_repr_css_attr_new (); local
[all...]
H A Dstyle-subject.h46 virtual void setCSS(SPCSSAttr *css) = 0;
69 virtual void setCSS(SPCSSAttr *css);
90 virtual void setCSS(SPCSSAttr *css);
H A Dstyle-subject.cpp12 #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 Dstyle-swatch.cpp27 #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/svg/
H A Dsvg-color-test.h22 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 Dstyle.cpp47 #include "svg/css-ostringstream.h"
1576 // FIXME: Everything below this line belongs in a different file - css-chemistry?
1585 SPCSSAttr *css = sp_repr_css_attr_new();
1588 sp_repr_css_set_property(css, property, val);
1591 sp_repr_css_unset_property(css, "filter");
1595 sp_repr_css_change_recursive(repr, css, "style");
1597 sp_repr_css_change(repr, css, "style");
1599 sp_repr_css_attr_unref(css);
1745 SPCSSAttr *css = sp_repr_css_attr_new(); local
1746 sp_repr_css_attr_add_from_string(css, style_st
1773 sp_css_attr_unset_text(SPCSSAttr *css) argument
1824 sp_css_attr_unset_blacklist(SPCSSAttr *css) argument
1870 sp_css_attr_unset_uris(SPCSSAttr *css) argument
1893 sp_css_attr_scale_property_single(SPCSSAttr *css, gchar const *property, double ex, bool only_with_units = false) argument
1919 sp_css_attr_scale_property_list(SPCSSAttr *css, gchar const *property, double ex) argument
1952 sp_css_attr_scale(SPCSSAttr *css, double ex) argument
[all...]
H A Dattribute-rel-util.cpp21 #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 Dfilter-chemistry.cpp31 #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 Ddesktop-style.cpp21 #include "svg/css-ostringstream.h"
43 #include "xml/sp-css-attr.h"
85 SPCSSAttr *css = sp_repr_css_attr_new(); local
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, boo argument
185 sp_desktop_set_style(SPDesktop *desktop, SPCSSAttr *css, bool change, bool write_current) argument
268 SPCSSAttr *css = sp_repr_css_attr_new(); local
306 SPCSSAttr *css = NULL; local
337 SPCSSAttr *css = NULL; local
364 SPCSSAttr *css = NULL; local
404 SPCSSAttr *css = prefs->getInheritedStyle(tool_path + "/style"); local
[all...]
H A Dattribute-rel-util.h12 #include "xml/sp-css-attr.h"
68 void sp_attribute_clean_style(Node* repr, SPCSSAttr *css, unsigned int flags);
H A Dstyle-internal.cpp42 #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 Dcolor.cpp25 #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();
/inkscape/src/widgets/
H A Dfill-style.cpp347 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...]
H A Dstroke-style.cpp508 SPCSSAttr *css = sp_repr_css_attr_new(); local
510 sp_repr_css_set_property(css, combo_id, marker);
526 sp_repr_css_change_recursive(selrepr, css, "style");
537 sp_repr_css_attr_unref(css);
538 css = 0;
695 SPCSSAttr *css = sp_repr_css_attr_new(); local
697 sp_repr_css_set_property(css, "stroke", lstroke);
698 sp_repr_css_set_property(css, "stroke-opacity", lstroke_opacity);
702 sp_repr_css_set_property(css, "fill", lfill);
703 sp_repr_css_set_property(css, "fil
1010 setScaledDash(SPCSSAttr *css, int ndash, double *dash, double offset, double scale) argument
1050 SPCSSAttr *css = sp_repr_css_attr_new(); local
1183 SPCSSAttr *css = sp_repr_css_attr_new(); local
[all...]
H A Dtext-toolbar.cpp51 #include "svg/css-ostringstream.h"
167 SPCSSAttr *css = sp_repr_css_attr_new (); local
168 fontlister->fill_css( css );
174 prefs->mergeStyle("/tools/text/style", css);
177 sp_desktop_set_style (desktop, css, true, true); // Results in selection change called twice.
181 sp_repr_css_attr_unref (css);
219 // Set css font size.
220 SPCSSAttr *css = sp_repr_css_attr_new (); local
228 sp_repr_css_set_property (css, "font-size", osfs.str().c_str());
232 sp_desktop_set_style (desktop, css, tru
273 SPCSSAttr *css = sp_repr_css_attr_new (); local
334 SPCSSAttr *css = sp_repr_css_attr_new (); local
456 SPCSSAttr *css = sp_repr_css_attr_new (); local
544 SPCSSAttr *css = sp_repr_css_attr_new (); local
702 SPCSSAttr *css = sp_repr_css_attr_new (); local
757 SPCSSAttr *css = sp_repr_css_attr_new (); local
795 SPCSSAttr *css = sp_repr_css_attr_new (); local
940 SPCSSAttr *css = sp_repr_css_attr_new (); local
994 SPCSSAttr *css = sp_repr_css_attr_new (); local
[all...]
/inkscape/src/libnrtype/
H A Dfont-lister.cpp617 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...]
/inkscape/src/extension/internal/pdfinput/
H A Dsvg-builder.cpp33 #include "svg/css-ostringstream.h"
299 void SvgBuilder::_setStrokeStyle(SPCSSAttr *css, GfxState *state) { argument
303 sp_repr_css_set_property(css, "stroke", urltext);
310 sp_repr_css_set_property(css, "stroke", svgConvertGfxRGB(&stroke_color));
316 sp_repr_css_set_property(css, "stroke-opacity", os_opacity.str().c_str());
328 sp_repr_css_set_property(css, "stroke-width", os_width.str().c_str());
333 sp_repr_css_set_property(css, "stroke-linecap", "butt");
336 sp_repr_css_set_property(css, "stroke-linecap", "round");
339 sp_repr_css_set_property(css, "stroke-linecap", "square");
346 sp_repr_css_set_property(css, "strok
389 _setFillStyle(SPCSSAttr *css, GfxState *state, bool even_odd) argument
418 SPCSSAttr *css = sp_repr_css_attr_new(); local
449 SPCSSAttr *css = _setStyle(state, fill, stroke, even_odd); local
470 SPCSSAttr *css = sp_repr_css_attr_new(); local
827 SPCSSAttr *css = sp_repr_css_attr_new(); local
1662 SPCSSAttr *css = sp_repr_css_attr_new(); local
1748 SPCSSAttr *css = sp_repr_css_attr_new(); local
[all...]
/inkscape/src/extension/internal/
H A Dbluredge.cpp87 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");
/inkscape/src/ui/dialog/
H A Dtext-edit.cpp55 #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/tools/
H A Dmeasure-tool.cpp217 SPCSSAttr *css = sp_repr_css_attr_new(); local
226 sp_repr_css_set_property (css, "stroke-width", stroke_width.str().c_str());
227 sp_repr_css_set_property (css, "fill", "none");
231 sp_repr_css_set_property (css, "stroke", color_line);
233 sp_repr_css_set_property (css, "stroke", "#ff0000");
236 sp_repr_css_set_property (css, "stroke-linecap", stroke_linecap);
237 sp_repr_css_set_property (css, "stroke-linejoin", "miter");
238 sp_repr_css_set_property (css, "stroke-miterlimit", "4");
239 sp_repr_css_set_property (css, "stroke-dasharray", "none");
241 sp_repr_css_set_property (css, "strok
719 SPCSSAttr *css = sp_repr_css_attr_new(); local
936 SPCSSAttr *css = sp_repr_css_attr_new(); local
983 SPCSSAttr *css = sp_repr_css_attr_new (); local
[all...]

Completed in 71 milliseconds

123