InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPasteBehavior Class Referenceabstract

#include <IPasteBehavior.h>

Inheritance diagram for IPasteBehavior:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPASTEBEHAVIOR }
 

Public Member Functions

virtual bool16 CanPasteInto (UIDRef pasteInsideSourceScrap) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This is a call-back interface that provides information used when pasting a page item. A page item boss should include this interface if it needs to control how it is pasted into another page item.

Member Function Documentation

virtual bool16 IPasteBehavior::CanPasteInto (UIDRef pasteInsideSourceScrap) const
pure virtual

Tests if the boss aggregating this interface can be pasted into a specified target.

Parameters
pasteInsideSourceScrapvalid UIDRef to item that would be pasted.
Returns
kTrue if it's OK to paste pasteInsideSourceScrap into this; kFalse if not.