khtml Library API Documentation

KJS::Window Class Reference

Collaboration diagram for KJS::Window:

Collaboration graph
[legend]
List of all members.

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::ReadOnlyPartpart () 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
Locationlocation () const
ObjectImp * frames (ExecState *exec) const
JSEventListenergetJSEventListener (const Value &val, bool html=false)
JSLazyEventListenergetJSLazyEventListener (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 WindowretrieveWindow (KParts::ReadOnlyPart *p)
static WindowretrieveActive (ExecState *exec)

Public Attributes

QPtrDict< JSEventListenerjsEventListeners
WindowQObjectwinq

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< KHTMLPartgetInstance ()

Detailed Description

Definition at line 71 of file kjs_window.h.


Member Function Documentation

Value Window::retrieve KParts::ReadOnlyPart p  )  [static]
 

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().

Window * Window::retrieveWindow KParts::ReadOnlyPart p  )  [static]
 

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().

Window * Window::retrieveActive ExecState *  exec  )  [static]
 

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:
KDE Logo
This file is part of the documentation for khtml Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 15 11:16:45 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003