InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CusDtLnkLinkInfoProvider Class Reference
Inheritance diagram for CusDtLnkLinkInfoProvider:
CLinkInfoProviderCPMUnknown< ILinkInfoProvider >ILinkInfoProviderIPMUnknown

Public Member Functions

 CusDtLnkLinkInfoProvider (IPMUnknown *boss)
 
virtual PMString GetInfoDescriptionString () const
 
virtual PMRsrcID GetUpdatedIconForLink (const ILink *link, const ILinkResource *linkResource) const
 
virtual bool16 IsLinkInfoDynamic () const
 
virtual PMString GetUpdatedInfoForLink (const ILink *link, const ILinkResource *linkResource, bool) const
 
- Public Member Functions inherited from CPMUnknown< ILinkInfoProvider >
IPMUnknownQueryInterface (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
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from CPMUnknown< ILinkInfoProvider >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< ILinkInfoProvider >
HelperInterface fHelperInterface
 

Detailed Description

Implementation of CLinkInfoProviderso we can add a column in the Links UI that displays a special icon. This is just a simple demonstration on how you can hook into the Links UI panel. You can display a more complex information by attaching an observer to a document for more dynamic info display.

Member Function Documentation

virtual PMString CusDtLnkLinkInfoProvider::GetInfoDescriptionString () const
inlinevirtual
PMRsrcID CusDtLnkLinkInfoProvider::GetUpdatedIconForLink (const ILinklink,
const ILinkResourcelinkResource 
) const
virtual

Just returned a simple static icon if the link is our link for demo purpose, you can display different icons based on the ILink and ILinkResource passed into the methods.

See Also
ILinkInfoProvider::GetInfoDescriptionString

Reimplemented from CLinkInfoProvider.

PMString CusDtLnkLinkInfoProvider::GetUpdatedInfoForLink (const ILinklink,
const ILinkResourcelinkResource,
bool  
) const
virtual

If the link is ours, then grab some info from the link resource and return it as a PMString.

See Also
ILinkInfoProvider::GetUpdatedInfoForLink

Implements ILinkInfoProvider.

virtual bool16 CusDtLnkLinkInfoProvider::IsLinkInfoDynamic () const
inlinevirtual