![]() | InDesign SDK 20.5 |

Public Types | |
| typedef CPMUnknown< ILinkResource > | inherited |
Public Member Functions | |
| CusDtLnkLinkAssetConverter (IPMUnknown *boss) | |
| virtual ResourceId | GetURI () const |
| virtual ResourceId | GetId () const |
| virtual bool | IsIdEquivalent (const ResourceId &id) const |
| virtual LinkClientID | GetClientID () const |
| virtual WideString | GetShortName (bool bUIName) const |
| virtual WideString | GetLongName (bool bUIName) const |
| virtual ResourceState | GetState () const |
| virtual void | SetState (ResourceState state) |
| virtual ResourceStoreState | GetStoreState () const |
| virtual void | SetContainedInObject () |
| virtual ResourceStamp | GetStamp () const |
| virtual void | SetStamp (const ResourceStamp &stamp) |
| virtual bool | IsStampEquivalent (const ResourceStamp &stamp) const |
| virtual IDTime | GetModTime () const |
| virtual void | SetModTime (const IDTime &time) |
| virtual uint64 | GetSize () const |
| virtual void | SetSize (uint64 size) |
| virtual FileTypeInfo | GetDataType () const |
| virtual PMString | GetFormatType () const |
| virtual void | SetFormatType (const PMString &formatType) |
| virtual bool | IsAccessSupported (AccessMode mode) const |
| virtual bool | CanQueryStream (AccessMode mode) const |
| virtual IPMStream * | QueryStream (AccessMode mode) const |
| virtual bool | CanCache () const |
| virtual ErrorCode | Cache () |
| virtual ErrorCode | Uncache () |
| virtual bool | CanEmbed () const |
| virtual ErrorCode | Embed () |
| virtual bool | CanUnembed () const |
| virtual ErrorCode | Unembed () |
| virtual bool | CanCopyToFile () const |
| virtual ErrorCode | CopyToFile (IDFile &file) const |
| virtual bool | CanEdit () const |
| virtual ErrorCode | Edit (const AppInfo &appInfo, PMString *errorString) |
| virtual bool | CanReveal () const |
| virtual ErrorCode | Reveal () |
| virtual bool | CanRevealInBridge () const |
| virtual ErrorCode | RevealInBridge () |
| virtual bool | CanRevealInCloudLibraries () const |
| virtual ErrorCode | RevealInCloudLibraries () |
| virtual bool | IsFPO () const |
| virtual bool | CanGetXMPPacketInfo () const |
| virtual bool | GetXMPPacketInfo (std::string &packet) const |
| virtual ResourceDownloadState | GetDownloadProgress (PMReal &progress) const |
| virtual bool | CanDownloadOriginal () const |
| virtual ErrorCode | DownloadOriginal () |
| virtual ErrorCode | AsyncDownloadOriginal (ILinkResource::DownloadCompletionFunction completionFunction) |
| virtual bool | CanReplaceFPOWithOriginal () const |
| virtual bool | CanProvideFile () const |
| virtual ErrorCode | GetFile (IDFile &idFile) const |
| virtual void | AddChildren (const UIDList &children) |
| virtual void | DeleteChildren (const UIDList &children) |
| virtual uint32 | GetChildren (UIDList &children) const |
| virtual uint32 | GetNumChildren () const |
| virtual uint32 | GetParents (UIDList &parents) const |
| virtual ErrorCode | CopyAttributes (const UIDRef &resourceRef) |
| virtual ErrorCode | EmbedFromStream (IPMStream *stream) |
| virtual ErrorCode | Init (IDataLink *iDataLink, const URI &uri) |
| virtual bool | CanGetLinkInstance () const |
| virtual ErrorCode | GetlinkInstance (PMString &pmStr) const |
Public Member Functions inherited from CPMUnknown< ILinkResource > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from CPMUnknown< ILinkResource > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< ILinkResource > | |
| HelperInterface | fHelperInterface |
| inlinevirtual |
Downloads the original asset asynchronously for the given placeholder link resource.
| completionFunction | function to invoke when download has completed. |
Implements ILinkResource.
| inlinevirtual |
Caches the resource. \ If the resource is already cached, then attempts to update the cache from the resource.
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be cached by calling Cache(). \ Embedded resources are never are cacheable.
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be copied to a file by calling CopyToFile().
Implements ILinkResource.
| inlinevirtual |
Determines if a resource which is a placeholder(FPO) can be downloaded.
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be edited by calling Edit(). \ Embedded resources are never editable.
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be embedded by calling Embed().
Implements ILinkResource.
| inlinevirtual |
Determines if a link instance can be obtained.
Implements ILinkResource.
| inlinevirtual |
Determines if we can get the XMP Info for the resource.
Implements ILinkResource.
| inlinevirtual |
Determines if a resource can provide the underlying file or not.
Implements ILinkResource.
| virtual |
Test whether a stream with the given access mode can currently be obtained for the resource. \ The state of whether a stream can be obtained with the given access mode may change at any time, so it is best to attempt to obtain the stream immediately following the call to CanQueryStream().
| mode | [IN] Access mode. |
Implements ILinkResource.
| inlinevirtual |
Determines if a placeholder(FPO) can be replaced with the original
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be revealed by calling Reveal().
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be revealed by calling RevealInBridge().
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be revealed by calling RevealInCloudLibraries.
Implements ILinkResource.
| inlinevirtual |
Determines if the resource can be unembedded by calling Unembed().
Implements ILinkResource.
| virtual |
Copies the attributes of the resource referenced by the given UIDRef to this resource.
| resourceRef | [IN] UIDRef of the resource to copy. \ The UIDRef may reference a resource in a different database. |
Implements ILinkResource.
| inlinevirtual |
Copies the resource to the given file.
| file | [IN] File to copy the resource to. |
Implements ILinkResource.
| inlinevirtual |
Downloads the original asset synchronously for the given placeholder link resource.
Implements ILinkResource.
| inlinevirtual |
Edits the resource. \ Embedded resources cannot be edited.
| 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 |
Implements ILinkResource.
| inlinevirtual |
Embeds the resource. \ If the resource is already embedded, then the call is ignored and returns kSuccess.
Implements ILinkResource.
| inlinevirtual |
Embeds the resource from the given read stream. If successful, this call will set the resource's state, stored state and size. However, it is the caller's responsibility to set the resource's stamp. \ Note: This method should only be used for special cases like creating an embedded link resource from INX, or creating link resources for embedded graphics contained in Word documents.
| stream | [IN] Read stream containing the resource's embedded data. |
Implements ILinkResource.
| inlinevirtual |
Returns the resource's link client identifier.
Implements ILinkResource.
| virtual |
| inlinevirtual |
Return resource's download state and fill progress
| progress | [OUT] the progress of the resource download - currently unused |
Implements ILinkResource.
| inlinevirtual |
Get the underlying file from the link resource.
| idFile | [OUT] the underlying file for the link resource |
Implements ILinkResource.
| inlinevirtual |
Returns the resource's import/export format type.
Implements ILinkResource.
| inlinevirtual |
Returns the resource's Uniform Resource Identifier (URI). \ The URI is used to uniquely identify the resource's type and location.
Implements ILinkResource.
| virtual |
Returns the resource's long name. \ For example, the long name for a file resource is the file's full path.
| bUIName | [IN] Denotes to return the resource's long UI name if different from the resource's actual long name.\ In some cases, resources may want to have long UI name that differs from the resource's actual long name. For example, file resources on the Mac return a POSIX path as the resource's actual long name, and a HFS/POSIX path as the resource's long UI name. |
Implements ILinkResource.
| inlinevirtual |
Returns the resource's current modification date/time.
Implements ILinkResource.
| virtual |
Returns the resource's short name. \ For example, the short name for a file resource is the file's name.
| bUIName | [IN] Denotes to return the resource's short UI name if different from the resource's actual short name.\ In some cases, resources may want to have short UI name that differs from the resource's actual short name. For example, file resources on the Mac return a POSIX file name as the resource's actual short name, and a HFS/POSIX file name as the resource's short UI name. |
Implements ILinkResource.
| inlinevirtual |
| inlinevirtual |
Returns the resource's stamp. \ The stamp, in conjuction with the URI, uniquely identifies an resource at a given point in time.
Implements ILinkResource.
| inlinevirtual |
Returns the resource's availability state.
Implements ILinkResource.
| inlinevirtual |
| inlinevirtual |
DEPRECATED - Please call the GetId method instead. Returns the resource's Uniform Resource Identifier (URI). \ The URI is used to uniquely identify the resource's type and location.
Implements ILinkResource.
| inlinevirtual |
Get the XMP Info for the resource
| packet | [OUT] the resource's XMP info |
Implements ILinkResource.
| virtual |
Determines if the resource generally supports the given access mode. \ It is possible that the resource generally supports the given access mode, but it is not possible to currently obtain a stream due to the resource being read or written by other processes. Therefore, to determine if a stream can currently be obtained with the given access mode, call CanQueryStream().
| mode | [IN] Access mode. |
Implements ILinkResource.
| inlinevirtual |
Determines if the resource is an FPO.
Implements ILinkResource.
| inlinevirtual |
Determines if the given id is equivalent to the resource's id.
| id | [IN] Resource id to compare with the resource's id. |
Implements ILinkResource.
| virtual |
Determines if the given stamp is equivalent to the resource's stamp.
| stamp | [IN] Stamp to compare with the resource's stamp. |
Implements ILinkResource.
| virtual |
Returns a stream that is used to access the resource's data. \ If the access mode is kRead and the resource is cached or embedded, the returned stream will read the cached or embedded data. \ If the access mode is kWrite and the resource is cached, the returned stream will write data to the actual resource, not the cache.
| mode | [IN] Access mode. |
Implements ILinkResource.
| inlinevirtual |
Reveals the resource.
Implements ILinkResource.
| inlinevirtual |
Reveals the resource.
Implements ILinkResource.
| inlinevirtual |
Reveals the resource.
Implements ILinkResource.
| inlinevirtual |
Sets the resource's store state to kContained.\ This call is ignored for resources that are cached or embedded.
Implements ILinkResource.
| virtual |
Sets the resource's import/export format type.
| formatType | [IN] Resource's import/export format type. |
Implements ILinkResource.
| virtual |
Sets the resource's current modification date/time.
| size | [IN] Current modification date/time of the resource. |
Implements ILinkResource.
| virtual |
Sets the resource's size in bytes.
| size | [IN] Size of the resource in bytes. |
Implements ILinkResource.
| virtual |
| virtual |
Sets the resource's availability state.
| state | [IN] Availability state of the resource. |
Implements ILinkResource.
| inlinevirtual |
Uncaches the resource.
Implements ILinkResource.
| inlinevirtual |
Unembeds the resource to the same location it was embedded from.
Implements ILinkResource.