documentmanager.cpp
48DocumentManager::DocumentManager (void *documentManager) : TQObject ((KateDocManager*) documentManager)
This interface provides access to the Kate Document Manager.
Definition documentmanager.h:30
class Document * activeDocument()
Returns a pointer to the currently active document or NULL if no document is open.
Definition documentmanager.cpp:64
bool isOpen(const KURL &url)
Returns true if the document located at url is open, otherwise false.
Definition documentmanager.cpp:79
uint documents()
returns the number of documents managed by this manager.
Definition documentmanager.cpp:84
bool closeDocument(class Document *document)
close a document by pointer
Definition documentmanager.cpp:94
class Document * document(uint n=0)
Returns a pointer to the document indexed by n in the managers internal list.
Definition documentmanager.cpp:59
class Document * documentWithID(uint id)
Returns a pointer to the document with the given ID or NULL if no such document exists.
Definition documentmanager.cpp:69
class Document * openURL(const KURL &url, const TQString &encoding=TQString::null, uint *id=0)
open a document and return a pointer to the document, if you specify a pointer != 0 to the id paramet...
Definition documentmanager.cpp:89
int findDocument(const KURL &url)
Returns the ID of the document located at url if such a document is known by the manager.
Definition documentmanager.cpp:74
bool closeDocumentWithID(uint id)
close a document identified by the ID
Definition documentmanager.cpp:104
Namespace collecting as much of the internal Kate classes as we can manage.
Definition kateapp.h:32
DocumentManager * documentManager()
Returns the document manager object.
Definition documentmanager.cpp:114
Trinity API Reference