\section{KText\-Editor::Document Class Reference}
\label{classKTextEditor_1_1Document}\index{KTextEditor::Document@{KTextEditor::Document}}
The main class representing a text document.  


{\tt \#include $<$document.h$>$}

Inheritance diagram for KText\-Editor::Document:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{classKTextEditor_1_1Document__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KText\-Editor::Document:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=124pt]{classKTextEditor_1_1Document__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Document} ({\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)\label{classKTextEditor_1_1Document_a0}

\item 
unsigned int {\bf document\-Number} () const 
\item 
{\bf QCString} {\bf document\-DCOPSuffix} () const 
\item 
virtual class {\bf View} $\ast$ {\bf create\-View} ({\bf QWidget} $\ast${\bf parent}, const char $\ast${\bf name}=0)=0
\item 
virtual {\bf QPtr\-List}$<$ class {\bf View} $>$ {\bf views} () const =0\label{classKTextEditor_1_1Document_a5}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Private\-Document}\label{classKTextEditor_1_1Document_n0}

\end{CompactItemize}


\subsection{Detailed Description}
The main class representing a text document. 

This class provides access to the document's views. 



Definition at line 31 of file document.h.

\subsection{Member Function Documentation}
\index{KTextEditor::Document@{KText\-Editor::Document}!documentNumber@{documentNumber}}
\index{documentNumber@{documentNumber}!KTextEditor::Document@{KText\-Editor::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned int Document::document\-Number () const}\label{classKTextEditor_1_1Document_a2}


Returns the global number of this document in your app. 



Definition at line 119 of file ktexteditor.cpp.

Referenced by document\-DCOPSuffix().\index{KTextEditor::Document@{KText\-Editor::Document}!documentDCOPSuffix@{documentDCOPSuffix}}
\index{documentDCOPSuffix@{documentDCOPSuffix}!KTextEditor::Document@{KText\-Editor::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QCString} Document::document\-DCOPSuffix () const}\label{classKTextEditor_1_1Document_a3}


Returns this document's DCOP suffix for identifiying its DCOP interface. 



Definition at line 124 of file ktexteditor.cpp.

References document\-Number(), and QCString::set\-Num().\index{KTextEditor::Document@{KText\-Editor::Document}!createView@{createView}}
\index{createView@{createView}!KTextEditor::Document@{KText\-Editor::Document}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual class {\bf View}$\ast$ KText\-Editor::Document::create\-View ({\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1Document_a4}


Create a view that will display the document data. 

You can create as many views as you like. When the user modifies data in one view then all other views will be updated as well. 

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
document.h\item 
ktexteditor.cpp\end{CompactItemize}
