Lines Matching refs:css

47 #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();
1746 sp_repr_css_attr_add_from_string(css, style_str.c_str());
1747 return css;
1773 sp_css_attr_unset_text(SPCSSAttr *css)
1775 sp_repr_css_set_property(css, "font", NULL);
1776 sp_repr_css_set_property(css, "-inkscape-font-specification", NULL);
1777 sp_repr_css_set_property(css, "font-size", NULL);
1778 sp_repr_css_set_property(css, "font-size-adjust", NULL); // not implemented yet
1779 sp_repr_css_set_property(css, "font-style", NULL);
1780 sp_repr_css_set_property(css, "font-variant", NULL);
1781 sp_repr_css_set_property(css, "font-weight", NULL);
1782 sp_repr_css_set_property(css, "font-stretch", NULL);
1783 sp_repr_css_set_property(css, "font-family", NULL);
1784 sp_repr_css_set_property(css, "text-indent", NULL);
1785 sp_repr_css_set_property(css, "text-align", NULL);
1786 sp_repr_css_set_property(css, "line-height", NULL);
1787 sp_repr_css_set_property(css, "letter-spacing", NULL);
1788 sp_repr_css_set_property(css, "word-spacing", NULL);
1789 sp_repr_css_set_property(css, "text-transform", NULL);
1790 sp_repr_css_set_property(css, "direction", NULL);
1791 sp_repr_css_set_property(css, "writing-mode", NULL);
1792 sp_repr_css_set_property(css, "text-orientation", NULL);
1793 sp_repr_css_set_property(css, "text-anchor", NULL);
1794 sp_repr_css_set_property(css, "white-space", NULL);
1795 sp_repr_css_set_property(css, "shape-inside", NULL);
1796 sp_repr_css_set_property(css, "shape-padding", NULL);
1797 sp_repr_css_set_property(css, "kerning", NULL); // not implemented yet
1798 sp_repr_css_set_property(css, "dominant-baseline", NULL); // not implemented yet
1799 sp_repr_css_set_property(css, "alignment-baseline", NULL); // not implemented yet
1800 sp_repr_css_set_property(css, "baseline-shift", NULL);
1802 sp_repr_css_set_property(css, "text-decoration", NULL);
1803 sp_repr_css_set_property(css, "text-decoration-line", NULL);
1804 sp_repr_css_set_property(css, "text-decoration-color", NULL);
1805 sp_repr_css_set_property(css, "text-decoration-style", NULL);
1807 sp_repr_css_set_property(css, "font-variant-ligatures", NULL);
1808 sp_repr_css_set_property(css, "font-variant-position", NULL);
1809 sp_repr_css_set_property(css, "font-variant-caps", NULL);
1810 sp_repr_css_set_property(css, "font-variant-numeric", NULL);
1811 sp_repr_css_set_property(css, "font-variant-alternates", NULL);
1812 sp_repr_css_set_property(css, "font-variant-east-asian", NULL);
1813 sp_repr_css_set_property(css, "font-feature-settings", NULL);
1815 return css;
1824 sp_css_attr_unset_blacklist(SPCSSAttr *css)
1826 sp_repr_css_set_property(css, "color", NULL);
1827 sp_repr_css_set_property(css, "clip-rule", NULL);
1828 sp_repr_css_set_property(css, "display", NULL);
1829 sp_repr_css_set_property(css, "overflow", NULL);
1830 sp_repr_css_set_property(css, "visibility", NULL);
1831 sp_repr_css_set_property(css, "isolation", NULL);
1832 sp_repr_css_set_property(css, "mix-blend-mode", NULL);
1833 sp_repr_css_set_property(css, "color-interpolation", NULL);
1834 sp_repr_css_set_property(css, "color-interpolation-filters", NULL);
1835 sp_repr_css_set_property(css, "solid-color", NULL);
1836 sp_repr_css_set_property(css, "solid-opacity", NULL);
1837 sp_repr_css_set_property(css, "fill-rule", NULL);
1838 sp_repr_css_set_property(css, "filter-blend-mode", NULL);
1839 sp_repr_css_set_property(css, "filter-gaussianBlur-deviation", NULL);
1840 sp_repr_css_set_property(css, "color-rendering", NULL);
1841 sp_repr_css_set_property(css, "image-rendering", NULL);
1842 sp_repr_css_set_property(css, "shape-rendering", NULL);
1843 sp_repr_css_set_property(css, "text-rendering", NULL);
1844 sp_repr_css_set_property(css, "enable-background", NULL);
1846 return css;
1870 sp_css_attr_unset_uris(SPCSSAttr *css)
1873 if (is_url(sp_repr_css_property(css, "clip-path", NULL))) sp_repr_css_set_property(css, "clip-path", NULL);
1874 if (is_url(sp_repr_css_property(css, "color-profile", NULL))) sp_repr_css_set_property(css, "color-profile", NULL);
1875 if (is_url(sp_repr_css_property(css, "cursor", NULL))) sp_repr_css_set_property(css, "cursor", NULL);
1876 if (is_url(sp_repr_css_property(css, "filter", NULL))) sp_repr_css_set_property(css, "filter", NULL);
1877 if (is_url(sp_repr_css_property(css, "marker", NULL))) sp_repr_css_set_property(css, "marker", NULL);
1878 if (is_url(sp_repr_css_property(css, "marker-start", NULL))) sp_repr_css_set_property(css, "marker-start", NULL);
1879 if (is_url(sp_repr_css_property(css, "marker-mid", NULL))) sp_repr_css_set_property(css, "marker-mid", NULL);
1880 if (is_url(sp_repr_css_property(css, "marker-end", NULL))) sp_repr_css_set_property(css, "marker-end", NULL);
1881 if (is_url(sp_repr_css_property(css, "mask", NULL))) sp_repr_css_set_property(css, "mask", NULL);
1882 if (is_url(sp_repr_css_property(css, "fill", NULL))) sp_repr_css_set_property(css, "fill", NULL);
1883 if (is_url(sp_repr_css_property(css, "stroke", NULL))) sp_repr_css_set_property(css, "stroke", NULL);
1885 return css;
1893 sp_css_attr_scale_property_single(SPCSSAttr *css, gchar const *property,
1896 gchar const *w = sp_repr_css_property(css, property, NULL);
1910 sp_repr_css_set_property(css, property, os.str().c_str());
1919 sp_css_attr_scale_property_list(SPCSSAttr *css, gchar const *property, double ex)
1921 gchar const *string = sp_repr_css_property(css, property, NULL);
1942 sp_repr_css_set_property(css, property, os.str().c_str());
1952 sp_css_attr_scale(SPCSSAttr *css, double ex)
1954 sp_css_attr_scale_property_single(css, "baseline-shift", ex);
1955 sp_css_attr_scale_property_single(css, "stroke-width", ex);
1956 sp_css_attr_scale_property_list (css, "stroke-dasharray", ex);
1957 sp_css_attr_scale_property_single(css, "stroke-dashoffset", ex);
1958 sp_css_attr_scale_property_single(css, "font-size", ex);
1959 sp_css_attr_scale_property_single(css, "kerning", ex);
1960 sp_css_attr_scale_property_single(css, "letter-spacing", ex);
1961 sp_css_attr_scale_property_single(css, "word-spacing", ex);
1962 sp_css_attr_scale_property_single(css, "line-height", ex, true);
1964 return css;
2026 // Called in style-internal.cpp, xml/repr-css.cpp