KJS::Window Class Reference

List of all members.

Detailed Description

Definition at line 72 of file kjs_window.h.


Public Types

 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
 AToB
 BToA
 FrameElement
 GetComputedStyle
 ScrollTo
 ScrollX
 ScrollY
 MoveBy
 MoveTo
 ResizeBy
 ResizeTo
 Self
 _Window
 Top
 _Screen
 Image
 Option
 Alert
 Confirm
 Prompt
 Open
 SetTimeout
 ClearTimeout
 XMLHttpRequest
 XMLSerializer
 DOMParser
 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
 MutationEventCtor
 KeyboardEventCtor
 EventExceptionCtor
 ElementCtor
 DocumentCtor
 HTMLElementCtor
 HTMLDocumentCtor
 CSSStyleDeclarationCtor
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, AToB,
  BToA, FrameElement, GetComputedStyle, ScrollTo,
  ScrollX, ScrollY, MoveBy, MoveTo,
  ResizeBy, ResizeTo, Self, _Window,
  Top, _Screen, Image, Option,
  Alert, Confirm, Prompt, Open,
  SetTimeout, ClearTimeout, XMLHttpRequest, XMLSerializer,
  DOMParser, 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, MutationEventCtor,
  KeyboardEventCtor, EventExceptionCtor, ElementCtor, DocumentCtor,
  HTMLElementCtor, HTMLDocumentCtor, CSSStyleDeclarationCtor
}

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
virtual DOM::AbstractView toAbstractView () 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)
Value executeOpenWindow (ExecState *exec, const KURL &url, const QString &frameName, const QString &features)
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, DOM::NodeImpl *node)
void clear (ExecState *exec)
virtual UString toString (ExecState *exec) const
void setCurrentEvent (DOM::Event *evt)
virtual const ClassInfo * classInfo () const
void forgetSuppressedWindows ()
void showSuppressedWindows ()

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", &DOMAbstractView::info, &WindowTable, 0 }

Protected Types

 NullAction
 DelayedClose
 DelayedGoHistory
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 ()

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 390 of file kjs_window.cpp.

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

returns a pointer to the Window object this javascript interpreting instance was called from.

Definition at line 380 of file kjs_window.cpp.

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

Returns the Window object for a given part.

Definition at line 361 of file kjs_window.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys