![]() | InDesign SDK 20.5 |
#include <IPlaceBehavior.h>

Public Types | |
| enum | { kDefaultIID = IID_IPLACEBEHAVIOR } |
| enum | eAfterPlace { kOldBehavior, kLeaveAsIs, kClearPlaceGun, kAbortPlaceGun } |
| enum | ePlaceType { kPlaceSingle, kPlaceCascade, kPlaceMultiple } |
| enum | eFrameKind { kTextFrameKind, kGraphicFrameKind, kInteractiveFrameKind, kContainerFrameKind, kTextInsertionKind, kUnknownFrameKind } |
Public Member Functions | |
| virtual UIDList | ProcessPlace (IPlaceBehavior *targetItem, const UIDRef &parent, const PMPointList &points, ICursorMgr::eCursorModifierState finalModifiers, ICursorMgr::eCursorModifierState startingModifiers, const ISpread *spread, eAfterPlace *afterPlace=nil, IItemsToPlaceData::ePlaceFrom placeFrom=IItemsToPlaceData::kPlaceGun)=0 |
| virtual void | ProcessReplacePreserveState (IPlaceBehavior *newItem, IPlaceBehavior *target)=0 |
| virtual void | AppendScriptObjects (ScriptList &objectList)=0 |
| virtual UID | ProcessReplace (const UIDRef &placedItem, const UIDRef &oldItem, bool16 useClippingFrame, IPlaceBehavior::eAfterPlace *afterPlace=nil, IItemsToPlaceData::ePlaceFrom placeFrom=IItemsToPlaceData::kPlaceGun)=0 |
| virtual bool16 | CanPlaceInto (const IPlaceBehavior &sourceItem, const ISpread *spread) const =0 |
| virtual bool16 | CanPlaceInto (eFrameKind newPageItemKind) const =0 |
| virtual bool16 | CanReplace () const =0 |
| virtual bool16 | CanConvertTo (eFrameKind newPageItemKind) const =0 |
| virtual ErrorCode | ProcessConvertTo (eFrameKind newPageItemKind, IControlView *controlView)=0 |
| virtual bool16 | IsEmpty () const =0 |
| virtual UID | ProcessReplaceMe (const UIDRef &placedItem, const UIDRef &oldItem, bool16 usePlaceGunFrame, IPlaceBehavior::eAfterPlace *afterPlace, IItemsToPlaceData::ePlaceFrom placeFrom=IItemsToPlaceData::kPlaceGun)=0 |
| virtual UID | ProcessReplaceChildren (const UIDRef &placedItem, const UIDRef &oldItem, bool16 usePlaceGunFrame, IPlaceBehavior::eAfterPlace *afterPlace)=0 |
| virtual eFrameKind | GetFrameKind () const =0 |
| virtual bool16 | IsFromMaster (const IHierarchy *targetHier, const ISpread *targetSpread) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface used to determine how a place operation behaves over a particular target. Both the source (the content being placed) and the target (where the place occurs) can implement their own behaviors.
A base implementation is defined in CGraphicPlaceBehavior; most subclassers should start there.
Optional actions to perform after the place completes.
Types of place given various UI gestures
| pure virtual |
Append a list of script objects corresponding to the source content. If this content can be loaded into the place gun, these script objects will be considered children of the place gun.
| the | list to which to append the script objects INOUT |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Can the frame corresponding to "this" object be converted to a new type.
| newPageItemKind | IN the new type |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Can the source item be placed into "this" object
| sourceItem | IN the place behavior of the object being placed |
| spread | IN the destination spread (used for master spread relationship) |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Can a source item of a given type be placed into "this" object
| newPageItemKind | IN the type of the source item |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Can "this" item be replaced
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Get the frame kind of "this" content.
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Is the frame corresponding to "this" object empty?
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Is targetHier from a different spread (thus from a master spread)?
| targetHier | IN the target item's hierarchy (might be a master page item) |
| targetSpread | IN target spread |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Perform a ConvertTo operation.
| newPageItemKind | IN which frame kind should the object be converted to |
| controlView | IN controlView parameter can be used by implementation if selection changes need to be made. |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Perform a Place operation
| targetItem | IN target for the place |
| parent | IN parent of the placed object(s) |
| points | IN location of the place |
| finalModifiers | IN modifier key state |
| startingModifiers | IN modifier key state |
| spread | IN spread where place is to occur |
| afterPlace | INOUT what should happen after the place (optional) |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Perform a Replace operation (new item replaces an existing one)
| placedItem | IN new item |
| oldItem | IN exiting item |
| useClippingFrame | IN retain the clipping frame |
| afterPlace | INOUT what should happen after the replace |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Utility routine to replace the children of the target object (Me)
| placedItem | IN item to be placed |
| oldItem | IN item to replace |
| usePlaceGunFrame | IN use or strip off the frame around the item from the place gun |
| afterPlace | INOUT what should happen after the replace |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
Utility routine to replace the target object (Me)
| placedItem | IN item to be placed |
| oldItem | IN item to replace |
| usePlaceGunFrame | IN use or strip off the frame around the item from the place gun |
| afterPlace | INOUT what should happen after the replace |
Implemented in CGraphicPlaceBehavior.
| pure virtual |
ProcessReplacePreserveState gives this a chance to set itself and srcRoot to values from target. Note: newItem may or may not be the same item as "this" interface.
| newItem | IN the source's place behavior |
| target | IN the target's place behavior |
Implemented in CGraphicPlaceBehavior.