![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_ILINKFACADE } |
Public Member Functions | |
LinkResource command methods | |
| virtual ErrorCode | CreateResource (IDataBase *db, const URI &uri, LinkClientID clientId, const PMString &formatType, UID &resourceUID) const =0 |
| virtual ErrorCode | DeleteResources (const UIDList &resources) const =0 |
| virtual ErrorCode | ReinitResource (const UIDRef &resourceRef, const URI &uri) const =0 |
| virtual bool | CanRelinkResource (const UIDRef &resourceRef) const =0 |
| virtual ErrorCode | RelinkResource (const UIDRef &resourceRef, const URI &uri, UIFlags uiFlags) const =0 |
| virtual ErrorCode | UpdateResourceStates (const UIDList &resources, ILinkManager::OperationType opType) const =0 |
| virtual ErrorCode | ResolveResources (const UIDList &resources, const URI &relativeURI, bool bIgnoreStamp) const =0 |
| virtual ErrorCode | FindMissingResources (IDataBase *db, LinkClientID clientId, const URI &relativeURI, bool bIgnoreStamp, bool bUpdateLinks, UIFlags uiFlags, uint32 &nFixed) const =0 |
| virtual WideString | GetResourceLongName (const UIDRef &resourceRef) const =0 |
| virtual PMString | GetResourceFormatType (const UIDRef &resourceRef) const =0 |
| virtual uint64 | GetResourceSize (const UIDRef &resourceRef) const =0 |
| virtual uint32 | GetResourceLinks (const UIDRef &resourceRef, bool bChildLinksOK, UIDList &links) 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 |
Link command methods | |
| enum | LinkStatus { kLinkUpToDate = 0, kLinkOutOfDate, kLinkResourceEmbedded, kLinkResourceCached, kLinkResourceContained, kLinkResourceMissing, kLinkResourceInaccessible, kLinkResourcePending, kLinkResourceUnknown } |
| virtual ErrorCode | CreateLink (IDataBase *db, ILink::LinkType type, LinkClientID clientId, UID objectUID, UID resourceUID, bool bSetLinkModified, UID &linkUID) const =0 |
| virtual ErrorCode | CreateLink (IDataBase *db, ILink::LinkType type, LinkClientID clientId, UID objectUID, const URI &resourceURI, bool bSetLinkModified, UID &linkUID) const =0 |
| virtual ErrorCode | CreateLink (IDataBase *db, ClassID classID, LinkClientID clientId, UID objectUID, UID resourceUID, bool bSetLinkModified, UID &linkUID) const =0 |
| virtual ErrorCode | CreateLink (IDataBase *db, ClassID classID, LinkClientID clientId, UID objectUID, const URI &resourceURI, bool bSetLinkModified, UID &linkUID) const =0 |
| virtual ErrorCode | DeleteLinks (const UIDList &links, bool bDeleteResource, bool bDeleteChildren) const =0 |
| virtual ErrorCode | DeleteLinksByObject (const UIDList &objects, bool bDeleteResource, bool bDeleteChildren) const =0 |
| virtual ErrorCode | AttachLink (const UIDRef &objectRef, UID linkUID) const =0 |
| virtual bool | CanEmbedLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | EmbedLinks (const UIDList &links) const =0 |
| virtual bool | CanUnembedLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | UnembedLinks (const UIDList &links, UIFlags uiFlags) const =0 |
| virtual ErrorCode | UnembedLinks (const UIDList &links, const URI &uri, UIFlags uiFlags) const =0 |
| virtual bool | CanUpdateLink (const UIDRef &linkRef, bool bForceUpdate) const =0 |
| virtual ErrorCode | UpdateLink (const UIDRef &linkRef, bool bForceUpdate, UIFlags uiFlags, UID &newLinkUID) const =0 |
| virtual ErrorCode | UpdateLinks (const UIDList &links, bool bForceUpdate, UIFlags uiFlags, bool bScheduleCmd, UIDList *pNewLinks=nil) const =0 |
| virtual ErrorCode | UpdateLinksRecursively (const UIDList &links, bool bForceUpdate, UIFlags uiFlags, bool bScheduleCmd) const =0 |
| virtual bool | CanRelinkLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | RelinkLink (const UIDRef &linkRef, const URI &uri, UIFlags uiFlags, UID &newLinkUID) const =0 |
| virtual ErrorCode | RelinkLinksToFolder (const UIDList &links, const IDFile &folder, const WideString &extension, UIFlags uiFlags, UIDList &skippedLinks) const =0 |
| virtual ErrorCode | RelinkLinksExtension (const UIDList &links, const WideString &extension, UIFlags uiFlags, UIDList &skippedLinks) const =0 |
| virtual bool | CanCopyLinkToFolder (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | CopyLinksToFolder (const UIDList &links, const IDFile &folder, bool bRelink, UIFlags uiFlags) const =0 |
| virtual ErrorCode | UpdateLinkStates (const UIDList &links) const =0 |
| virtual ErrorCode | SetLinkResourceModStates (const UIDList &links, ILink::ResourceModificationState modState) const =0 |
| virtual bool | CanEditLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | EditLink (const UIDRef &linkRef, const AppInfo &appInfo, PMString *errorString) const =0 |
| virtual bool | CanGoToSource (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | GoToSource (const UIDRef &linkRef, PMString *errorString) const =0 |
| virtual bool | CanRevealLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | RevealLink (const UIDRef &linkRef) const =0 |
| virtual bool | CanRevealLinkInBridge (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | RevealLinkInBridge (const UIDRef &linkRef) const =0 |
| virtual bool | CanRevealLinkInCloudLibraries (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | RevealLinkInCloudLibraries (const UIDRef &linkRef) const =0 |
| virtual bool | CanGotoLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | GotoLink (const UIDRef &linkRef, PMString *errorString) const =0 |
| virtual bool | CanPackageLink (const UIDRef &linkRef) const =0 |
| virtual UID | GetLinkResource (const UIDRef &linkRef) const =0 |
| virtual UID | GetLinkObject (const UIDRef &linkRef) const =0 |
| virtual bool | LinkHasChildren (const UIDRef &linkRef) const =0 |
| virtual LinkStatus | GetLinkStatus (const UIDRef &linkRef, bool bUpdateState) const =0 |
| virtual bool | CanReplaceFPOWithOriginalLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | ReplaceFPOWithOriginalLink (const UIDRef &linkRef, UIFlags uiFlags, bool16 bIgnoreErrors, UIDList &newLinkUIDs) const =0 |
| virtual ErrorCode | ReplaceAllFPOWithOriginalLinks (const UIDList &links, UIFlags uiFlags, bool16 bIgnoreErrors, UIDList *pNewLinks=nil) const =0 |
| virtual bool | CanDownloadOriginalLink (const UIDRef &linkRef) const =0 |
| virtual ErrorCode | DownloadOriginalLink (const UIDRef &linkRef, bool async=true) const =0 |
| virtual ErrorCode | DownloadAllOriginalLinks (const UIDList &links, bool async=true) const =0 |
| virtual bool | GetHTTPLinksDefaultRenditionType (ILinkResourceRenditionData::ResourceRenditionType &type) const =0 |
| virtual ErrorCode | SetHTTPLinksDefaultRenditionType (const ILinkResourceRenditionData::ResourceRenditionType &type) const =0 |
Identifiers that denote the combined status of a link and its linked resource. The identifiers take into account the link's resource and object modification states, as well as the link's linked resource's state and stored state. The identifiers are used to get the combined status of a link and its linked resource. The state may not be the actual current state of the resource.
| pure virtual |
Attaches an existing link to an object. The previous object linked is forgotten but unaffected.
| objectRef | [IN] UIDRef of the object to attach the link to. |
| linkUID | [IN] UID of the link. |
| pure virtual |
Determines if a link's resource can be copied to a folder.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if the original for an FPO resource can be downloaded.
| linkRef | [IN] UIDRef of the link to be downloaded. |
| pure virtual |
Determines if a link's resource can be edited.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link's resource can be embedded.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines whether a link's linked object can be displayed.
| linkRef | [IN] UIDRef of the link to check. |
| pure virtual |
Determines if a link's resource can be opened in InDesign.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link's resource can be packaged.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link can be relinked.
| linkRef | [IN] UIDRef of the link to check. |
| pure virtual |
Determines if a resource can be relinked.
| resourceRef | [IN] UIDRef of the link resource to check. |
| pure virtual |
Determines if a resource which is a placeholder(FPO) can be replaced.
| linkRef | [IN] UIDRef of the link to be replaced. |
| pure virtual |
Determines if a link's resource can be revealed in the system's file browser.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link's resource can be revealed in Adobe Bridge.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link's resource can be revealed in CC Libraries panel.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link's resource can be unembedded.
| linkRef | [IN] UIDRef of the link whose resource to check. |
| pure virtual |
Determines if a link can be updated.
| linkRef | [IN] UIDRef of the link to check. |
| bForceUpdate | [IN] Denotes whether the update will be forced. \ True if the update will be forced, else false. |
| pure virtual |
Copies links' resources to the specified folder, and optionally relinks the resources to point to the new location.
| links | [IN] List of links whose resources to copy. |
| folder | [IN] Folder to copy the resources to. |
| bRelink | [IN] Denotes whether to relink the resources to the files in the destination folder. |
| uiFlags | [IN] Denotes whether to allow UI during the copy operation. |
| pure virtual |
Creates a new link of the given type.
| type | [IN] Type of link to create. |
| clientId | [IN] Link client identifier of the link to create. |
| objectRef | [IN] UIDRef of the link object to link. |
| resourceRef | [IN] UIDRef of the link resource to link. The resource must have the same LinkClientID as the link. |
| bSetLinkModified | [IN] Denotes whether to set the created link as modified or not. If the link is to be updated after creation, pass true; else set to false. |
| linkUID | [OUT] UID of the created link. kInvalidUID if the create fails. |
| pure virtual |
Creates a new link of the given type.
| type | [IN] Type of link to create. |
| clientId | [IN] Link client identifier of the link to create. |
| objectRef | [IN] UIDRef of the link object to link. |
| resourceURI | [IN] URI of the link resource to link. |
| bSetLinkModified | [IN] Denotes whether to mark the created link as modified or not. If the link is to be updated after creation, pass true; else set to false. |
| linkUID | [OUT] UID of the created link. kInvalidUID if the create fails. |
| pure virtual |
Creates a new link of the given class.
| classID | [IN] Class identifier of link to create. |
| clientId | [IN] Link client identifier of the link to create. |
| objectRef | [IN] UIDRef of the link object to link. |
| resourceRef | [IN] UIDRef of the link resource to link. The resource must have the same LinkClientID as the link. |
| bSetLinkModified | [IN] Denotes whether to set the created link as modified or not. If the link is to be updated after creation, pass true; else set to false. |
| linkUID | [OUT] UID of the created link. kInvalidUID if the create fails. |
| pure virtual |
Creates a new link of the given class.
| classID | [IN] Class identifier of link to create. |
| clientId | [IN] Link client identifier of the link to create. |
| objectRef | [IN] UIDRef of the link object to link. |
| resourceURI | [IN] URI of the link resource to link. |
| bSetLinkModified | [IN] Denotes whether to mark the created link as modified or not. If the link is to be updated after creation, pass true; else set to false. |
| linkUID | [OUT] UID of the created link. kInvalidUID if the create fails. |
| pure virtual |
Creates a new link resource from a URI.
| db | [IN] Database to create the link resource in. |
| uri | [IN] URI of the link resource to create. |
| clientId | [IN] Link client identifier of the resource to create. |
| formatType | [IN] Resource's import/export format type. |
| resourceUID | [OUT] UID of the created link resource. kInvalidUID if the create fails. |
| pure virtual |
Deletes links.
| links | [IN] List of links to delete. |
| bDeleteResource | [IN] Denotes whether to delete the link resource held by a link if it is not referenced by any other link. |
| bDeleteChildren | [IN] Denotes whether to delete child links of the link being deleted. |
| pure virtual |
Deletes links that are associated with the given link object UIDs.
| objects | [IN] List of link objects whose associated links to delete. |
| bDeleteResource | [IN] Denotes whether to delete the link resource held by a link if it is not referenced by any other link. |
| bDeleteChildren | [IN] Denotes whether to delete child links of the link being deleted. |
| pure virtual |
Deletes link resources. \ A resource that is currently referenced by a link cannot be deleted. \ The resource's child resources (and associated child links) are also deleted as long as no other resources or links reference them.
| resources | [IN] List of link resources to delete. |
| pure virtual |
Downloads the original links for all the placeholder links.
| links | [IN] List of links to download. |
| async | [IN] Whether the download is synchronous or asynchronous. |
| pure virtual |
Downloads the original asset for the given placeholder link resource.
| linkRef | [IN] UIDRef of the link whose original asset is downloaded. |
| async | [IN] Whether the download is synchronous or asynchronous. |
| pure virtual |
Edits a link's resource.
| linkRef | [IN] UIDRef of the link whose resource to edit. |
| appInfo | [IN] Indicates which app to edit the resource with. kNullAppInfo to use the default editor. |
| errorString | [OUT] If editing fails, this fills out an error message when the string pointer is non-nil |
| pure virtual |
Embeds link resources.\ Note: Embedding a link will never result in a new UID for the link.
| links | [IN] List of links whose resources to embed. |
| pure virtual |
Attempts to automatically find (without user interaction) the location of missing link resources, and optionally update out-of-date links that reference the found resources.
| db | [IN] Database whose missing link resources to find. |
| clientId | [IN] Link client identifier of the missing resources to find. |
| relativeURI | [IN] Relative location of where to start the search. \ For example, this is often the location of the document, and depending upon the protocal of the link may not be utilized. |
| bIgnoreStamp | [IN] Denotes whether to ignore the missing resources' stamps when looking for potential matches. If true, matches are based on the name of the resource only, else matches are based on the resources name and stamp. |
| bUpdate | [IN] Denotes whether to update out-of-date links that reference the missing resources that were found. |
| uiFlags | [IN] Denotes whether to allow UI during the operation. |
| nFixed | [OUT] Number of missing resources found. |
| pure virtual |
Gets the Default rendition type for HTTP Links
| type | [OUT] current default rendition type for HTTP links |
Returns a link's linked object.
| linkRef | [IN] UIDRef of the link. |
Returns a link's linked resource.
| linkRef | [IN] UIDRef of the link. |
| pure virtual |
Returns the combined status of a link and its linked resource.
| linkRef | [IN] UIDRef of the link. |
| bUpdateState | [IN] Denotes whether to update the resource and link states first, so the returned status is a current status rather than the cached status. |
| pure virtual |
Returns a link resource's import/export format type.
| resourceRef | [IN] UIDRef of the link resource. |
| pure virtual |
Returns the links linked to a link resource.
| resourceRef | [IN] UIDRef of the link resource. |
| bChildLinksOK | [IN] Denotes whether to include child links in the result. |
| links | [OUT] List of links linked to the resource. |
| pure virtual |
Returns a link resource's long name.\ For a file link, the long name is the resource's file path.
| resourceRef | [IN] UIDRef of the link resource. |
| pure virtual |
Returns a link resource's data size in bytes.
| resourceRef | [IN] UIDRef of the link resource. |
| pure virtual |
Displays a link's linked object.
| linkRef | [IN] UIDRef of the link whose linked object to go to. |
| errorString | [OUT] If the goto fails, this fills out an error message when the string pointer is non-nil |
| pure virtual |
Opens a link's resource in InDesign.
| linkRef | [IN] UIDRef of the link whose resource to open. |
| errorString | [OUT] If opening fails, this fills out an error message when the string pointer is non-nil |
| pure virtual |
Returns whether a link has child links.
| linkRef | [IN] UIDRef of the link. |
| pure virtual |
Reinitializes a link resource with a the given URI while preserving the link resource's current UID. The state of the link resource is the same as if it were newly created.
| resourceRef | [IN] UIDRef of the link resource to reintialize. |
| uri | [IN] URI of the link resource. |
| pure virtual |
Relinks a link to the item specified by the given URI.
| linkRef | [IN] UIDRef of the link to relink. |
| uri | [IN] URI of the item to relink to. |
| uiFlags | [IN] Denotes whether to allow UI during the relink operation. |
| newLinkUID | [OUT] UID of the link as a result of the relink, which may or may not be the same as the UID of the link before the relink operation. |
| pure virtual |
Relinks links' resources to a file with a matching base name and the specified extension in the same folder as the original file.
| links | [IN] List of links whose resources to relink. |
| extension | [IN] New extension of the files to be relinked. |
| uiFlags | [IN] Denotes whether to allow UI during the relink operation. |
| skippedLinks | [IN] List of the link UIDs that could not be relinked because no matching file with the given extension existed. |
| pure virtual |
Relinks links' resources to a file with a matching name in the specified folder.
| links | [IN] List of links whose resources to relink. |
| folder | [IN] Folder to relink the resources to. |
| extension | [IN] If not blank, the resources are relinked to a matching file with the given extension. |
| uiFlags | [IN] Denotes whether to allow UI during the relink operation. |
| skippedLinks | [IN] List of the link UIDs that could not be relinked because no matching file existed. |
| pure virtual |
Relinks a link resource to the item specified by the given URI, and updates all the links that reference the resource.
| resourceRef | [IN] UIDRef of the link resource to relink. |
| uri | [IN] URI of the item to relink to. |
| uiFlags | [IN] Denotes whether to allow UI during the relink operation. |
| pure virtual |
Replaces the placeholder links with the original links.
| links | [IN] List of links to replace. |
| uiFlags | [IN] Denotes whether to allow UI during the replace operation. |
| bIgnoreErrors | [IN] Denotes whether to ignore intermediate errors for some of the links. |
| pNewLinks | [OUT] List of the resulting links of the replace with original operation. The nth link in the newLinks UIDList corresponds the nth link in the given links UIDList, and may or may not be the same as the input UID. kInvalidUID is returned for links that have been deleted as a result of the replace. |
| pure virtual |
Replaces a link resource which is a placeholder (FPO) with the original.
| linkRef | [IN] UIDRef of the link. |
| uiFlags | [IN] Denotes whether to allow UI during the replace operation. |
| bIgnoreErrors | [IN] Denotes whether to ignore intermediate errors for some of the links. |
| newLinkUIDs | [OUT] UIDList of the links as a result of the replace to original. Link UIDs may change as a result of this operation. |
| pure virtual |
Attempts to automatically (find without user interaction) the location of a link resource.
| resources | [IN] List of link resources to update. |
| relativeURI | [IN] Relative location of where to start the search. \ For example, this is often the location of the document, and depending upon the protocal of the link may not be utilized. |
| bIgnoreStamp | [IN] Denotes whether to ignore the resource's stamp when looking for potential matches. |
| pure virtual |
Reveals a link's resource in the system's file browser.
| linkRef | [IN] UIDRef of the link whose resource to reveal. |
| pure virtual |
Reveal a link's resource in Adobe Bridge.
| linkRef | [IN] UIDRef of the link whose resource to reveal in Adobe Bridge. |
| pure virtual |
Reveale a link's resource in CC Libraries.
| linkRef | [IN] UIDRef of the link whose resource to reveal in CC Libraries. |
| pure virtual |
Sets the Default rendition type for HTTP Links
| type | [IN] the new default rendition type value |
| pure virtual |
Set links' resource modification states to to the given state.
| links | [IN] List of links to set. |
| modState | [IN] Resource modification state to set the links to. |
| pure virtual |
Unembeds link resources to the location they were embedded from.\ Note: Unembedding a link will never result in a new UID for the link.
| links | [IN] List of links whose resources to unembed. |
| uiFlags | [IN] Denotes whether to allow UI during the unembed operation. |
| pure virtual |
Unembeds link resources to the location specified by the given URI.\ Note: Unembedding a link will never result in a new UID for the link.
| links | [IN] List of links whose resources to unembed. |
| uri | [IN] URI of the location where to unembed the link resources. \ For example, if the URI is a file URI, it specifies the target folder of the unembedded link resource files. |
| uiFlags | [IN] Denotes whether to allow UI during the unembed operation. |
| pure virtual |
Update a link.
| linkRef | [IN] UIDRef of the link to update. |
| bForceUpdate | [IN] Denotes whether to force an update, or to only update if needed. \ True to force an update, false to only update if needed. |
| uiFlags | [IN] Denotes whether to allow UI during the update operation. |
| newLinkUID | [OUT] UID of the link as a result of the update, which may or may not be the same as the UID of the link before the update operation. |
| pure virtual |
Updates links.
| links | [IN] List of links to update. |
| bForceUpdate | [IN] Denotes whether to force an update, or to only update if needed. \ True to force an update, false to only update if needed. |
| uiFlags | [IN] Denotes whether to allow UI during the update operation. |
| bScheduleCmd | [IN] Denotes whether to schedule or process the update links request. \ True to schedule the update for later, false to process the update now. |
| pNewLinks | [OUT] List of the resulting links of the update operation. To ignore the optional parameter pass nil, the default. This parameter is also ignored if the update links request is scheduled.\ The nth link in the newLinks UIDList corresponds the nth link in the given links UIDList, and may or may not be the same as the given UID. kInvalidUID is returned for links that have been deleted as a result of the update. |
| pure virtual |
Updates links Recursively.
| links | [IN] List of links to update. |
| bForceUpdate | [IN] Denotes whether to force an update, or to only update if needed. \ True to force an update, false to only update if needed. |
| uiFlags | [IN] Denotes whether to allow UI during the update operation. |
| bScheduleCmd | [IN] Denotes whether to schedule or process the update links request. \ True to schedule the update for later, false to process the update now. |
| pure virtual |
Updates links' resource modification states to modified if the resource has been modified.
| links | [IN] List of links to update. |
| pure virtual |
Updates the state of link resources.
| resources | [IN] List of link resources to update. |
| opType | [IN] Denotes whether to perform the state update operations asynchronously or synchronously. |