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

#include <IPMUnknownData.h>

Inheritance diagram for IPMUnknownData:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPMUNKNOWNDATA }
 

Public Member Functions

virtual IPMUnknownGetPMUnknown (void) const =0
 
virtual void SetPMUnknown (IPMUnknown *)=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

Data interface used for holding a pointer to a non-persistent boss object. For persistent boss objects, use the UID instead (say, store in interface of type IUIDData).

The implementation of this interface owns the reference to the boss object.

See Also
IUIDData

Member Function Documentation

virtual IPMUnknown* IPMUnknownData::GetPMUnknown (void ) const
pure virtual

Get the value of the pointer. The value returned is NOT AddRef'd, so the caller is responsible for doing AddRef and (later) Release on the pointer.

Returns
IPMUnknown* the value of the data interface
virtual void IPMUnknownData::SetPMUnknown (IPMUnknown)
pure virtual

Set the value of the pointer. The old object it held, if there was one, is released, and the new pointer is AddRef'd.

Parameters
IPMUnknown*the new value of the data interface