13#ifndef EXTENSION_INTERNAL_PDFOUTPUT_REMEMBERSTYLES_H
14#define EXTENSION_INTERNAL_PDFOUTPUT_REMEMBERSTYLES_H
104 changes.merge(std::move(
current));
Lookup dictionary for attributes/properties.
StyleMap get_changes(SPStyle const *style) const
Return a StyleMap of all the differences between the state and the given style.
std::stack< StyleMap > _changes
std::set< SPAttr > const _attrs
void _push(StyleMap changes)
StyleMap get_changes_and_remember(SPStyle const *style)
Modify the changes scope without managing the FILO stack.
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...
StyleMemory(std::set< SPAttr > remember_attrs)
Construct a new style memeory and ask for specific attrs.
auto remember(StyleMap map)
Add the given map to the stack and return a scoped object.
std::unordered_map< std::string, std::unique_ptr< SPDocument > > map
static char const *const current
std::map< SPAttr, std::string > StyleMap
SPStyle - a style object for SPItem objects.