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

Public Types | |
| enum | { kDefaultIID = IID_IBLACKBOXCOMMANDS } |
Public Member Functions | |
| virtual ErrorCode | AddData (const UIDRef &obj, BlackBoxKey key, void *buffer, int32 length)=0 |
| virtual ErrorCode | AddData (const XMLReference &obj, BlackBoxKey key, void *buffer, int32 length)=0 |
| virtual ErrorCode | RemoveData (const UIDRef &obj, BlackBoxKey key)=0 |
| virtual ErrorCode | RemoveData (const XMLReference &obj, BlackBoxKey key)=0 |
| virtual int32 | GetData (const UIDRef &obj, BlackBoxKey key, void *buffer, int32 amountToRead)=0 |
| virtual int32 | GetData (const XMLReference &obj, BlackBoxKey key, void *buffer, int32 amountToRead)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is an interface to a container for generic data. Use this interface if you want to attach data to an InDesign document, but you want complete control and responsibility over how the data is managed.
| pure virtual |
Processes a command to add data to a UID-based object's black box.
| obj | specify which object gets the data |
| key | what key the data will be stored under for later refetch |
| buffer | buffer containing the data to write |
| length | number of bytes to write |
| pure virtual |
Processes a command to add data to an XML element's black box.
| obj | specify which object gets the data |
| key | what key the data will be stored under for later refetch |
| buffer | buffer containing the data to write |
| length | number of bytes to write |
| pure virtual |
Processes a command to retrieve data from the UID-based object's black box.
| obj | specify which object to get |
| key | what key the data was be stored under originally |
| buffer | OUT buffer where the data will be put |
| amountToRead | maximum amount to read |
| pure virtual |
Processes a command to retrieve data from the XML element's black box.
| obj | specify which object to get |
| key | what key the data was be stored under originally |
| buffer | OUT buffer where the data will be put |
| amountToRead | maximum amount to read |
| pure virtual |
Processes a command to remove data from the UID-based object's black box.
| obj | specify which object to remove from |
| key | what key the data was be stored under originally |
| pure virtual |
Processes a command to remove data from an XML element's black box.
| obj | specify which object to remove from |
| key | what key the data was be stored under originally |