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

Public Types | |
| enum | { kDefaultIID = IID_ICOPYCMDDATA } |
Public Member Functions | |
| virtual void | Set (ICommand *rootCmd, UIDList *inputItems, const UIDRef &parent, IDataExchangeHandler *destinationHandler=nil)=0 |
| virtual void | SetTransform (const PMMatrix &transform)=0 |
| virtual void | SetOffset (const PMPoint &offset)=0 |
| virtual void | SetParent (const UIDRef &parent)=0 |
| virtual const UIDRef & | GetParent () const =0 |
| virtual const UIDList * | GetInputItems () const =0 |
| virtual const PMMatrix & | GetTransform () const =0 |
| virtual bool16 | GetTransformWasExplicitlySet () const =0 |
| virtual const PBPMPoint & | GetOffset () const =0 |
| virtual const UIDList * | GetTotalList ()=0 |
| virtual ICommand * | GetCopyCmd (UID id)=0 |
| virtual ICommand * | GetRootCmd () const =0 |
| virtual ICommand * | GetCopyCmd (ClassID clsID, int32 which, int32 *index=nil)=0 |
| virtual void | ReleaseDestinationHandler ()=0 |
| virtual IDataExchangeHandler * | GetDestinationHandler () const =0 |
| virtual void | SetCopySourceCMSProfilesToTarget (bool16 bCopyProfiles)=0 |
| virtual bool16 | CopySourceCMSProfilesToTarget () 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 |
Data interface for copying and duplicating page items.
| pure virtual |
Retrieve value set in SetCopySourceCMSProfilesToTarget for whether color profiles should be copied to target.
Return the copy command for an item, may return nil.
| id | UID of item to copy. |
| pure virtual |
Return a particular sub command
| clsID | the ClassID of the command you are searching for. |
| which | specify the index of command with the given ClassID you are searching for. |
| index | When called recursively, index should always be non-nil. |
| pure virtual |
Returns the target dataHandler. If nil, this means the destination is the clipboard.
| pure virtual |
Returns the list of items that have been set.
| pure virtual |
Returns the value from SetOffset. Defaults to 0.0, 0.0
| pure virtual |
Return the parent for the target of the copied items. Could be the scrap, a spread layer, or other.
| parent | the destination parent for the command (often the scrap or a spread layer) |
| pure virtual |
Returns the command from the Set method above.
| pure virtual |
Returns the complete list of items, including items from any and all sub-commands.
| pure virtual |
Returns the value from SetTransform.
| pure virtual |
Used to determine if SetTransform has been called.
| pure virtual |
Commands often need access to the dataHandler that will be the target of a copy-to-scrap command. but the lifetime data handlers is very short because we revert scrap databases frequently. ReleaseDestinationHandler should be called soon after the command has completed, and definitely before the affected scrap gets reverted.
| pure virtual |
Set up the data need for a copy, paste, or duplicate command.
| rootCmd,root | command to hold all sub commands, typically is a kCopyCmdBoss, kDuplicateCmdBoss or other command that supports IID_ICOPYCMDDATA. |
| inputItems | the list of items. This interface takes ownership of the pointer. |
| parent | the destination parent for the command (often the scrap or a spread layer) |
| destinationHandler | Sets the target dataHandler. Defauts to nil, which means the destination is the clipboard. |
| pure virtual |
If the color profiles from the source document should be copied to the target, set to kTrue.
| bCopyProfiles | IN Set to kTrue if you need to copy color profiles. Defaults to kFalse. |
| pure virtual |
If the item being copied (pasted) needs to be offset then an offset should be supplied
| offset | IN the offset in pasteboard coordinates. |
| pure virtual |
Set the parent for the target of the copied items. Could be the scrap, a spread layer, or other.
| the | UIDRef of the parent for the target of the copied items. |
| pure virtual |
If the item being copied was a sub item of a frame or group then we want to capture the transform of all its parents so that when it is pasted it appears correctly oriented.
| transform |