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

Public Types | |
| enum | { kDefaultIID = IID_IPLUGINLIST } |
Public Member Functions | |
| virtual PluginID | GetPluginID (const PMString &name) const =0 |
| virtual const PMString & | GetPluginName (PluginID whichPlugIn) const =0 |
| virtual bool16 | GetPathName (PluginID whichPlugIn, IDFile *path) const =0 |
| virtual int32 | GetPluginCount () const =0 |
| virtual PluginID | GetNthPlugin (int32 n) const =0 |
| virtual bool16 | IsStandardComponent (PluginID whichPlugin) const =0 |
| virtual bool16 | GetVersionNumber (PluginID whichPlugIn, int32 &majorVersion, int32 &minorVersion) const =0 |
| virtual const PMString * | GetAUMVersionString (PluginID whichPlugin) const =0 |
| virtual bool16 | GetLastFormatVersion (PluginID whichPlugin, int32 &majorVersion, int32 &minorVersion) const =0 |
| virtual bool16 | GetAppExpectedVersionNumber (PluginID whichPlugIn, int32 &majorVersion, int32 &minorVersion) const =0 |
| virtual const DependencyList * | GetDependentInfo (PluginID whichPlugIn) const =0 |
| virtual PluginID | GetNthComponent (const DependencyList *dependentInfo, int32 n) const =0 |
| virtual bool16 | GetNthVersion (const DependencyList *dependentInfo, int32 n, int32 &majorVersion, int32 &minorVersion) const =0 |
| virtual const PMString * | GetErrorString (PluginID whichPlugin) const =0 |
| virtual const PMString * | GetRuntimeErrorString (PluginID whichPlugin) const =0 |
| virtual const PMString * | GetRegistrationErrorString (PluginID whichPlugin) const =0 |
| virtual const PluginMetadata * | GetPluginMetadata (PluginID whichPlugin) const =0 |
| virtual bool16 | IsLoaded (PluginID whichPlugIn) const =0 |
| virtual bool16 | LoadFailed (PluginID whichPlugIn) const =0 |
| virtual bool16 | HasBeenLoaded (PluginID whichPlugIn) const =0 |
| virtual bool16 | MatchCurrentProduct (PluginID whichPlugIn) const =0 |
| virtual bool16 | MatchCurrentFeatureSet (PluginID whichPlugIn) const =0 |
| virtual IPlugIn * | Load (PluginID whichPlugIn)=0 |
| virtual IPlugInIterator * | CreateIterator () const =0 |
| virtual IPlugIn::ThreadingPolicy | GetThreadingPolicy (PluginID whichPlugIn) const =0 |
| virtual bool16 | ComparePluginListToFileStream (const IDFile &pluginListFile) const =0 |
| virtual ErrorCode | StreamPluginListToFile (const IDFile &pluginListFile) const =0 |
| virtual void | LoadMultipleThreadPolicyPlugins () 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 |
The plug-in list maintains a list of all the currently installed plug-ins. It is used to manage the plug-ins, and to return information about them. The application, and the Public, WidgetBin, and ObjectModel libraries are treated as plug-ins for the purposes of the list, and are considered to be "standard components". All items on this list can be uniquely identified by PluginID.
There is a single implementation of IPlugInList that is an interface off the global session (kSessionBoss), referenced by session.
| pure virtual |
FOR INTERNAL USE ONLY. Compares the plugin list data from pluginListFile to the current version.
| pluginListFile | Location of plugin-list data file. |
| pure virtual |
FOR INTERNAL USE ONLY. Return an iterator to iterate plug-in list. Caller must call delete on the iterator when finished with it.
| pure virtual |
Return the version of the app the plug-in was built for. The plug-in can run when installed in
any version of the application whose major version number matches the expected major version number, and whose minor version number is greater to or equal to the expected minor version number.
| whichPlugIn | The plug-in we want to find out about |
| majorVersion | Return value: high word of the application's version is returned here |
| minorVersion | Return value: low word of the application's version is returned here |
Return the x.y.z.w type version string used for Update Manager versioning
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
Returns a magic cookie containing info about the plug-in's dependencies. You can
call GetNthComponent and GetNthVersion to get useful info out of the cookie.
| whichPlugIn | The plug-in we want to find out about |
Return the error string that resulted from loading the plug-in
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
Return the format number of the plug-in.
| whichPlugIn | The plug-in we want to find out about |
| majorVersion | Return value: high word of the plug-in's format is returned here |
| minorVersion | Return value: low word of the plug-in's format is returned here |
| pure virtual |
Returns the PluginID of the i'th component in the dependency info. Call this to find out what plug-ins a plug-in is dependent on (after you've already called GetDependentInfo).
| dependentInfo | The list of the dependecies from the plug-in we're interested in |
| n | The index into the list for the particular dependency we want |
| pure virtual |
Return the n'th plug-in in the list
| n | The index of the plug-in |
| pure virtual |
Returns the version number of the i'th component in the dependency info.
| dependentInfo | The list of the dependecies from the plug-in we're interested in |
| n | The index into the list for the particular dependency we want |
| majorVersion | Return value: high word of the expected version number for the dependency plug-in is returned here |
| minorVersion | Return value: low word of the expected version number for the dependency plug-in is returned here |
Return the location of the plug-in's executable.
| whichPlugIn | PluginID of the plug-in |
| path | path of the plug-in is returned here, if it was found |
| pure virtual |
Return the number of plug-ins in the list. Some of these may not be currently active.
Look up a plugin by name.
| name | The name of the plug-in. |
| pure virtual |
Returns meta data about the plug-in.
| whichPlugIn | The plug-in we want to find out about |
Return the name of a particular plug-in
| whichPlugIn | PluginID of the plug-in |
| pure virtual |
Returns the registration error string, if there was an error registering.
| whichPlugIn | The plug-in we want to find out about |
Return the runtime error string that resulted from loading the plug-in
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
Return the plug-in's major and minor version numbers.
| whichPlugIn | The plug-in we want to find out about |
| majorVersion | Return value: high word of the plug-in's version is returned here |
| minorVersion | Return value: low word of the plug-in's version is returned here |
| pure virtual |
Returns true if the plugin has been loaded at least once. Will return false
if the plugin failed to load or if the object model hasn't had to load it yet.
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
Returns true if the plug-in is loaded. The plug-ins are loaded on demand, so if the
plug-in has not yet been queried for, then the plug-in is not loaded.
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
Return true if the supplied plug-in ID is a core component of the application
| whichPlugin | The ID of the component or plug-in we want to find out about |
FOR INTERNAL USE ONLY. Load the plug-in. Opens up the DLL, loads the factories, and calls the plug-in's Load function. The plug-in's root object is returned on success, nil is returned if the load fails. If the plug-in is already loaded, Load just returns the root object.
| whichPlugIn | The plug-in we want to load |
| pure virtual |
The plug-in failed to load. This will be true only if the system has tried to
load the plug-in. It may be false simply because the system hasn't tried to load it yet.
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
FOR INTERNAL USE ONLY. Loads plug-ins whose threading policy is kMultipleThreads.
| pure virtual |
Returns true if the plugin matches current feature set.
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
Returns true if the plugin matches the current product.
| whichPlugIn | The plug-in we want to find out about |
| pure virtual |
FOR INTERNAL USE ONLY. Writes the current list of plug-in data to pluginListFile.
| pluginListFile | Location of plugin-list data file. |