![]() | InDesign SDK 20.5 |
#include <AutoStyleMapping.h>
Public Member Functions | |
| AutoStyleMapping (bool16 map, const IPMUnknown *styleMappingItem, IDataBase *srcDB, IDataBase *destDB) | |
| ~AutoStyleMapping () | |
Automatically turns on style mapping in the constructor and turns it off in the destructor so you do not have to explicitly call set & un-set calls. Just create an AutoStyleMapping stack object and you are done. Prevents problems with early returns forgetting to un-set and leaving a session open.
styleMappingItem param can be optionally used to set the style mapping data onto the session. If nil is passed in then the callee needs to set the data separately.
| inlineexplicit |
Constructor
| inline |
Destructor