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

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPTMUTATIONDATA } |
Public Member Functions | |
| virtual void | SetAttribute (ScriptID propID)=0 |
| virtual ScriptID | GetAttribute () const =0 |
| virtual PMString | GetAttributeName (IScript *target, const EngineContext &context) const =0 |
| virtual ScriptReturnData | GetAttributeValue (IScript *target, const EngineContext &context) 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 |
Static Public Member Functions | |
| static void | InitMutationEventCallback (IScriptEvent *e, IScriptEventTarget::InitCallbackType t, void *privateData) |
An interface used by the kMutationScriptEventBoss to store associated data.
| pure virtual |
Get the attribute that changed
| pure virtual |
Return the name of the attribute formatted for the appropriate client context
| pure virtual |
Return the value of the attribute formatted for the appropriate client context
| inlinestatic |
A standard event initializer callback for mutation events. See .h. The code to dispatch the MutationEvent for a change in the name of an object might look like this:
ScriptID propID = p_Name ;
InterfacePtr<IScriptEventTarget> target( iScript, UseDefaultIID() ) ;
if ( target )
target->DispatchScriptEvent( kAfterAttributeChangedEventScriptElement,
&IScriptMutationData::InitMutationEventCallback, &propID ) ;
| pure virtual |
Set the attribute that changed