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

#include <IGuideSelectionUtils.h>

Inheritance diagram for IGuideSelectionUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IGUIDESELECTIONUTILS }
 
enum  GuideSelectionType { kNone, kVertical, kHorizontal, kMixed }
 

Public Member Functions

virtual GuideSelectionType GetGuideSelectionType (const UIDList &items) const =0
 
virtual void CountGuides (const UIDList &items, int32 &nVertical, int32 &nHorizontal) 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 relating to selections over guides.

Utils<IGuideSelectionUtils>()->GetGuideSelectionType( ... ) ;

Member Enumeration Documentation

Enum values of guide's selection type. kNone: no guide is selected. kVertical: only vertical guide is selected. kHorizontal: only horizontal guide is selected. kMixed: both horizontal and vertical guides are selected.

Member Function Documentation

virtual void IGuideSelectionUtils::CountGuides (const UIDListitems,
int32 & nVertical,
int32 & nHorizontal 
) const
pure virtual

Count how many horizontal and vertical guides are selected for the given items.

Parameters
itemsIN the total items to check.
nVerticalOUT the number of selected vertical guides.
nHorizontalOUt the number of selected horizontal guides.
virtual GuideSelectionType IGuideSelectionUtils::GetGuideSelectionType (const UIDListitems) const
pure virtual

Get guide's selection type for the given items. The result could be no guide selected, only vertical guide selected, only horizontal guide selected or both horizontal and vertical guide selected.

Parameters
itemsIN the items for checking selection type.
Returns
GuideSelectionType the selection type.