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

#include <IPreflightUtils.h>

Public Member Functions

 AutoShapeGroup (IGraphicsPort *iPort, IPMUnknown *iThing, ClassID subPartID, bool issueGroup=kTrue)
 

Detailed Description

Helper class that provides auto stack based declaration of subpart groups. Automatically checks the viewport attributes before issuing groups (since they may otherwise confuse other kinds of artwork ports).

See Also
BeginShapeGroup
EndShapeGroup

Constructor & Destructor Documentation

IPreflightUtils::AutoShapeGroup::AutoShapeGroup (IGraphicsPortiPort,
IPMUnknowniThing,
ClassID subPartID,
bool issueGroup = kTrue 
)
inline

The ctor passes all the useful information and determines whether a grouup will actually be declared based on external and internal evaluation.

Parameters
iPortIN The port. This is inspected for its vpattrs.
iThingIN The boss being drawn. The UID is extracted and used in the group.
subPartIN The subpart of the thing.
issueGroupIN True to issue the group; false otherwise. Used if the group is conditional on some external condition; this allows the stack object to exist in the correct scope (if it's put in an 'if' then the scope is too narrow).