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

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPTPROVIDER } |
Public Member Functions | |
| virtual void | GetObject (IScriptRequestData *data, IScript *parent)=0 |
| virtual void | HandleMethodOnObjects (ScriptID methodID, IScriptRequestData *data, const ScriptList &scriptList)=0 |
| virtual void | AccessPropertyOnObjects (ScriptID propID, IScriptRequestData *data, const ScriptList &scriptList)=0 |
| virtual void | AccessProperties (IScriptRequestData *data, IScript *script)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Provides the code to handle one or more specific methods or properties on a specific exposed scripting object.
For every exposed object there is one or more ScriptProviders. Only one ScriptProvider represents an object and implements GetObject. Other ScriptProviders implement new methods or properties.
Most implementations will want to inherit from CScriptProvider or RepresentScriptProvider. Implementations representing a singleton object (e.g., preferences) will want to subclass PrefsScriptProvider.
| pure virtual |
Access multiple properties using the provided data for the target object.
| data | is the request data. The implementation must call AppendReturnData before returning. |
| script | is the target object |
Implemented in CScriptProvider.
| pure virtual |
Access the specified property using the provided data for the target objects.
| propID | is the request ID |
| data | is the request data. The implementation must call AppendReturnData before returning. |
| scriptList | is the target objects |
Implemented in CScriptProvider.
| pure virtual |
Obtain a list of child objects, as specified by the data, that are contained in the parent object.
| data | is the request data. The implementation must call AppendReturnData before returning. |
| parent | is the parent object |
Implemented in RepresentScriptProvider, SingletonScriptProvider, and CScriptProvider.
| pure virtual |
Handle the specified method using the provided data for the target objects.
| methodID | is the request ID |
| data | is the request data. The implementation must call AppendReturnData before returning. |
| scriptList | is the target objects |
Implemented in CScriptProvider.