Public Member Functions | |
Constructor / Destructor | |
CP_AE_ObjectDispatcher () | |
Constructor. | |
virtual | ~CP_AE_ObjectDispatcher () |
Destructor. | |
Initialization | |
virtual void | Init () |
Getters | |
SInt16 | GetResolveFlags () |
CP_SDEFParsing::CP_SDEFParser * | GetSDEFParser () |
Event Handlers | |
virtual void | HandleAppleEventSelf (const AppleEvent &inEvent, AppleEvent &inOutReply, SInt32 inRefCon) |
virtual void | HandleCreateElement (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | HandleCountElements (const AppleEvent &inEvent, AppleEvent &inOutReply) |
Misc | |
OSErr | ResolveSpecifier (const AEDesc &inSpec, AEDesc &outToken) |
OSL Handlers | |
virtual void | HandleAccessContainedObjects (DescType inDesiredClass, const AEDesc &inContainer, DescType inContainerClass, DescType inKeyForm, const AEDesc &inKeyData, AEDesc &outToken) |
virtual SInt32 | HandleCountObjects (const AEDesc &inContainerToken, const DescType inCountObjectsOfType) |
virtual bool | HandleCompareObjects (const DescType inOperation, const AEDesc &inObject1, const AEDesc &inObject2) |
virtual void | HandleDisposeToken (AEDesc &inToken) |
Static Public Member Functions | |
Instance | |
static CP_AE_ObjectDispatcher * | Instance () |
Private Member Functions | |
Registration | |
void | RegisterScriptingDefinitions () |
Events | |
void | ProcessEvent (const AppleEvent &inAppleEvent, AEDesc &inDirectObjToken, AEDesc &outResult, AppleEvent &outReply, SInt32 inRefCon) |
Registration | |
void | RegisterCommands (CP_SDEFParsing::CP_SDEFParser *inSdefParser) |
Static Private Member Functions | |
Event Handlers | |
static pascal OSErr | AppleEventHandler (const AppleEvent *inMessage, AppleEvent *inOutReply, UInt32 inRefCon) |
static pascal OSErr | CreateElementHandler (const AppleEvent *inMessage, AppleEvent *inOutReply, UInt32 inRefCon) |
static pascal OSErr | CountObjectsHandler (const AppleEvent *inMessage, AppleEvent *inOutReply, UInt32 inRefCon) |
OSL callbacks | |
static pascal OSErr | OSLObjectAccessorHandler (const DescType inDesiredClass, const AEDesc *inContainer, const DescType inContainerClass, const DescType inForm, const AEDesc *inSelectionData, AEDesc *inValue, SInt32 inRefCon) |
static pascal OSErr | OSLCountObjectsHandler (const DescType inCountObjectsOfType, const DescType inContainerClass, const AEDesc *inContainerToken, SInt32 *inResult) |
static pascal OSErr | OSLCompareObjectsHandler (const DescType inOperation, const AEDesc *inObj1, const AEDesc *inObj2, Boolean *inOutResult) |
static pascal OSErr | OSLDisposeTokenHandler (AEDesc *inToken) |
Private Attributes | |
CP_ScriptableObject_Imp * | fApplication |
SInt16 | fAEResolveFlags |
CP_SDEFParsing::CP_SDEFParser * | fSDEFParser |
Static Private Attributes | |
static CP_AE_ObjectDispatcher * | fsInstance = NULL |
static bool | gInited = false |
static OSErr | gErr = CP_noErr |
|
Constructor.
|
|
Destructor.
|
|
Returns the single instance of this object.
|
|
Initialize our Apple Event handling dispatcher. This method installes the necessary Apple Event handling callbacks. This routine looks for all 'aedt' resources that contain information about the Apple Events. Sets the instance to NULL if errors occurred in initializing this object.
|
|
|
|
|
|
Called from the generic AppleEvent handler to handle the actual AppleEvent.
|
|
Called from the create element AppleEvent callback to handle the create element event.
|
|
|
|
|
|
Get the desired object contained in inContainer.
|
|
Count the number of objects contained in inContainerToken.
|
|
Compare inObject1 to inObject2 using inOperator type comparison.
|
|
Get rid of the passed in inToken.
|
|
Initialize our Apple Event handling from the information provided in a sdef scripting definition file.
|
|
Generic Apple Event handling callback.
|
|
Apple Event callback for the create element event.
|
|
Apple Event callback for the count event.
|
|
|
|
Object accessor OSL callback.
|
|
Count objects OSL callback.
|
|
Compare objects OSL callback. NOTE:Apple TechNote 1095 (Update 2/11/98): The objects being passed in are located in relocatable blocks that are not locked and may move after the compare function is called. There is a further chance for a memory leak when resolving "whose" clauses in object specifiers.
|
|
Dispose token OSL callback.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|