InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AutoStyleMapping Class Reference

#include <AutoStyleMapping.h>

Public Member Functions

 AutoStyleMapping (bool16 map, const IPMUnknown *styleMappingItem, IDataBase *srcDB, IDataBase *destDB)
 
 ~AutoStyleMapping ()
 

Detailed Description

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.

Constructor & Destructor Documentation

AutoStyleMapping::AutoStyleMapping (bool16 map,
const IPMUnknownstyleMappingItem,
IDataBasesrcDB,
IDataBasedestDB 
)
inlineexplicit

Constructor

AutoStyleMapping::~AutoStyleMapping ()
inline

Destructor