23 auto attr = prop->id();
26 auto value = prop->get_value().raw();
28 if (
_attrs.contains(attr)) {
29 auto const it =
current.find(attr);
30 if (it ==
current.end() || it->second != value) {
31 map[attr] = std::move(value);
43 map[prop->id()] = prop->get_value();
StyleMap get_changes(SPStyle const *style) const
Return a StyleMap of all the differences between the state and the given style.
std::set< SPAttr > const _attrs
StyleMap get_ifset(SPStyle const *style) const
Return a StyleMap of all the set styles, filtered in the same way as get_changes.
StyleMap const & get_state() const
Get the current state map, empty if nothing is on the stack or contains every attr at the current sta...
std::vector< SPIBase * > const & properties() const
std::unordered_map< std::string, std::unique_ptr< SPDocument > > map
static char const *const current
std::map< SPAttr, std::string > StyleMap