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

#include <ScriptClientObject.h>

Public Member Functions

virtual void AddRefFromObjectModel () const =0
 
virtual void ReleaseRefFromObjectModel () const =0
 
virtual void ReleaseReferencesToObjectModel (IScript *script)=0
 

Detailed Description

A mixin class for scripting client object classes. This interface is used to inform a scripting client object that the InDesign object model boss that the client object represents is being deleted. See

Member Function Documentation

virtual void ScriptClientObject::AddRefFromObjectModel () const
pure virtual

Increment the number of references held by the object model on this ScriptClientObject. Typically calls the object's AddRef() method, but may increment a separate reference count in order to distinguish references held by the client from references held by the object model.

virtual void ScriptClientObject::ReleaseReferencesToObjectModel (IScriptscript)
pure virtual

Release all InDesign object model boss references that are being held by this client object (possibly including any child collection client objects) on the passed in boss.

Parameters
scriptis the IScript interface on the boss making the request. Typically the client object will call "script->UnregisterClientObject( this )" as part of its implementation of this method.
virtual void ScriptClientObject::ReleaseRefFromObjectModel () const
pure virtual

Decrement the number of references held by the object model on this ScriptClientObject. Typically calls the object's Release() method, but may decrement a separate reference count in order to distinguish references held by the client from references held by the object model.