From 47865cbb214252f72f9b89a0422fab263b4f1263 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 5 Aug 2017 17:54:12 +0200 Subject: 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. --- src/xml/repr-css.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/xml/repr-css.cpp') 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 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: -- cgit v1.2.3