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

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPTOBJECTPARENT } |
Public Member Functions | |
| virtual void | SetParent (const IPMUnknown *parent, const RequestContext &context, bool16 notifyParent=kTrue)=0 |
| virtual void | ClearParent (bool16 notifyParent=kTrue)=0 |
| virtual IDataBase * | GetParentDataBase () const =0 |
| virtual IPMUnknown * | QueryParent (const PMIID &iid) const =0 |
| virtual bool16 | IsParentSet () 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 |
Interface for storing parent of a proxy script object. Works in tandem with parent database's IScriptObjectMgr interface to track proxy script objects for deletion.
Most clients should use the default implementation (kScriptObjectParentImpl), along with the base proxy script object implementation (kCProxyScriptImpl) or a subclass thereof. The simplest approach is by boss inheritance (from kBaseProxyScriptObjectBoss).
Except for calling SetParent during creation of a proxy object, methods on this interface are generally for INTERNAL USE ONLY by the scripting architecture. Actual calls to this interface should therefore be very rare.
| pure virtual |
Clear the parent.
| pure virtual |
Returns parent's true or de facto database (i.e., even if parent is not persistent). Use of IScript::GetDataBase() is preferred.
| pure virtual |
Returns kTrue if parent has been set.
| pure virtual |
Queries the parent (will return nil if parent no longer exists). Use of IScript::QueryParent() is preferred.
| pure virtual |
Stores the parent. Called when creating a proxy object (e.g., from IScriptUtils::CreateProxyScriptObject).