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

Public Types | |
| enum | { kDefaultIID = IID_IDATALINKHELPER } |
Public Member Functions | |
| virtual int32 | RemoveDataLink (const UIDList *itemList)=0 |
| virtual void | GetExtension (PMString &basename, PMString &extension)=0 |
| virtual IDataLink * | CreateDataLink (const IDFile &file, PMString *formatName=nil)=0 |
| virtual ErrorCode | InitializeDataLink (IPMUnknown *boss, const IDFile &file, PMString *formatName=nil)=0 |
| virtual UID | NewDataLinkUID (IDataBase *db, IDataLink *dl)=0 |
| virtual bool16 | IsLinkMissing (IDataBase *db, UID pageItemUID)=0 |
| virtual ICoreFilename * | CreatePublicationDir (IDataBase *db)=0 |
| virtual void | GetNameInfoFromEmbedded (IDataBase *db, UID pageitem, NameInfo *ni, PMString *formatName, uint32 *filetype)=0 |
| virtual IDataLink::StateType | AutoFindFile (NameInfo *pubdirni, IDataLink *dl, IMissingLink *missingLink=nil, bool32 bIgnoreDateTime=kFalse)=0 |
| virtual uint64 | GetUIDSize (IDataBase *db, UID uid)=0 |
| virtual ErrorCode | GetSysFile (IDataLink *dl, IDFile &sysFile)=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 contains helper methods related to IDataLink.
| pure virtual |
Search for a data link using several fast search strategies.
| NameInfo | *pubdirni: Directory to use when looking for relative positioned links. |
| IDataLink | *dl: Data link pointer. |
| IMissingLink | *missingLink = nil: Optional parameter to speed up searching when repeatedly calling AutoFindFile for many missing links. Can use InterfacePtr<IMissingLink> missingLink((IMissingLink *)::CreateObject(kMissingLinkBoss, IID_IMISSINGLINK)); |
| bool32 | bIgnoreDateTime = kFalse: [IN] if kFalse, then any potential matches will be ignored if the modification date is more than 1 hour different from the date/time returned via dl->GetStoredState(). If kTrue, then the date/time of potential matches is ignored. |
| pure virtual |
Get the publication's directory.
| IDataBase | *db: The document. |
| pure virtual |
Get the page item's provider and ask it for the format name and type. Make up the name.
Get the data link's IDFile for file type links (kDataLinkBoss).
Get the size of a UID.
| IDataBase | *db: The document containing the UID. |
| UID | uid: UID. |
| pure virtual |
Set up a data link off the given boss with the given IDFile and format string.
| IPMUnknown | *boss: A boss that holds an IDataLink. |
| const | IDFile &file: The IDFile. |
| PMString | *formatName = nil: The optional format string of describing the file data. |
Return whether a link is missing or not.
| IDataBase | *db: The document containing the page item and data link. |
| UID | pageitemUID: The page item of the associated data link. |
| pure virtual |
Remove one or more data links from a document. Embedded data is removed for embedded links.
| const | UIDList* itemList: A list of page items. The associated data links of these page items are deleted. |