Kate
KateJScript Class Reference
Whole Kate Part scripting in one classs Allow subclassing to allow specialized scripting engine for indenters. More...
#include <katejscript.h>
Inheritance diagram for KateJScript:
Public Member Functions | |
bool | execute (KateView *view, const QString &script, QString &errorMsg) |
KateJScript () | |
KJS::ObjectImp * | wrapDocument (KJS::ExecState *exec, KateDocument *doc) |
KJS::ObjectImp * | wrapView (KJS::ExecState *exec, KateView *view) |
virtual | ~KateJScript () |
Protected Attributes | |
KJS::Object * | m_document |
KJS::Object * | m_global |
KJS::Interpreter * | m_interpreter |
KJS::Object * | m_view |
Detailed Description
Whole Kate Part scripting in one classs Allow subclassing to allow specialized scripting engine for indenters.Definition at line 52 of file katejscript.h.
Constructor & Destructor Documentation
KateJScript::KateJScript | ( | ) |
KateJScript::~KateJScript | ( | ) | [virtual] |
Member Function Documentation
execute given script the script will get the doc and view exposed via document and view object in global scope
- Parameters:
-
view view to expose script source code of script to execute errorMsg error to return if no success
- Returns:
- success or not?
Definition at line 270 of file katejscript.cpp.
KJS::ObjectImp * KateJScript::wrapDocument | ( | KJS::ExecState * | exec, | |
KateDocument * | doc | |||
) |
creates a JS wrapper object for given KateDocument
- Parameters:
-
exec execution state, to find out interpreter to use doc document object to wrap
- Returns:
- new js wrapper object
Definition at line 260 of file katejscript.cpp.
KJS::ObjectImp * KateJScript::wrapView | ( | KJS::ExecState * | exec, | |
KateView * | view | |||
) |
creates a JS wrapper object for given KateView
- Parameters:
-
exec execution state, to find out interpreter to use view view object to wrap
- Returns:
- new js wrapper object
Definition at line 265 of file katejscript.cpp.
Member Data Documentation
KJS::Object* KateJScript::m_document [protected] |
KJS::Object* KateJScript::m_global [protected] |
KJS::Interpreter* KateJScript::m_interpreter [protected] |
KJS::Object* KateJScript::m_view [protected] |
The documentation for this class was generated from the following files: