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

Public Types | |
| enum | { kDefaultIID = IID_ISCRAPUTILS } |
Public Member Functions | |
| virtual void | CopyObjects (const UIDList *srcItems, UIDList *destItems, IPMUnknown *pmobject=nil)=0 |
| virtual UID | CopyObject (const UIDRef &srcItem, IDataBase *targetDB, IPMUnknown *pmobject=nil)=0 |
| virtual UID | CopyMappedObject (const UIDRef &srcItem, IDataBase *targetDB, IPMUnknown *pmobject=nil)=0 |
| virtual void | CopyObjectInto (IPMUnknown *sourceItem, IPMUnknown *destinationItem, bool16 dirtyDestination)=0 |
| virtual void | CopyPageItemObjects (const UIDList *srcItems, UIDList *destItems, IPMUnknown *pmobject=nil)=0 |
| virtual UID | CopyPageItemObject (const UIDRef &srcItem, IDataBase *targetDB, IPMUnknown *pmobject=nil)=0 |
| virtual bool16 | IsScrapDB (IDataBase *db)=0 |
| virtual void | UpdateOriginalLayerOnPaste (const UIDList &items)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IID_ISCRAPUTILS interface; Uitlity functions that helps make a copy of item(s) adding to destination database. The parameter IPMUnknown* pmobject = nil has root to as early as 1998 (change list #6), but not sure what it is exactly for; Our current code base has just a few instance of usage, I will list the usage instead.
| pure virtual |
Makes a copy of the source item in the target database. Use this function only if you are copying an object (during mapping) which is being mapped. This doesn't use IXReferenceUID to keep track of copy context, rather uses IMappingSession for that purpose.
| srcItem | IN Item to copy. |
| *targetDB | IN Target DB. |
| pmobject | IN ?.Passed in from IReferenceConverter::ConvertReference |
| pure virtual |
Makes a copy of the source item in the target database.
| srcItem | IN Item to copy. |
| *targetDB | IN Target DB. |
| pmobject | IN ?.Passed in from IReferenceConverter::ConvertReference |
| pure virtual |
Writes the source item into a temporary stream and then reads the stream into the destination item.
| sourceItem | IN Source item. |
| destinationItem | OUT Destination item. |
| dirtyDestination | IN Should the destination item be dirtied. |
| pure virtual |
Makes a copy of each of the items on the source list. The new item is added to the destItems list. The target database for the new items is the database passed in with destItems.
| srcItems | IN Items to copy. |
| destItems | OUT New copied items. |
| pmobject | IN ?. No usage in core code base |
| pure virtual |
Makes a copy of the source item in the target database, ignoring the IHierarchy interface
| srcItem | IN Item to copy. |
| *targetDB | IN Target DB. |
| pmobject | IN ? No usage except called by CopyPageItemObjects. |
| pure virtual |
Makes a copy of each of the pageitems on the srcItems. The new item is added to the destItems list. The target database for the new pageitems is the database passed in with destItems.
| srcItems | IN Items to copy. |
| destItems | OUT Items copied. |
| pmobject | IN ?. Only usage in PasteGraphicItemCmd, pass in this pointer of Command |
| pure virtual |
Returns Used to check to see if a given database is the scrap database.
| db | IN IDatabase to test. |
| pure virtual |
Internal use only - please do not use this Update the original layer information, which was there in the source before grouping items after the paste/drop is completed
| newItems | IN list of pasted items. |