\section{KJS::Script\-Interpreter Class Reference}
\label{classKJS_1_1ScriptInterpreter}\index{KJS::ScriptInterpreter@{KJS::ScriptInterpreter}}
We inherit from Interpreter, to save a pointer to the HTML part that the interpreter runs for.  


{\tt \#include $<$kjs\_\-binding.h$>$}

Collaboration diagram for KJS::Script\-Interpreter:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=127pt]{classKJS_1_1ScriptInterpreter__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Script\-Interpreter} (const Object \&global, khtml::Child\-Frame $\ast$frame)\label{classKJS_1_1ScriptInterpreter_a0}

\item 
{\bf DOMObject} $\ast$ {\bf get\-DOMObject} (void $\ast$object\-Handle) const \label{classKJS_1_1ScriptInterpreter_a2}

\item 
void {\bf put\-DOMObject} (void $\ast$object\-Handle, {\bf DOMObject} $\ast$obj)\label{classKJS_1_1ScriptInterpreter_a3}

\item 
bool {\bf delete\-DOMObject} (void $\ast$object\-Handle)\label{classKJS_1_1ScriptInterpreter_a4}

\item 
void {\bf clear} ()\label{classKJS_1_1ScriptInterpreter_a5}

\item 
virtual void {\bf mark} ()
\item 
{\bf KParts::Read\-Only\-Part} $\ast$ {\bf part} () const \label{classKJS_1_1ScriptInterpreter_a7}

\item 
virtual int {\bf rtti} ()\label{classKJS_1_1ScriptInterpreter_a8}

\item 
void {\bf set\-Current\-Event} ({\bf DOM::Event} $\ast$evt)
\item 
void {\bf set\-Inline\-Code} (bool inline\-Code)\label{classKJS_1_1ScriptInterpreter_a10}

\item 
void {\bf set\-Processing\-Timer\-Callback} (bool timer\-Callback)\label{classKJS_1_1ScriptInterpreter_a11}

\item 
bool {\bf is\-Window\-Open\-Allowed} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static void {\bf forget\-DOMObject} (void $\ast$object\-Handle)
\end{CompactItemize}


\subsection{Detailed Description}
We inherit from Interpreter, to save a pointer to the HTML part that the interpreter runs for. 

The interpreter also stores the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} object - $>${\bf KJS::DOMObject}{\rm (p.\,\pageref{classKJS_1_1DOMObject})} cache. 



Definition at line 93 of file kjs\_\-binding.h.

\subsection{Member Function Documentation}
\index{KJS::ScriptInterpreter@{KJS::Script\-Interpreter}!forgetDOMObject@{forgetDOMObject}}
\index{forgetDOMObject@{forgetDOMObject}!KJS::ScriptInterpreter@{KJS::Script\-Interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Script\-Interpreter::forget\-DOMObject (void $\ast$ {\em object\-Handle})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1ScriptInterpreter_e0}


Static method. 

Makes all interpreters forget about the object 

Definition at line 172 of file kjs\_\-binding.cpp.

References QPtr\-List\-Iterator::current().\index{KJS::ScriptInterpreter@{KJS::Script\-Interpreter}!mark@{mark}}
\index{mark@{mark}!KJS::ScriptInterpreter@{KJS::Script\-Interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Script\-Interpreter::mark ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKJS_1_1ScriptInterpreter_a6}


Mark objects in the {\bf DOMObject}{\rm (p.\,\pageref{classKJS_1_1DOMObject})} cache. 



Definition at line 183 of file kjs\_\-binding.cpp.

References QPtr\-Dict::count(), QPtr\-Dict\-Iterator::current(), endl(), and kd\-Debug().\index{KJS::ScriptInterpreter@{KJS::Script\-Interpreter}!setCurrentEvent@{setCurrentEvent}}
\index{setCurrentEvent@{setCurrentEvent}!KJS::ScriptInterpreter@{KJS::Script\-Interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJS::Script\-Interpreter::set\-Current\-Event ({\bf DOM::Event} $\ast$ {\em evt})\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ScriptInterpreter_a9}


Set the event that is triggering the execution of a script, if any. 



Definition at line 127 of file kjs\_\-binding.h.\index{KJS::ScriptInterpreter@{KJS::Script\-Interpreter}!isWindowOpenAllowed@{isWindowOpenAllowed}}
\index{isWindowOpenAllowed@{isWindowOpenAllowed}!KJS::ScriptInterpreter@{KJS::Script\-Interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Script\-Interpreter::is\-Window\-Open\-Allowed () const}\label{classKJS_1_1ScriptInterpreter_a12}


\char`\"{}Smart\char`\"{} window.open policy 



Definition at line 198 of file kjs\_\-binding.cpp.

References endl(), DOM::Event::handle(), and kd\-Debug().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kjs\_\-binding.h\item 
kjs\_\-binding.cpp\end{CompactItemize}
