InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinkResourceFactory Class Referenceabstract

#include <ILinkResourceFactory.h>

Inheritance diagram for ILinkResourceFactory:
IPMUnknownCPMUnknown< ILinkResourceFactory >CusDtLnkLinkResourceFactory

Public Types

enum  { kDefaultIID = IID_ILINKRESOURCEFACTORY }
 

Public Member Functions

virtual void GetSchemes (K2Vector< WideString > &schemes) const =0
 
virtual ILinkResourceHandlerQueryHandler (const URI &uri, IDataBase *db) const =0
 
virtual ILinkResourceStateUpdaterQueryStateUpdater (const URI &uri, IDataBase *db) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This factory class is used to provide a list of schemes supported by a link resource handler, and to create instances of a link resource handler. \ Include this interface on the link resource provider boss that is registered with the service registry as a kLinkResourceService.

See Also
ILinkResourceHandler
IK2ServiceProvider

Member Function Documentation

virtual void ILinkResourceFactory::GetSchemes (K2Vector< WideString > & schemes) const
pure virtual

Gets the list of URI schemes supported by the handler.

Parameters
schemes[OUT] List of supported schemes.

Implemented in CusDtLnkLinkResourceFactory.

virtual ILinkResourceHandler* ILinkResourceFactory::QueryHandler (const URIuri,
IDataBasedb 
) const
pure virtual

Returns the link resource handler that will be used by a link resource object to act on an resource whose URI scheme matches one of the supported schemes.

Parameters
uri[IN] URI of the link resource the handler will be used for.
db[IN] Database that contains the link resource.
Returns
Link resource handler. \ Caller assumes responsibility for releasing the returned object.

Implemented in CusDtLnkLinkResourceFactory.

virtual ILinkResourceStateUpdater* ILinkResourceFactory::QueryStateUpdater (const URIuri,
IDataBasedb 
) const
pure virtual

Returns the link resource state updater that will be used to obtain and update the state of a link resource whose URI scheme matches one of the supported schemes.

Parameters
uri[IN] URI of the link resource whose state will be updated.
db[IN] Database that contains the link resource.
Returns
Link resource state updater. \ Caller assumes responsibility for releasing the returned object.

Implemented in CusDtLnkLinkResourceFactory.