InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGroupItemUtils Class Referenceabstract

#include <IGroupItemUtils.h>

Inheritance diagram for IGroupItemUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IGROUPITEMUTILS }
 

Public Member Functions

virtual bool16 CanEnableGroup (const UIDList *items, IDocumentLayer *targetLayer=nil) const =0
 
virtual bool16 CanEnableUngroup (const UIDList *items) const =0
 
virtual int32 AccumulateTransformedGroups (const UIDList &items, UIDList *transformedGroups) const =0
 
virtual bool16 HaveBothLockedAndUnLockedItems (const UIDList &itemList) const =0
 
virtual bool16 HaveBothOverrideableAndNonOverrideableItems (const UIDList &itemList) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Utilities for answering items can be grouped or ungrouped.

Member Function Documentation

virtual int32 IGroupItemUtils::AccumulateTransformedGroups (const UIDListitems,
UIDListtransformedGroups 
) const
pure virtual

Iterate through the given items and get the transformed(skew, scale or rotate) group items.

Parameters
itemsIN the given items.
transformedGroupsOUT the item list contains the transformed group items.
Returns
int32 the number of transformed group items.
virtual bool16 IGroupItemUtils::CanEnableGroup (const UIDListitems,
IDocumentLayertargetLayer = nil 
) const
pure virtual

Check if the give itmes can be grouped on the given document layer or not. If targetLayer is nil, active layer of front window will be used.

Parameters
itemsIN the items to check.
targetLayerIN the document layer.
Returns
bool16 kTrue if items can be grouped, otherwise return kFalse.
virtual bool16 IGroupItemUtils::CanEnableUngroup (const UIDListitems) const
pure virtual

Check if the give itmes can be ungrouped or not.

Parameters
itemsIN the given items.
Returns
bool16 kTrue if items can be ungrouped, otherwise return kFalse.
virtual bool16 IGroupItemUtils::HaveBothLockedAndUnLockedItems (const UIDListitemList) const
pure virtual

Check if the give itmes has both locked and unlocked items or not.

Parameters
itemsIN the items to check.
Returns
bool16 kTrue if there are mixed items, otherwise return kFalse.
virtual bool16 IGroupItemUtils::HaveBothOverrideableAndNonOverrideableItems (const UIDListitemList) const
pure virtual

Check if the give itmes has both overrideable or not overrideable items or not.

Parameters
itemsIN the items to check.
Returns
bool16 kTrue if there are mixed items, otherwise return kFalse.