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

Public Types | |
| enum | { kDefaultIID = IID_ILINKOBJECT } |
Public Member Functions | |
| virtual LinkClientID | GetClientID () const =0 |
| virtual bool | IsDirectLink () const =0 |
| virtual IPMUnknown * | QueryLinkedObject (const PMIID &interfaceId) const =0 |
| virtual bool | CanGotoLinkedObject () const =0 |
| virtual ErrorCode | GotoLinkedObject (PMString *errorString) const =0 |
| virtual bool | CanUpdate (const ILinkResource *iResource, UID linkUID, UIFlags uiFlags, ErrorCode &err) const =0 |
| virtual ClassID | GetImportProvider (const ILinkResource *iResource, UID linkUID) const =0 |
| virtual ErrorCode | Import (const ILinkResource *iResource, UID &linkUID, UIFlags uiFlags)=0 |
| virtual ClassID | GetExportProvider (const ILinkResource *iResource, UID linkUID) const =0 |
| virtual ErrorCode | Export (const ILinkResource *iResource, UID &linkUID, UIFlags uiFlags) const =0 |
| virtual ClassID | GetResolveProvider (const ILinkResource *iResource, UID linkUID) const =0 |
| virtual ErrorCode | Resolve (const ILinkResource *iResource, UID &linkUID, UIFlags uiFlags)=0 |
| virtual UIDList | GetLinks () const =0 |
| virtual void | MarkLinksModified () const =0 |
| virtual void | ClearLinksModified () 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 |
Friends | |
| class | LinkManager |
| class | ScrapLinkManager |
Proxy used to represent the item in an InDesign database being linked to. For example, a page item, an XML element, a style, or a range of text.
| pure virtual |
Determines whether the goto linked object operation link is supported.
| pure virtual |
Determines if an update should be allowed to proceed.
| iResource | [IN] Associated link resource. |
| linkUID | [IN] UID of the associated link. |
| uiFlags | [IN] Denotes whether to allow UI. |
| err | [OUT] Error code. |
Implemented in CLinkObject.
| pure virtual |
Called to notify all associated links that the object in no longer modified.
Implemented in CLinkObject.
| pure virtual |
Called by the associated link to initiate an export of the contents of the object out to an resource. \ NOTE: Export() should not be called directly, instead call Update() on the associated link.
| iResource | [IN] Link resource to export to. |
| linkUID | [IN/OUT] UID of the associated link. \ If a new link is created as a result of the export, then the returned UID will be the UID of the new link. |
| uiFlags | [IN] Denotes whether to allow UI during the export operation. |
| pure virtual |
Returns the object's link client identifier.
Implemented in CLinkObject.
| pure virtual |
Returns the class id of the update link service provider used to export the contents of the object out to an resource.
| iResource | [IN] Link resource to export to. |
| linkUID | [IN] UID of the associated link. |
Implemented in CLinkObject.
| pure virtual |
Returns the class id of the update link service provider used to import the contents of an resource into the object.
| iResource | [IN] Link resource to import from. |
| linkUID | [IN] UID of the associated link. |
Implemented in CLinkObject.
| pure virtual |
Gets the list of links that reference the object.
Implemented in CLinkObject.
| pure virtual |
Returns the class id of the update link service provider used to export and/or an import when both the object and the link resource have changed and the link needs to perform an update
| iResource | [IN] Link resource that has also changed. |
| linkUID | [IN] UID of the associated link. |
Implemented in CLinkObject.
| pure virtual |
Displays the object that is linked.
| errorString | [OUT] If the goto fails, this fills out an error message when the string pointer is non-nil |
| pure virtual |
Called by the associated link to initiate an import of the contents of an resource into the object. \ NOTE: Import() should not be called directly, instead call Update() on the associated link.
| iResource | [IN] Link resource to import from. |
| linkUID | [IN/OUT] UID of the associated link. \ If a new link is created as a result of the import, then the returned UID will be the UID of the new link. |
| uiFlags | [IN] Denotes whether to allow UI during the import operation. |
| pure virtual |
Determines whether this object is on the same boss as the object that owns the link (a direct link), or is on a different boss than the object that owns the link (an indirect link). \ A UID based object like a page item is an example of a direct link. A non-UID based object like an XML element is an example of an indirect link.
Implemented in CLinkObject.
| pure virtual |
Called to notify all associated links that the object has been modified.
Implemented in CLinkObject.
| pure virtual |
Returns the object with the given interface identifier that is on the same boss as the object that owns the link. \ If a direct link, the returned object will be on the same boss as this object. If an indirect link, the returned object will be on a different boss.
| interfaceId | [IN] Interface identifier of the object to retrieve. |
Implemented in CLinkObject.
| pure virtual |
Called by the associated link to initiate an export and/or an import when both the object and the link resource have changed and the link needs to perform an update. \ NOTE: Resolve() should not be called directly, instead call Update() on the associated link.
| iResource | [IN] Link resource that has also changed. |
| linkUID | [IN/OUT] UID of the associated link. \ If a new link is created as a result of the resolve, then the returned UID will be the UID of the new link. |
| uiFlags | [IN] Denotes whether to allow UI during the resolve operation. |