InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BscShpHandleShape Class Reference
Inheritance diagram for BscShpHandleShape:
CHandleShapeIHandleShapeIPMUnknown

Public Member Functions

 BscShpHandleShape (IPMUnknown *boss)
 
virtual ~BscShpHandleShape ()
 
- Public Member Functions inherited from CHandleShape
 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 *pathSelection, int32 shapeflags)
 
virtual void DrawPathImmediate (GraphicsData *gd, int32 shapeflags)
 
virtual PMRect GetBBoxImmediate (const PMMatrix &itoview)
 
virtual bool16 HitTestPathImmediate (GraphicsData *gd, const PMRect &r)
 
virtual bool16 HitTestHandlesImmediate (GraphicsData *gd, const PMRect &r, PointSelector *handleIndex)
 
virtual bool16 HitTestOneHandle (GraphicsData *gd, const PMRect &r, const PBPMPoint &point, PMRect::PointIndex whichPoint) const
 
- Protected Member Functions inherited from CHandleShape
virtual void SetHandleColor (GraphicsData *gd, UID layerUID)
 
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)
 

Additional Inherited Members

- Protected Attributes inherited from CHandleShape
IGeometryfGeometry
 
IPageItemAdornmentListfAdornmentList
 
PMReal fHandleRed
 
PMReal fHandleGreen
 
PMReal fHandleBlue
 

Detailed Description

BscShpHandleShape is responsible for drawing a page item's selection outline and handles. This implementation draws the selection features in red. The selection handles are the word "adobe".

BscShpHandleShape implements IHandleSHape based on the partial implementation CHandleShape.

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * BscShpHandleShape::BscShpHandleShape (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
BscShpHandleShape::~BscShpHandleShape ()
virtual

Destructor.

Member Function Documentation

void BscShpHandleShape::DrawHandlesImmediate (GraphicsDatagd,
IConcreteSelectionpathSelection,
int32 shapeflags 
)
protectedvirtual

Responsible for drawing the selection handles. Called by the parent class Draw() method. This implementation draws "Adobe" handles if fonts are available. Otherwise it draws rectangular handles.

Parameters
gdThe drawing context
pathSelectionProvides info about what handles or paths are selected.
shapeflagsIShape drawing flags.

Implements CHandleShape.

void BscShpHandleShape::DrawPathImmediate (GraphicsDatagd,
int32 shapeflags 
)
protectedvirtual

Responsible for drawing the selection path. Called by the parent class Draw() method. This implementation strokes the page item with a red line.

Parameters
gdThe drawing context.
shapeflagsIShape drawing flags.

Implements CHandleShape.

PMRect BscShpHandleShape::GetBBoxImmediate (const PMMatrixitoview)
protectedvirtual

Responsible for returning the bounding box of the page item including the selection handles.

Parameters
itoviewInner coords to drawing device (port) transform.
Returns
Bounding PMRect in drawing device coordinates.

Implements CHandleShape.

bool16 BscShpHandleShape::HitTestHandlesImmediate (GraphicsDatagd,
const PMRectr,
PointSelectorhandleIndex 
)
protectedvirtual

Responsible for determining whether the selection rectangle contains a point in a handle.

Parameters
gdThe drawing context.
rRectangle describing region of hit in device (view) coords.
handleIndexUsed for returning information about which of the selections handles was hit.
Returns
kTrue if intersection of rect and handles is not null. kFalse otherwise.

Implements CHandleShape.

bool16 BscShpHandleShape::HitTestOneHandle (GraphicsDatagd,
const PMRectr,
const PBPMPointpoint,
PMRect::PointIndex whichPoint 
) const
protectedvirtual

Responsible for determining whether the selection rectangle contains a specific handle.

Parameters
gdThe drawing context.
rRectangle describing region of hit in device (view) coords.
pointCenter of handle in pasteboard coords.
whichPointthe point index that is being tested.
Returns
kTrue if intersection of rect and handle is not null. kFalse otherwise.

Reimplemented from CHandleShape.

bool16 BscShpHandleShape::HitTestPathImmediate (GraphicsDatagd,
const PMRectr 
)
protectedvirtual

Responsible for determining whether the selection rectangle contains a point on the path.

Parameters
gdThe drawing context.
rRectangle describing region of hit in device (view) coords.
Returns
kTrue if intersection of rect and path is not null. kFalse otherwise.

Implements CHandleShape.