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

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPT } |
Public Types inherited from IScriptLabel | |
| enum | { kDefaultIID = IID_ISCRIPTLABEL } |
| typedef PMString | ScriptLabelKey |
| typedef PMString | ScriptLabelValue |
| typedef KeyValuePair < ScriptLabelKey, ScriptLabelValue > | ScriptLabelKeyValuePair |
| typedef K2Vector < ScriptLabelKeyValuePair > | ScriptLabelKeyValueList |
Public Member Functions | |
| virtual ScriptID | GetObjectType (const RequestContext &context) const =0 |
| virtual bool16 | IsObjectType (const ScriptID &type, const RequestContext &context) const =0 |
| virtual bool16 | IsObjectType (const ScriptElementID &type, const RequestContext &context) const =0 |
| virtual const ObjectScriptElement * | GetObjectInfo (const RequestContext &context) const =0 |
| virtual void | SetObjectType (const ScriptID &type, const RequestContext &context)=0 |
| virtual IDataBase * | GetDataBase (const RequestContext &context) const =0 |
| virtual ScriptObject | GetScriptObject (const RequestContext &context) const =0 |
| virtual IPMUnknown * | QueryParent (const PMIID &iid, const RequestContext &context) const =0 |
| virtual bool16 | HasBeenDeleted (const RequestContext &context)=0 |
| virtual bool16 | IsEqual (const IScript *script, const RequestContext &context) const =0 |
| virtual void | RegisterClientObject (ScriptClientObject *clientObject)=0 |
| virtual void | UnregisterClientObject (ScriptClientObject *clientObject)=0 |
| virtual void | NotifyClientObjectsToReleaseMe ()=0 |
Public Member Functions inherited from IScriptLabel | |
| virtual void | SetTag (const ScriptLabelValue &string)=0 |
| virtual ScriptLabelValue | GetTag () const =0 |
| virtual void | SetTag (const ScriptLabelKey &key, const ScriptLabelValue &value)=0 |
| virtual ScriptLabelValue | GetTag (const ScriptLabelKey &key) const =0 |
| virtual void | SetTags (const ScriptLabelKeyValueList &labels)=0 |
| virtual ScriptLabelKeyValueList | GetTags () const =0 |
| virtual void | ClearTags ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Additional Inherited Members | |
Static Public Attributes inherited from IScriptLabel | |
| static ScriptLabelKey | kDefaultScriptLabelKey |
Added to any boss that wants to be visible as an object in the scripting architecture and thus available to any scripting client.
| pure virtual |
A safe way to determine the appropriate database for this object. Most implementations can simply inherit and use the default implementation { return ::GetDataBase( this ) ; } but some script bosses are non-persistent, and should therefore override this method.
| context | is the request context |
Implemented in SnpRunnableScript, CScript, and CProxyScript.
| pure virtual |
| pure virtual |
Return the object's type
| context | is the request context |
Implemented in BscShpScript, CdlChartScript, PstLstScript, CusDtLnkScript, CProxyScript, and CScript.
| pure virtual |
Return information for the object specifier
| context | is the request context |
Implemented in SnpRunnableScript, CScript, CProxyScript, and PrefsScript.
| pure virtual |
Return kTrue if the underlying object that this script object represents has been deleted
| context | is the request context |
Implemented in CScript, CProxyScript, and CdlStockScript.
| pure virtual |
An IScript represents an object that is visible to scripting The IScript either lives on the object itself or on a proxy object Comparing IScripts means determining whether both IScripts point to the same object. Since you can have multiple proxy objects pointing at the same object we need this operator.
| script | is the other script object |
| context | is the request context |
Implemented in CScript, and CProxyScript.
| pure virtual |
Return kTrue if this object is or is based on the specified type
| type | is the type to check |
| context | is the request context |
Implemented in CScript.
| pure virtual |
Notify all registered client objects to release any references they're holding on my boss.
Implemented in CScript.
| pure virtual |
Return the parent of this object in the script hierarchy
| iid | is desired interface on the parent |
| context | is the request context |
Implemented in BscShpScript, CdlChartScript, CScript, PstLstScript, CProxyScript, and CusDtLnkScript.
| pure virtual |
Register a scripting client object. Calls ScriptClientObject::AddRef(). Does nothing if the client object passed in is nil.
| clientObject | is the scripting client object. Must NOT be an interface on this boss. |
Implemented in CScript.
| pure virtual |
Most objects know what type they are. But when supporting generic objects such as page items or text, there are cases where 1) the object can be interpreted as different types and/or 2) it is expensive to constantly figure out what type the object is. So we allow the object to be told what type it is.
| type | is the type to set |
| context | is the request context |
Implemented in BscShpScript, CdlChartScript, CScript, and CProxyScript.
| pure virtual |
Unregister a scripting client object. Calls ScriptClientObject::Release(). Does nothing if the client object passed in is nil or was not previously passed to RegisterClientObject() on this IScript.
| clientObject | is the scripting client object |
Implemented in CScript.