• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

  • KTextEditor
  • Document
Public Member Functions | Friends | List of all members
KTextEditor::Document Class Referenceabstract

#include <document.h>

Inheritance diagram for KTextEditor::Document:
KTextEditor::Editor KParts::ReadWritePart KParts::ReadOnlyPart KParts::Part KParts::PartBase KXMLGUIClient

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
 
long documentListPosition () const
 
void setDocumentListPosition (long pos)
 
- Public Member Functions inherited from KTextEditor::Editor
 Editor (TQObject *parent=0, const char *name=0)
 
unsigned int editorNumber () const
 
- Public Member Functions inherited from KParts::ReadWritePart
 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)
 
- Public Member Functions inherited from KParts::ReadOnlyPart
 ReadOnlyPart (TQObject *parent=0, const char *name=0)
 
void setProgressInfoEnabled (bool show)
 
bool isProgressInfoEnabled () const
 
KURL url () const
 
bool openStream (const TQString &mimeType, const KURL &url)
 
bool writeStream (const TQByteArray &data)
 
bool closeStream ()
 
- Public Member Functions inherited from KParts::Part
 Part (TQObject *parent=0, const char *name=0)
 
virtual void embed (TQWidget *parentWidget)
 
virtual TQWidget * widget ()
 
PartManager * manager () const
 
virtual Part * hitTest (TQWidget *widget, const TQPoint &globalPos)
 
virtual void setSelectable (bool selectable)
 
bool isSelectable () const
 

Friends

class PrivateDocument
 

Additional Inherited Members

- Public Slots inherited from KParts::ReadWritePart
virtual void setModified ()
 
virtual bool save ()
 
bool waitSaveComplete ()
 
- Public Slots inherited from KParts::ReadOnlyPart
virtual bool openURL (const KURL &url)
 
- Signals inherited from KParts::ReadWritePart
void sigQueryClose (bool *handled, bool *abortClosing)
 
- Signals inherited from KParts::ReadOnlyPart
void started (TDEIO::Job *)
 
void completed ()
 
void completed (bool pendingAction)
 
void canceled (const TQString &errMsg)
 
- Signals inherited from KParts::Part
void setWindowCaption (const TQString &caption)
 
void setStatusBarText (const TQString &text)
 
- Protected Member Functions inherited from KParts::ReadWritePart
virtual bool saveFile ()=0
 
virtual bool saveToURL ()
 
- Protected Member Functions inherited from KParts::ReadOnlyPart
virtual bool openFile ()=0
 
virtual void guiActivateEvent (GUIActivateEvent *event)
 
- Protected Member Functions inherited from KParts::Part
virtual void setWidget (TQWidget *widget)
 
virtual void partActivateEvent (PartActivateEvent *event)
 
virtual void partSelectEvent (PartSelectEvent *event)
 
TQWidget * hostContainer (const TQString &containerName)
 
- Protected Attributes inherited from KParts::ReadOnlyPart
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

virtual class View* KTextEditor::Document::createView ( TQWidget *  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.

TQCString Document::documentDCOPSuffix ( ) const

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

Definition at line 135 of file tdetexteditor.cpp.

long Document::documentListPosition ( ) const

Returns the list position of this document in your app, if applicable.

Definition at line 125 of file tdetexteditor.cpp.

unsigned int Document::documentNumber ( ) const

Returns the global number of this document in your app.

Definition at line 120 of file tdetexteditor.cpp.

void Document::setDocumentListPosition ( long  pos)

Sets the list position of this document in your app, if applicable.

Definition at line 130 of file tdetexteditor.cpp.


The documentation for this class was generated from the following files:
  • document.h
  • tdetexteditor.cpp

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces by doxygen 1.8.8
This website is maintained by Timothy Pearson.