Inheritance diagram for CP_ScriptableObject:
Containers | |
CP_ScriptableObject_Imp * | GetSuperScriptableObject () const |
virtual void | SetSuperScriptableObject (CP_ScriptableObject_Imp *inSuperScriptableObject) |
CP_ScriptableObject_Imp * | GetDefaultSubScriptableObject () const |
void | SetDefaultSubScriptableObject (CP_ScriptableObject_Imp *inObject) |
CP_ScriptableObject_Imp * | GetDefaultSuperScriptableObject () const |
void | SetDefaultSuperScriptableObject (CP_ScriptableObject_Imp *inObject) |
static void | SetDefaultObject (CP_ScriptableObject_Imp *inDefaultObject) |
static CP_ScriptableObject_Imp * | GetDefaultObject () |
static CP_ScriptableObject_Imp * | GetScriptableObjectFromToken (const AEDesc &inToken) |
Property | |
CP_ScriptableObject_Imp * | GetScriptableObjectProperty (DescType inProperty) const |
virtual void | DoAE_GetData (const DescType inPropertyType, const AEDesc &inValue, AppleEvent &inOutReply) |
virtual void | DoAE_SetData (const DescType inPropertyType, const AEDesc &inValue, AppleEvent &inOutReply) |
AppleEventHandlers | |
virtual void | DoAE_Activate (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Clone (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Close (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Delete (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_DoObjectsExist (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Move (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Open (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Print (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Save (const AppleEvent &inEvent, AppleEvent &inOutReply) |
virtual void | DoAE_Revert (const AppleEvent &inEvent, AppleEvent &inOutReply) |
Public Member Functions | |
virtual | ~CP_ScriptableObject () throw () |
Class | |
virtual DescType | GetAppleClass () const =0 |
Class | |
virtual DescType | GetAppleClass () const =0 |
Protected Member Functions | |
CP_ScriptableObject () | |
Specifier | |
virtual void | MakeSelfSpecifier (AEDesc &inContainerSpec, AEDesc &inOutSelfSpec) |
Specifier | |
virtual void | MakeSelfSpecifier (AEDesc &inContainerSpec, AEDesc &inOutSelfSpec) |
Protected Attributes | |
CP_AppleEventHandler_Map | fEventHandlers |
CP_ScriptableObject_Imp * | fSuperScriptableObject |
CP_ScriptableObject_Imp * | fDefaultSubScriptableObject |
CP_ScriptableObject_Imp * | fDefaultSuperScriptableObject |
Static Protected Attributes | |
static CP_ScriptableObject_Imp * | gDefaultObject = NULL |
static bool | gInited = false |
|
Destructor. |
|
Constructor. |
|
Implemented in CP_Document_Base, CP_Application_Imp, CP_ScriptableObject_Property, and CP_Window_Imp. |
|
Handle the passed in Apple Event. You should not need to override this. Either call the one of the default handlers for the core events, or to override the default handlers, register an event handler for the event. Registered event handlers will be handled first, then the built in functions will be called if there is no overriding event handler for the event.
Reimplemented in CP_ScriptableObject_Property. |
|
Handles AppleEvents for this object and any sub scriptable objects that this object might contain.
|
|
Set the default object. This is the object that subsequent events will use when they refer to the default object.
|
|
|
|
Gets the scriptable object that an event corresponds to, by extracting our CP_ModelToken from the descriptor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compare Apple Event objects. This method returns false, and subclasses need to override it.
|
|
Return a count of the objects of inType contained in ourselves. This needs to be overriden, this method just returns 0.
Reimplemented in CP_Document_Base, and CP_Application_Imp. |
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Return the object contained in ourselves based on the name passed in. Subclasses need to override this function. This routine just returns NULL.
Reimplemented in CP_Document_Base, and CP_Application_Imp. |
|
Return the object contained in ourselves based on the position passed in. Subclasses need to override this function. This routine just returns NULL.
Reimplemented in CP_Document_Base, and CP_Application_Imp. |
|
Return the object contained in ourselves based on the unique ID passed in. Subclasses need to override this function. This routine just returns NULL.
|
|
Return the object contained in ourselves based on the position passed in. Subclasses need to override this function. This routine just returns NULL.
|
|
Subclasses need to override this to handle the create element event.
Reimplemented in CP_Application< DOC_POLICY, PRINT_POLICY, UNDO_POLICY >. |
|
Adds the passed in CP_AppleEventSignal to the list of AppleEvents we will handle through a signal / slot connection.
|
|
Removes a previously added event handler from the list of the events handled by the object.
|
|
Returns true if there is a registered signal handler for the passed in event.
|
|
Finds and returns the signal for the passed in event.
|
|
Tries to get the CP_ModelToken from the passed in descriptor and return in outToken.
|
|
Places the passed in scriptable object into a CP_ModelToken and then packages it up in a descriptor and returns in outToken.
|
|
|
|
Subclasses should override this to handle the get data event.
Reimplemented in CP_Document_Base, CP_Application_Imp, and CP_Window_Imp. |
|
Subclasses should override this to handle the set data event.
Reimplemented in CP_Window_Imp. |
|
Send an Apple Event to ourselves. Used to record events.
|
|
Make the specifier for our object. This method will recruisvely travel the object heirachy to make the correct specifier.
|
|
Check to make sure that the required params for the event are present, and throw an OSErr exception if they are missing.
|
|
Initialize our Apple Event handling by installing the Apple Event dispatcher and its object handlers.
|
|
|
|
|
|
Reimplemented in CP_Window_Imp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Return the object contained in the passed in container based upon the inForm criteria.
|
|
Make an object specifier for our object. Each subclass needs to override this method to provide the proper container hierarchy.
Reimplemented in CP_Document_Base, CP_Application_Imp, CP_ScriptableObject_Property, and CP_Window_Imp. |
|
Subclasses need to override to return the position of their sub objects.
|
|
|
|
The default object that events will be dispatched to. |
|
Flag to indicate if this class has been initialized. |
|
Map that contains all of the registered handlers. |
|
Scriptable object that is our container. |
|
Default scriptable object that is contained by this object. |