InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CHandleShape Class Referenceabstract
Inheritance diagram for CHandleShape:
IHandleShapeIPMUnknownBscShpHandleShapePathHandleShapeBscShpPathHandleShape

Public Member Functions

 CHandleShape (IPMUnknown *boss)
 
virtual void DrawHandleShape (GraphicsData *gd, IConcreteSelection *concreteSelection, int32 shapeflags)
 
virtual void DrawControlPointPath (GraphicsData *gd, int32 shapeflags)
 
virtual bool16 HitTest (GraphicsData *gd, const PMRect &r, PointSelector *handleIndex, bool16 bDragging)
 
virtual bool16 HitTestControlPointPath (GraphicsData *gd, const PMRect &r)
 
virtual void GetControlPointPathOutlineInfo (IOutlineInfo *iOutlineInfo)
 
virtual PMRect GetPaintedHandleBounds (const PMMatrix &theMatrix)
 
virtual void Inval (GraphicsData *gd, ClassID reasonForInval, int32 shapeflags)
 
virtual ITrackerQueryTracker (IControlView *layView, const PBPMPoint &where, int32 selectionMode, const PointSelector &index)
 
virtual ITipQueryTip (const PointSelector *handleIndex)
 

Protected Member Functions

virtual void DrawHandlesImmediate (GraphicsData *gd, IConcreteSelection *concreteSelection, int32 shapeflags)=0
 
virtual void DrawPathImmediate (GraphicsData *gd, int32 shapeflags)=0
 
virtual PMRect GetBBoxImmediate (const PMMatrix &itoview)=0
 
virtual bool16 HitTestHandlesImmediate (GraphicsData *gd, const PMRect &r, PointSelector *handleIndex)=0
 
virtual bool16 HitTestPathImmediate (GraphicsData *gd, const PMRect &r)=0
 
virtual void SetHandleColor (GraphicsData *gd, UID layerUID)
 
virtual bool16 HitTestOneHandle (GraphicsData *gd, const PMRect &r, const PMPoint &point, PMRect::PointIndex whichPoint) const
 
virtual void TextFrameHandlesPath (GraphicsData *gd, int32 textflags, const PMPoint &pt1, const PMPoint &pt2)
 
virtual void DrawTextFrameHandles (GraphicsData *gd, int32 shapeflags, int32 textflags)
 
virtual bool16 HitTestTextFrameHandles (GraphicsData *gd, const PMRect &r, PointSelector *handleIndex, int32 textflags)
 
virtual void AddTextFrameHandleWidth (const PMMatrix &theMatrix, PMRect *itemBounds) const
 
virtual ITrackerQueryTextFrameTracker (IControlView *layView, const PBPMPoint &where, int32 selectionMode, const PointSelector &index)
 
bool16 HandlesDisabled (GraphicsData *gd, int32 shapeflags)
 
bool16 HasContent ()
 
void DrawAdornments (IAdornmentHandleShape::AdornmentDrawOrder drawOrder, GraphicsData *gd, IConcreteSelection *concreteSelection, int32 flags)
 
void DrawAdornmentControlPointPath (IAdornmentHandleShape::AdornmentDrawOrder drawOrder, GraphicsData *gd, int32 flags)
 
bool16 HitTestAdornment (IAdornmentHandleShape::AdornmentDrawOrder drawOrder, GraphicsData *gd, const PMRect &r, PointSelector *handleIndex, bool16 bDragging)
 
bool16 HitTestAdornmentControlPointPath (IAdornmentHandleShape::AdornmentDrawOrder drawOrder, GraphicsData *gd, const PMRect &r)
 
void GetPaintedAdornmentBounds (IAdornmentHandleShape::AdornmentDrawOrder drawOrder, const PMMatrix &pbtoview, PMRect *handleRect)
 
ITrackerQueryAdornmentTracker (IAdornmentHandleShape::AdornmentDrawOrder drawOrder, IControlView *layView, const PBPMPoint &where, int32 selectionMode, const PointSelector &index)
 

