\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=218pt]{classKJS_1_1ScriptInterpreter__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Script\-Interpreter} (const  Object \&global, {\bf KHTMLPart} $\ast$part)\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} ()
\begin{CompactList}\small\item\em Mark objects in the {\bf DOMObject}{\rm (p.\,\pageref{classKJS_1_1DOMObject})} cache. \item\end{CompactList}\item 
{\bf KHTMLPart} $\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)
\begin{CompactList}\small\item\em Set the event that is triggering the execution of a script, if any. \item\end{CompactList}\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 
\begin{CompactList}\small\item\em \char`\"{}Smart\char`\"{} window.open policy \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
void {\bf forget\-DOMObject} (void $\ast$object\-Handle)
\begin{CompactList}\small\item\em Static method. \item\end{CompactList}\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 83 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 167 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 178 of file kjs\_\-binding.cpp.

References QPtr\-Dict$<$ DOMObject $>$::count(), and QPtr\-Dict\-Iterator::current().\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 117 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 189 of file kjs\_\-binding.cpp.

References DOM::Event::handle().

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