diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-08-05 15:54:12 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-08-05 15:54:12 +0000 |
| commit | 47865cbb214252f72f9b89a0422fab263b4f1263 (patch) | |
| tree | 04a84df643e42fa98062cc485979f40ccad8bfa5 /src/xml/repr-css.cpp | |
| parent | Merge branch 'feature_hslInDegrees' of gitlab.com:RomanHargrave/inkscape (diff) | |
| download | inkscape-47865cbb214252f72f9b89a0422fab263b4f1263.tar.gz inkscape-47865cbb214252f72f9b89a0422fab263b4f1263.zip | |
Add GUI and code to implement "Line Spacing Modes".
Selecting a Line Spacing Mode allows a user to quickly pick an
algorithm for consistant line spacing.
Diffstat (limited to 'src/xml/repr-css.cpp')
| -rw-r--r-- | src/xml/repr-css.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xml/repr-css.cpp b/src/xml/repr-css.cpp index 9590fa97f..2970c1da5 100644 --- a/src/xml/repr-css.cpp +++ b/src/xml/repr-css.cpp @@ -466,6 +466,17 @@ void sp_repr_css_change_recursive(Node *repr, SPCSSAttr *css, gchar const *attr) } } +/** + * Return a new SPCSSAttr with all the properties found in the input SPCSSAttr unset. + */ +SPCSSAttr* sp_repr_css_attr_unset_all(SPCSSAttr *css) +{ + SPCSSAttr* css_unset = sp_repr_css_attr_new(); + for ( List<AttributeRecord const> iter = css->attributeList() ; iter ; ++iter ) { + sp_repr_css_set_property (css_unset, g_quark_to_string(iter->key), "inkscape:unset"); + } + return css_unset; +} /* Local Variables: |
