InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
NoHandleSprite Class Reference

#include <NoHandleSprite.h>

Inheritance diagram for NoHandleSprite:
CSpriteISpriteIPMUnknown

Public Member Functions

 NoHandleSprite (IPMUnknown *boss)
 
virtual ~NoHandleSprite ()
 
- Public Member Functions inherited from CSprite
 CSprite (IPMUnknown *boss)
 
virtual ~CSprite ()
 
virtual bool16 CreateSprite (IGraphicsContext *gc, UIDList *itemList, const PMPoint &startPt, bool16 bDrawItemList)
 
virtual void DestroySprite (IGraphicsContext *gc)
 
virtual bool16 Show (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual bool16 Scroll (IGraphicsContext *gc, const PMPoint &delta, int32 flags, PMMatrix *xForm)
 
virtual void Erase (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual void Hide (IGraphicsContext *gc, bool16 bForceRedraw, PMMatrix *extraXform)
 
virtual void InvalidateBBox ()
 
virtual void DisableShapes (IGraphicsContext *gc, bool16 disable)
 
virtual SysRect GetDeviceBounds (IGraphicsContext *gc, int32 flags, PMMatrix *xForm)
 
virtual bool16 ValidSprite () const
 
virtual bool16 NeedsUpdate (const PMPoint &where, int32 flags) const
 

Protected Member Functions

virtual void CreateTrackerPaths (IGraphicsContext *gc)
 
virtual void CreateHandlePaths (IGraphicsContext *gc, bool16 bDoDirection)
 
virtual bool16 UseDisplayList (int32 flags)
 
virtual PMRect GetTrackerBounds (IGraphicsContext *gc, int32 flags)
 
virtual void DrawSpriteHandles (IGraphicsContext *gc, int32 flags, PMMatrix *xForm)
 
- Protected Member Functions inherited from CSprite
virtual void DisableHandleShapes (IGraphicsContext *gc, bool16 disable)
 
virtual PMRect GetShapeDeviceBounds (IGraphicsContext *gc, int32 flags)
 
virtual PMRect GetHandleDeviceBounds (IGraphicsContext *gc, int32 flags, PMMatrix *xForm)
 
virtual PMRect GetSelectionBounds (IGraphicsContext *gc)
 
virtual void DrawTrackerExtra (IGraphicsContext *gc, int32 flags)
 
virtual void ShowFirstTime (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual void ShowSprite (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual void ScrollSprite (IGraphicsContext *gc, const PMPoint &delta, int32 flags, PMMatrix *xForm)
 
virtual void ShowLowMemory (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual void ShowLowMemoryFirstTime (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual void ScrollLowMemory (IGraphicsContext *gc, const PMPoint &delta, int32 flags, PMMatrix *xForm)
 
virtual void HideSprite (IGraphicsContext *gc, bool16 bForceRedraw, PMMatrix *extraXform)
 
virtual void HideLowMemory (IGraphicsContext *gc, bool16 bForceRedraw, PMMatrix *extraXform)
 
virtual void EraseAndRedrawShapes (IGraphicsContext *gc, const PMPoint &where, int32 flags, PMMatrix *xForm)
 
virtual void SetHiliteColor (UID layerUID)
 
virtual void DrawShapes (IGraphicsContext *gc, SysRgn clipRgn=nil, bool16 bDisable=kFalse)
 
virtual void DrawSelection (IGraphicsContext *gc)
 
virtual void DrawSpriteShapes (IGraphicsContext *gc, int32 flags)
 
virtual void ClipToView (IGraphicsContext *gc, SysRect *bounds)
 
virtual void ClipToView (IGraphicsContext *gc, PMRect &bounds)
 
virtual PMRect GetStandOffBBox (IShape *pShape, IGraphicsContext *gc, int32 flags, const PMRect &bBox)
 
virtual int32 GetDrawFlags () const
 
void AddInvalidOffscreenBounds (IControlView *iView, PMRect *invalidBounds)
 
void AddInvalidLayoutBounds (IControlView *iView, PMRect *invalidBounds)
 
void DrawSmartGuides (IGraphicsContext *gc, const PBPMPoint where, const PMMatrix *xForm)
 

Additional Inherited Members

- Public Types inherited from ISprite
enum  { kDefaultIID = IID_ISPRITE }
 
- Static Protected Member Functions inherited from CSprite
static void DrawCenterX (IGraphicsPort *gPort, const PBPMPoint &center)
 
- Protected Attributes inherited from CSprite
PMMatrix fXformFromLastShow
 
SysRect fLastBounds
 
ColorArray fRGBColorValue
 
PMPoint fStartPoint
 
PMPoint fCurrentPoint
 
SysPoint fLastMouseLoc
 
IControlViewfControlView
 
UIDListfItemList
 
IDVOffscreenPortDatafBackgroundVP
 
IDVOffscreenPortDatafForegroundVP
 
IDataBasefDataBase
 
int32 fDrawFlags
 
bool16 fValidDeviceBounds
 
bool16 fFirstTime
 
bool16 fValidSprite
 
bool16 fLowMemory
 
bool16 fIsFrontView
 
bool16 fDrawItemList
 
bool16 fIsPathSelection
 
bool16 fHandlesDisabled
 
bool16 fDoRevealAllImageData
 
bool16 fSmartGuidesDrawn
 
bool16 fDrawSmartGuides
 

Detailed Description

NoHandleSprite

This implementation of CSprite is used when resizing page items.  It draws the path shapes but does

not draw the handles.

See Also
CSprite

Constructor & Destructor Documentation

NoHandleSprite::NoHandleSprite (IPMUnknownboss)

Constructor

virtual NoHandleSprite::~NoHandleSprite ()
virtual

Destructor

Member Function Documentation

virtual void NoHandleSprite::CreateHandlePaths (IGraphicsContextgc,
bool16 bDoDirection 
)
protectedvirtual

This implementation draws the X in the center of the sprite, but does not draw any of the shape's handles.

Parameters
gPort- IN: The IGraphicsContext.
bDoDirection- IN: Include the control handles for each point?

Reimplemented from CSprite.

virtual void NoHandleSprite::CreateTrackerPaths (IGraphicsContextgc)
protectedvirtual

This implementation walks/draws the path stored in the IPathGeometry of the sprite's boss, but does not draw the handle vectors.

Parameters
gc- IN: The IGraphicsContext.

Reimplemented from CSprite.

virtual void NoHandleSprite::DrawSpriteHandles (IGraphicsContextgc,
int32 flags,
PMMatrixxForm 
)
protectedvirtual

Calls CSprite::DrawSpriteHandles and draws Smart Dimension guides if appropriate.

Parameters
gc- IN: A pointer to the IGraphicsContext representing the device to which the sprite draws.
flags- IN: flags are IShape::flags.
See Also
IShape.h
Parameters
xForm- IN: The matrix represents the transformation that is passed into all the IHandleShapes in the item list (See CreateSprite). The matrix is a pasteboard relative transformation.

Reimplemented from CSprite.

virtual PMRect NoHandleSprite::GetTrackerBounds (IGraphicsContextgc,
int32 flags 
)
protectedvirtual

Allows the tracker to dynamically change the update area used by the sprite.

Parameters
gc- IN: A pointer to the IGraphicsContext representing the device to which the sprite draws.
flags- IN: flags are IShape::flags.
See Also
IShape.h
Returns
If the boss containing this sprite has an IPathGeometry, then grab that IPathGeometry and return its GetCtrlPointsBoundingBox.

Reimplemented from CSprite.

virtual bool16 NoHandleSprite::UseDisplayList (int32 flags)
protectedvirtual

Obsolete. CSprite does not currently use display lists for drawing.

Parameters
flags- IN: flags are IShape::flags.
See Also
IShape.h
Returns
Returns whether to use a display list or not

Reimplemented from CSprite.