interfaces Library API Documentation

KTextEditor::Document Class Reference

The main class representing a text document. More...

#include <document.h>

Inheritance diagram for KTextEditor::Document:

KTextEditor::Editor ReadWritePart ReadOnlyPart Part QObject PartBase KXMLGUIClient List of all members.

Public Methods

unsigned int documentNumber () const
QCString documentDCOPSuffix () const
virtual class ViewcreateView (QWidget *parent, const char *name=0)=0

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.


Member Function Documentation

unsigned int Document::documentNumber  
 

Returns the global number of this document in your app.

Definition at line 119 of file ktexteditor.cpp.

Referenced by documentDCOPSuffix().

QCString Document::documentDCOPSuffix  
 

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

Definition at line 124 of file ktexteditor.cpp.

References documentNumber(), and QCString::setNum().

virtual class View* KTextEditor::Document::createView QWidget   parent,
const char *    name = 0
[pure virtual]
 

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:
KDE Logo
This file is part of the documentation for interfaces Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 22 14:25:06 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003