Protected Attributes

IGeometryfGeometry
 
IPageItemAdornmentListfAdornmentList
 
PMReal fHandleRed
 
PMReal fHandleGreen
 
PMReal fHandleBlue
 

Member Function Documentation

virtual void CHandleShape::DrawControlPointPath (GraphicsDatagd,
int32 flags 
)
virtual

Draw the path based on item's control points.

Parameters
gdthe graphics context used for drawing.
flagsdefault as kNoFlags and serves as a drawing flag.
Returns
void.

Implements IHandleShape.

virtual void CHandleShape::DrawHandleShape (GraphicsDatagd,
IConcreteSelectionconcreteSelection,
int32 flags 
)
virtual

Draw the selection handle of item.

Parameters
gdthe graphics context used for drawing.
concretSelectionthe selection boss.
flagsdefault as kNoFlags and serves as a drawing flag.
Returns
void.

Implements IHandleShape.

virtual void CHandleShape::GetControlPointPathOutlineInfo (IOutlineInfoiOutlineInfo)
virtual

Get the path information of item's control points.

Parameters
iOutlineInfothe out parameter with the control point path.
Returns
void.

Implements IHandleShape.

Reimplemented in PathHandleShape.

virtual PMRect CHandleShape::GetPaintedHandleBounds (const PMMatrixpbtoview)
virtual

Get the bounding box by computing it in pasteboard coords and then transforming it by pbtoview.

Parameters
pbtoviewthe matrix to transform the bounds based on pasteboard coordinates.
Returns
PMRect the bounds for painting(redrawing).

Implements IHandleShape.

Reimplemented in BscShpPathHandleShape.

virtual bool16 CHandleShape::HitTest (GraphicsDatagd,
const PMRectr,
PointSelectorhandleIndex,
bool16 bDragging 
)
virtual

Check if a particular handle of the item has been hit or not within the specified area.

Parameters
gdthe graphics context used for hit testing.
rthe area for checking hit test.
handleIndexthe index of selection handle.
bDraggingthe flag indicating if hit test if during dragging or not.
Returns
bool16 kTrue if it hits, otherwise kFalse.

Implements IHandleShape.

virtual bool16 CHandleShape::HitTestControlPointPath (GraphicsDatagd,
const PMRectr 
)
virtual

Check if the control point path has been hit or not.

Parameters
gdthe graphics context used for hit testing.
rthe area for checking hit test.
Returns
bool16 kTrue if it hits, otherwise kFalse.

Implements IHandleShape.

virtual void CHandleShape::Inval (GraphicsDatagd,
ClassID reasonForInval,
int32 flags 
)
virtual

Invalidate the appropriate region of the object in the graphics context.

Parameters
gdthe graphics context used for invalidation.
reasonForInvalthe ClassID defined for inval reason for handling different inval cases.
flagsdefault as kNoFlags and serves as a drawing flag.
Returns
void.

Implements IHandleShape.

virtual ITip* CHandleShape::QueryTip (const PointSelectorhandleIndex)
virtual

Query for any tip implemented on the shape. If there is any tip on the shape then the ITip interfacePtr will be returned else nil is returned in the default implementation

Parameters
handleIndexthe index of the handle for the shape
Returns
ITip* the result tip

Implements IHandleShape.

virtual ITracker* CHandleShape::QueryTracker (IControlViewlayView,
const PBPMPointwhere,
int32 selectionMode,
const PointSelectorindex 
)
virtual

Query the tracker based on the given mouse position, hit test mode and selection handle index.

Parameters
layViewthe active layout view where mouse is on.
wherethe mouse position based on pasteboard coordinate.
selectionModethe hit test flags.
indexspecifies the index of selection handle.
Returns
ITracker* the result tracker and caller should deference it.

Implements IHandleShape.

Reimplemented in PathHandleShape.