KJS::Window Class Reference
Collaboration diagram for KJS::Window:
Public Types | |
enum | { Closed, Crypto, DefaultStatus, Status, Document, Node, EventCtor, Range, NodeFilter, DOMException, CSSRule, Frames, _History, _External, Event, InnerHeight, InnerWidth, Length, _Location, Navigate, Name, _Navigator, _Konqueror, ClientInformation, OffscreenBuffering, Opener, OuterHeight, OuterWidth, PageXOffset, PageYOffset, Parent, Personalbar, ScreenX, ScreenY, Scrollbars, Scroll, ScrollBy, ScreenTop, ScreenLeft, ScrollTo, ScrollX, ScrollY, MoveBy, MoveTo, ResizeBy, ResizeTo, Self, _Window, Top, _Screen, Image, Option, Alert, Confirm, Prompt, Open, SetTimeout, ClearTimeout, XMLHttpRequest, XMLSerializer, Focus, Blur, Close, SetInterval, ClearInterval, CaptureEvents, ReleaseEvents, Print, AddEventListener, RemoveEventListener, SideBar, Onabort, Onblur, Onchange, Onclick, Ondblclick, Ondragdrop, Onerror, Onfocus, Onkeydown, Onkeypress, Onkeyup, Onload, Onmousedown, Onmousemove, Onmouseout, Onmouseover, Onmouseup, Onmove, Onreset, Onresize, Onselect, Onsubmit, Onunload } |
Public Member Functions | |
Window (khtml::ChildFrame *p) | |
~Window () | |
KParts::ReadOnlyPart * | part () const |
virtual void | mark () |
virtual bool | hasProperty (ExecState *exec, const Identifier &p) const |
virtual Value | get (ExecState *exec, const Identifier &propertyName) const |
virtual void | put (ExecState *exec, const Identifier &propertyName, const Value &value, int attr=None) |
virtual bool | toBoolean (ExecState *exec) const |
void | scheduleClose () |
void | closeNow () |
void | delayedGoHistory (int steps) |
void | goHistory (int steps) |
void | goURL (ExecState *exec, const QString &url, bool lockHistory) |
Value | openWindow (ExecState *exec, const List &args) |
void | resizeTo (QWidget *tl, int width, int height) |
void | afterScriptExecution () |
bool | isSafeScript (ExecState *exec) const |
Location * | location () const |
ObjectImp * | frames (ExecState *exec) const |
JSEventListener * | getJSEventListener (const Value &val, bool html=false) |
JSLazyEventListener * | getJSLazyEventListener (const QString &code, const QString &name, bool html=false) |
void | clear (ExecState *exec) |
virtual UString | toString (ExecState *exec) const |
void | setCurrentEvent (DOM::Event *evt) |
virtual const ClassInfo * | classInfo () const |
Static Public Member Functions | |
static Value | retrieve (KParts::ReadOnlyPart *p) |
static Window * | retrieveWindow (KParts::ReadOnlyPart *p) |
static Window * | retrieveActive (ExecState *exec) |
Public Attributes | |
QPtrDict< JSEventListener > | jsEventListeners |
WindowQObject * | winq |
Static Public Attributes | |
static const ClassInfo | info = { "Window", 0, &WindowTable, 0 } |
Protected Types | |
enum | DelayedActionId { NullAction, DelayedClose, DelayedGoHistory } |
Protected Member Functions | |
Value | getListener (ExecState *exec, int eventId) const |
void | setListener (ExecState *exec, int eventId, Value func) |
Friends | |
class | Location |
class | WindowFunc |
class | WindowQObject |
class | ScheduledAction |
struct | DelayedAction |
QGuardedPtr< KHTMLPart > | getInstance () |
Detailed Description
Definition at line 71 of file kjs_window.h.
Member Function Documentation
|
Returns and registers a window object. In case there's already a Window for the specified part p this will be returned in order to have unique bindings. Definition at line 362 of file kjs_window.cpp. References endl(), KHTMLPart::framejScript(), KJSProxy::interpreter(), KHTMLPart::jScript(), kdDebug(), QObject::name(), QObject::parent(), and part(). Referenced by get(), openWindow(), retrieveWindow(), and KJS::HTMLDocument::tryGet(). |
|
Returns the Window object for a given part.
Definition at line 333 of file kjs_window.cpp. References KHTMLPart::jScriptEnabled(), part(), and retrieve(). Referenced by KJS::checkNodeSecurity(), KJS::Location::get(), KJS::HTMLDocument::hasProperty(), openWindow(), KJS::Location::put(), KJS::HTMLDocument::putValueProperty(), KJS::Location::toPrimitive(), KJS::Location::toString(), KJS::HTMLDocument::tryGet(), and KJS::HTMLDocument::tryPut(). |
|
returns a pointer to the Window object this javascript interpreting instance was called from.
Definition at line 352 of file kjs_window.cpp. Referenced by KJS::Screen::getValueProperty(), goURL(), openWindow(), KJS::Location::put(), KJS::XMLHttpRequest::putValueProperty(), KJS::Image::putValueProperty(), and KJS::DOMNode::setListener(). |
The documentation for this class was generated from the following files: