documentmanager.cpp
48 DocumentManager::DocumentManager (void *documentManager) : TQObject ((KateDocManager*) documentManager)
uint documents()
returns the number of documents managed by this manager.
Definition: documentmanager.cpp:84
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
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 * activeDocument()
Returns a pointer to the currently active document or NULL if no document is open.
Definition: documentmanager.cpp:64
bool closeDocumentWithID(uint id)
close a document identified by the ID
Definition: documentmanager.cpp:104
Kate::DocumentManager * documentManager()
Returns a pointer to the document manager.
Definition: application.cpp:60
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
DocumentManager * documentManager()
Returns the document manager object.
Definition: documentmanager.cpp:114
This interface provides access to the Kate Document Manager.
Definition: documentmanager.h:29
bool isOpen(const KURL &url)
Returns true if the document located at url is open, otherwise false.
Definition: documentmanager.cpp:79
Namespace collecting as much of the internal Kate classes as we can manage.
Definition: kateapp.h:32
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
bool closeDocument(class Document *document)
close a document by pointer
Definition: documentmanager.cpp:94