KJS Namespace Reference
Classes | |
| class | DOMParserConstructorImp |
| class | DOMParser |
| class | DOMObject |
| Base class for all objects in this binding - get() and put() run tryGet() and tryPut() respectively, and catch exceptions if they occur. More... | |
| class | DOMFunction |
| Base class for all functions in this binding - get() and call() run tryGet() and tryCall() respectively, and catch exceptions if they occur. More... | |
| class | ScriptInterpreter |
| We inherit from Interpreter, to save a pointer to the HTML part that the interpreter runs for. More... | |
| class | DOMCSSStyleDeclaration |
| class | DOMStyleSheet |
| class | DOMStyleSheetList |
| class | DOMMediaList |
| class | DOMCSSStyleSheet |
| class | DOMCSSRuleList |
| class | DOMCSSRule |
| class | CSSRuleConstructor |
| class | DOMCSSValue |
| class | CSSValueConstructor |
| class | DOMCSSPrimitiveValue |
| class | CSSPrimitiveValueConstructor |
| class | DOMCSSValueList |
| class | DOMRGBColor |
| class | DOMRect |
| class | DOMCounter |
| class | SourceFile |
| class | SourceFragment |
| class | KJSErrorDialog |
| class | EvalMultiLineEdit |
| class | SourceDisplay |
| class | KJSDebugWin |
| class | DOMNode |
| class | DOMNodeList |
| class | DOMDocument |
| class | DOMAttr |
| class | DOMElement |
| class | DOMDOMImplementation |
| class | DOMDocumentType |
| class | DOMNamedNodeMap |
| class | DOMProcessingInstruction |
| class | DOMNotation |
| class | DOMEntity |
| class | DOMExceptionConstructor |
| class | DOMNamedNodesCollection |
| class | DOMCharacterData |
| class | DOMText |
| class | JSEventListener |
| class | JSLazyEventListener |
| class | DOMEvent |
| class | EventExceptionConstructor |
| class | DOMUIEvent |
| class | DOMMouseEvent |
| class | DOMKeyEventBase |
| class | DOMTextEvent |
| class | DOMKeyboardEvent |
| class | KeyboardEventConstructor |
| class | MutationEventConstructor |
| class | DOMMutationEvent |
| class | HTMLDocument |
| class | HTMLElement |
| class | HTMLElementFunction |
| class | HTMLCollection |
| class | HTMLSelectCollection |
| class | OptionConstructorImp |
| class | ImageConstructorImp |
| class | MozillaSidebarExtension |
| class | Navigator |
| class | DOMRange |
| class | RangeConstructor |
| class | DOMNodeIterator |
| class | NodeFilterConstructor |
| class | DOMNodeFilter |
| class | DOMTreeWalker |
| class | JSNodeFilter |
| class | DOMAbstractView |
| class | Screen |
| class | Window |
| class | DateTimeMS |
| like QDateTime, but properly handles milliseconds More... | |
| class | ScheduledAction |
| An action (either function or string) to be executed after a specified time interval, either once or repeatedly. More... | |
| class | WindowQObject |
| class | Location |
| class | XMLHttpRequestConstructorImp |
| class | XMLHttpRequest |
| class | XMLHttpRequestQObject |
| class | XMLSerializerConstructorImp |
| class | XMLSerializer |
Enumerations | |
| enum | { Plugins_Refresh, Plugins_Length, Plugins_Item, Plugins_NamedItem } |
| enum | { MimeTypes_Length, MimeTypes_Item, MimeTypes_NamedItem } |
| enum | { Plugin_Name, Plugin_FileName, Plugin_Description, Plugin_Length, Plugin_Item, Plugin_NamedItem } |
| enum | { MimeType_Type, MimeType_Description, MimeType_EnabledPlugin, MimeType_Suffixes } |
| enum | XMLHttpRequestState { Uninitialized = 0, Loading = 1, Loaded = 2, Interactive = 3, Completed = 4 } |
Functions | |
| DOM::Node | toNode (const Value &) |
| Value | getString (DOM::DOMString s) |
| QVariant | ValueToVariant (ExecState *exec, const Value &val) |
| Value | getLiveConnectValue (KParts::LiveConnectExtension *lc, const QString &name, const int type, const QString &value, int id) |
| template<class DOMObj, class KJSDOMObj> | |
| Value | cacheDOMObject (ExecState *exec, DOMObj domObj) |
| template<class FuncImp, class ThisImp, class ParentImp> | |
| Value | DOMObjectLookupGet (ExecState *exec, const Identifier &propertyName, const HashTable *table, const ThisImp *thisObj) |
| template<class ThisImp, class ParentImp> | |
| Value | DOMObjectLookupGetValue (ExecState *exec, const Identifier &propertyName, const HashTable *table, const ThisImp *thisObj) |
| template<class ThisImp, class ParentImp> | |
| void | DOMObjectLookupPut (ExecState *exec, const Identifier &propertyName, const Value &value, int attr, const HashTable *table, ThisImp *thisObj) |
| Value | getDOMCSSStyleDeclaration (ExecState *exec, const DOM::CSSStyleDeclaration &s) |
| Value | getDOMStyleSheet (ExecState *exec, const DOM::StyleSheet &ss) |
| Value | getDOMStyleSheetList (ExecState *exec, const DOM::StyleSheetList &ssl, const DOM::Document &doc) |
| Value | getDOMMediaList (ExecState *exec, const DOM::MediaList &ml) |
| Value | getDOMCSSRuleList (ExecState *exec, const DOM::CSSRuleList &rl) |
| Value | getDOMCSSRule (ExecState *exec, const DOM::CSSRule &r) |
| DOM::CSSRule | toCSSRule (const Value &) |
| Value | getCSSRuleConstructor (ExecState *exec) |
| Value | getDOMCSSValue (ExecState *exec, const DOM::CSSValue &v) |
| Value | getCSSValueConstructor (ExecState *exec) |
| Value | getCSSPrimitiveValueConstructor (ExecState *exec) |
| Value | getDOMRGBColor (ExecState *exec, const DOM::RGBColor &c) |
| Value | getDOMRect (ExecState *exec, const DOM::Rect &r) |
| Value | getDOMCounter (ExecState *exec, const DOM::Counter &c) |
| bool | checkNodeSecurity (ExecState *exec, const DOM::Node &n) |
| Value | getDOMNode (ExecState *exec, const DOM::Node &n) |
| Value | getDOMNamedNodeMap (ExecState *exec, const DOM::NamedNodeMap &m) |
| Value | getDOMNodeList (ExecState *exec, const DOM::NodeList &l) |
| Value | getDOMDOMImplementation (ExecState *exec, const DOM::DOMImplementation &i) |
| Object | getDOMExceptionConstructor (ExecState *exec) |
| Value | getDOMEvent (ExecState *exec, DOM::Event e) |
| DOM::Event | toEvent (const Value &val) |
| Value | getEventExceptionConstructor (ExecState *exec) |
| Value | getKeyboardEventConstructor (ExecState *exec) |
| Value | getMutationEventConstructor (ExecState *exec) |
| DOM::Event | toEvent (const Value &) |
| Value | getHTMLCollection (ExecState *exec, const DOM::HTMLCollection &c, bool hide) |
| Value | getSelectHTMLCollection (ExecState *exec, const DOM::HTMLCollection &c, const DOM::HTMLSelectElement &e) |
| Value | getDOMRange (ExecState *exec, DOM::Range r) |
| Value | getRangeConstructor (ExecState *exec) |
| DOM::Range | toRange (const Value &) |
| Value | getDOMNodeIterator (ExecState *exec, DOM::NodeIterator ni) |
| Value | getNodeFilterConstructor (ExecState *exec) |
| Value | getDOMNodeFilter (ExecState *exec, DOM::NodeFilter nf) |
| Value | getDOMTreeWalker (ExecState *exec, DOM::TreeWalker tw) |
| DOM::NodeFilter | toNodeFilter (const Value &) |
| Value | getDOMAbstractView (ExecState *exec, DOM::AbstractView av) |
| DOM::AbstractView | toAbstractView (const Value &) |
| static Value | httpStatus (const QString &response, bool textStatus=false) |
Function Documentation
| Value KJS::cacheDOMObject | ( | ExecState * | exec, | |
| DOMObj | domObj | |||
| ) | [inline] |
Retrieve from cache, or create, a KJS object around a DOM object.
Definition at line 158 of file kjs_binding.h.
| Value KJS::DOMObjectLookupGet | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| const HashTable * | table, | |||
| const ThisImp * | thisObj | |||
| ) | [inline] |
We need a modified version of lookupGet because we call tryGet instead of get, in DOMObjects.
Definition at line 192 of file kjs_binding.h.
| Value KJS::DOMObjectLookupGetValue | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| const HashTable * | table, | |||
| const ThisImp * | thisObj | |||
| ) | [inline] |
Simplified version of DOMObjectLookupGet in case there are no functions, only "values".
Definition at line 211 of file kjs_binding.h.
| void KJS::DOMObjectLookupPut | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| const Value & | value, | |||
| int | attr, | |||
| const HashTable * | table, | |||
| ThisImp * | thisObj | |||
| ) | [inline] |
We need a modified version of lookupPut because we call tryPut instead of put, in DOMObjects.
Definition at line 229 of file kjs_binding.h.
| Value KJS::getString | ( | DOM::DOMString | s | ) |
| DOM::AbstractView KJS::toAbstractView | ( | const Value & | ) |
Convert an object to an AbstractView.
Returns a null Node if not possible.
Definition at line 79 of file kjs_views.cpp.
| DOM::CSSRule KJS::toCSSRule | ( | const Value & | ) |
Convert an object to a CSSRule.
Returns a null CSSRule if not possible.
Definition at line 843 of file kjs_css.cpp.
| DOM::Event KJS::toEvent | ( | const Value & | ) |
Convert an object to an Event.
Returns a null Event if not possible.
| DOM::Node KJS::toNode | ( | const Value & | ) |
Convert an object to a Node.
Returns a null Node if not possible.
Definition at line 309 of file kjs_binding.cpp.
| DOM::NodeFilter KJS::toNodeFilter | ( | const Value & | ) |
Convert an object to a NodeFilter.
Returns a null Node if not possible.
Definition at line 283 of file kjs_traversal.cpp.
| DOM::Range KJS::toRange | ( | const Value & | ) |
Convert an object to a Range.
Returns a null Node if not possible.
Definition at line 222 of file kjs_range.cpp.
| QVariant KJS::ValueToVariant | ( | ExecState * | exec, | |
| const Value & | val | |||
| ) |

