KTextEditor::Document Class Reference
#include <document.h>
Inheritance diagram for KTextEditor::Document:

Public Member Functions | |
Document (TQObject *parent=0, const char *name=0) | |
unsigned int | documentNumber () const |
TQCString | documentDCOPSuffix () const |
virtual class View * | createView (TQWidget *parent, const char *name=0)=0 |
virtual TQPtrList< class View > | views () const =0 |
![]() | |
Editor (TQObject *parent=0, const char *name=0) | |
unsigned int | editorNumber () const |
![]() | |
ReadWritePart (TQObject *parent=0, const char *name=0) | |
bool | isReadWrite () const |
virtual void | setReadWrite (bool readwrite=true) |
bool | isModified () const |
bool | queryClose () |
virtual bool | closeURL () |
bool | closeURL (bool promptToSave) |
virtual bool | saveAs (const KURL &url) |
virtual void | setModified (bool modified) |
ReadOnlyPart (TQObject *parent=0, const char *name=0) | |
void | setProgressInfoEnabled (bool show) |
bool | isProgressInfoEnabled () const |
void | showProgressInfo (bool show) |
KURL | url () const |
bool | openStream (const TQString &mimeType, const KURL &url) |
bool | writeStream (const TQByteArray &data) |
bool | closeStream () |
Part (TQObject *parent=0, const char *name=0) | |
virtual void | embed (TQWidget *parentWidget) |
virtual TQWidget * | widget () |
virtual void | setManager (PartManager *manager) |
PartManager * | manager () const |
virtual Part * | hitTest (TQWidget *widget, const TQPoint &globalPos) |
virtual void | setSelectable (bool selectable) |
bool | isSelectable () const |
PartBase () | |
void | setPartObject (TQObject *object) |
TQObject * | partObject () const |
Friends | |
class | PrivateDocument |
Additional Inherited Members | |
![]() | |
enum | PluginLoadingMode |
![]() | |
virtual void | setModified () |
virtual bool | save () |
bool | waitSaveComplete () |
virtual bool | openURL (const KURL &url) |
![]() | |
void | sigQueryClose (bool *handled, bool *abortClosing) |
void | started (KIO::Job *) |
void | completed () |
void | completed (bool pendingAction) |
void | canceled (const TQString &errMsg) |
void | setWindowCaption (const TQString &caption) |
void | setStatusBarText (const TQString &text) |
![]() | |
static TQString | findMostRecentXMLFile (const TQStringList &files, TQString &doc) |
![]() | |
DoNotLoadPlugins | |
LoadPlugins | |
LoadPluginsIfEnabled | |
![]() | |
void | slotUploadFinished (KIO::Job *job) |
void | slotJobFinished (KIO::Job *job) |
![]() | |
virtual bool | saveFile ()=0 |
virtual bool | saveToURL () |
virtual bool | openFile ()=0 |
void | abortLoad () |
virtual void | guiActivateEvent (GUIActivateEvent *event) |
virtual void | setWidget (TQWidget *widget) |
virtual void | customEvent (TQCustomEvent *event) |
virtual void | partActivateEvent (PartActivateEvent *event) |
virtual void | partSelectEvent (PartSelectEvent *event) |
TQWidget * | hostContainer (const TQString &containerName) |
virtual void | setInstance (KInstance *instance) |
virtual void | setInstance (KInstance *instance, bool loadPlugins) |
void | loadPlugins (TQObject *parent, KXMLGUIClient *parentGUIClient, KInstance *instance) |
void | setPluginLoadingMode (PluginLoadingMode loadingMode) |
![]() | |
KURL | m_url |
TQString | m_file |
bool | m_bTemp |
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
|
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.
TQCString Document::documentDCOPSuffix | ( | ) | const |
Returns this document's DCOP suffix for identifiying its DCOP interface.
Definition at line 124 of file ktexteditor.cpp.
unsigned int Document::documentNumber | ( | ) | const |
Returns the global number of this document in your app.
Definition at line 119 of file ktexteditor.cpp.
The documentation for this class was generated from the following files: