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

Public Member Functions | |
| virtual ICommand * | GetPreDeleteCommand (ICommand *cmd, IScrapItem *scrapItem)=0 |
| virtual ICommand * | GetPostDeleteCommand (ICommand *cmd, IScrapItem *scrapItem)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Service interface that is called when a page item is deleted To use, create a Boss that implements IID_IK2SERVICEPROVIDER as kDeleteCleanupProviderImpl And IID_IDELETECLEANUP as a custom version of IDeleteCleanup...
An example is kBehaviorDeleteCleanupImpl that checks the IScrapItem parameter to see if it is referenced by behaviors, using IPageItemBehaviorXRef
| pure virtual |
Get a command to be executed after scrapItem is deleted
| cmd | The command being executed to delete scrapItem |
| scrapItem | page item being deleted |
| pure virtual |
Get a command to be executed before scrapItem is deleted
| cmd | The command being executed to delete scrapItem |
| scrapItem | page item being deleted |