SECScriptHostDoc Class

class SECScriptHostDoc: public COleDocument, public IActiveScriptErrorHandler

ActiveScript document class

Defined in: ScriptHostDoc.h

Comments

This class is intended to be plugged directly into your frame window's document template. In general, you will not need to utilize any of these member functions unless deriving a class and customizing functionality.

See Also

IActiveScriptErrorHandler

Class Members

Accessors

SECAScriptHost*  GetScriptHost()

Access the embedded ScriptHost object

SECAFormObj*  GetFormObj()

Access the embedded script form object

Operations

virtual void  EnableEditMode()

Enable runtime form edit mode

virtual BOOL  ToggleMode()

Toggle between edit and run mode

virtual BOOL  SetMode( ScriptMode sm )

Set the current form mode

virtual ScriptMode  GetMode()

Get the current form mode

virtual void  ViewCode()

View scripting code in edit mode

virtual void  ViewObjects()

View OLE objects in edit mode

virtual HRESULT  CreateScriptingModel()

Initialize the scripting model

virtual HRESULT  DestroyScriptingModel()

Destroy the existing scripting model

const CString&  GetScript()

Return the current runtime script code

void  SetScript(const CString& strCode)

Set the current runtime scripting code

static void  SetFormClass(CRuntimeClass* pRuntimeClass)

Set the form object runtime class for link back from script.

Overridables

virtual HRESULT  HandleError( IActiveScriptError *perr )

Callback for runtime scripting errors

virtual HRESULT  AddDesignedObjectInfos( SECAEventBar &EventBar )

Adds items to the event bar

virtual SECAScriptHost*  OnCreateScriptHost(IActiveScriptErrorHandler* pErrHandler)

Create the script host object. Override to hook in a derived class.

virtual BOOL  OnEnterRunMode()

Run mode is about to be entered. Return FALSE to abort.

virtual BOOL  OnEnterEditMode()

Edit mode is about to be entered. Return FALSE to abort.

virtual BOOL  OnEnterCodeMode()

Edit mode/code view is about to be entered. Return FALSE to abort.

virtual SECAFormObj*  OnCreateFormObject(CRuntimeClass* pRuntimeClass)

Create runtime form scripting object.