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

#include <IPageUIUtils.h>

Inheritance diagram for IPageUIUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPAGEUIUTILS }
 

Public Member Functions

virtual void CalculatePageHandleAdornmentRects (IShape *pageShape, const PMMatrix &innerToWindowMatrix, PMRectCollection &outRectList)=0
 
virtual Flow::ConstraintIndex MapPointIndexToConstraintIndex (int32 pointIndex)=0
 
virtual int32 MapConstraintIndexToHandleIndex (Flow::ConstraintIndex i, Flow::Constraint constraint)=0
 
virtual void DrawItemConstraints (GraphicsData *gd, const UIDRef &pageItem)=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

Utilites for answering questions about ruler guides when there is an open document window. Please use the IPageUIUtils via kUtilsBoss (see Utils.h).

Utils<IPageUIUtils>()->CalculatePageAdornmentRect( ... ) ;

Member Function Documentation

virtual void IPageUIUtils::CalculatePageHandleAdornmentRects (IShapepageShape,
const PMMatrixinnerToWindowMatrix,
PMRectCollectionoutRectList 
)
pure virtual

Given a page item shape, calculate the location of the given adornment rects. Used for page adornments.

Parameters
IShape*,thepage's shape interface
PMMatrix,theinner to window matrix for the item.
PMRectCollection&[OUT] outRectList, rects for each of the six constraints for the current key item
Returns
void, the window coordinate rectangle representing the screen location of the page item adornment. kEmptyRect if none.
virtual void IPageUIUtils::DrawItemConstraints (GraphicsDatagd,
const UIDRefpageItem 
)
pure virtual

Draw object-based page item constraints for the Object-based page layout policy

Parameters
gd[IN] The graphics port to draw into