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

Public Types | |
| enum | { kDefaultIID = IID_ITEXTATTRMISSINGIMPLDATA } |
| enum | MissingAttributeType { kTreatAsDefault = 0, kTreatAsBlackBox = 1 } |
Public Member Functions | |
| virtual void | Set (const ClassID &classId, MissingAttributeType missingType, int16 dataLength, uchar *adoptDataBuffer)=0 |
| virtual void | Set (const ClassID &classId, MissingAttributeType treatAsBlackBox, IPMUnknown *adoptAttr)=0 |
| virtual ClassID | GetClassID () const =0 |
| virtual int16 | GetDataLength () const =0 |
| virtual const uchar * | GetDataBuffer () const =0 |
| virtual IPMUnknown * | QueryEmbeddedAttribute (PMIID faceID=IID_IUNKNOWN) const =0 |
| virtual bool16 | TreatAsBlackBox () 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 |
This interface is used for wrapping attributes which may go missing if the plug-in that supplies them is missing. It controls the persistence of the attribute, how it is compared with other attributes, how it is copied from one AttributeBossList to another.
| pure virtual |
Return the classID of the wrapped (embedded) attribute.
| pure virtual |
Return a buffer containing the last used persisted form of the attribute.
| pure virtual |
Return the number of bytes used for persisting the embedded attribute.
| pure virtual |
Return the embedded attribute as an instantiated object. This may return nil if the plug-in that supplied the attribute is missing.
| faceID | which interface of the attribute to return |
| pure virtual |
Initialize a blank new attribute. Use this form if you are reading the attribute in from disk.
| classId | the classID of the embedded attribute |
| missingType | how to treat the attribute within the system (black box or not) |
| dataLength | length of serialized data in bytes |
| adoptDataBuffer | buffer containing serialized data for embedded attribute. This pointer is adopted by the object, and will be deleted when the wrapper missing attribute is deleted. |
| pure virtual |
Initialize a blank new attribute. Use this form if you have an instantiated attribute that needs to be wrapped.
| classId | the classID of the embedded attribute |
| treatAsBlackBox | how to treat the attribute within the system (black box or not) |
| adoptAttr | pointer to the attribute to embed. This pointer is adopted by the object, and will be deleted when the wrapper missing attribute is deleted. |
| pure virtual |
Returns whether the attribute should be treated a "black box" attribute. Black box attributes are copied even if the plug-in is missing, are always ignored on open (no warning to the user on opening the doc with the plug-in missing), and the data for these objects will not be converted.