19 #include "documentmanager.h"
20 #include "documentmanager.moc"
23 #include "viewmanager.h"
24 #include "toolviewmanager.h"
25 #include "pluginmanager.h"
27 #include "application.h"
29 #include "../app/katedocmanager.h"
34 class PrivateDocumentManager
37 PrivateDocumentManager ()
41 ~PrivateDocumentManager ()
45 KateDocManager *docMan;
50 d =
new PrivateDocumentManager ();
51 d->docMan = (KateDocManager*) documentManager;
54 DocumentManager::~DocumentManager ()
59 Document *DocumentManager::document (uint n)
61 return d->docMan->document (n);
64 Document *DocumentManager::activeDocument ()
66 return d->docMan->activeDocument ();
69 Document *DocumentManager::documentWithID (uint
id)
71 return d->docMan->documentWithID (
id);
74 int DocumentManager::findDocument (
const KURL &url)
76 return d->docMan->findDocument (url);
79 bool DocumentManager::isOpen (
const KURL &url)
81 return d->docMan->isOpen (url);
84 uint DocumentManager::documents ()
86 return d->docMan->documents ();
89 Document *DocumentManager::openURL(
const KURL&url,
const TQString &encoding,uint *
id)
91 return d->docMan->openURL (url, encoding,
id);
94 bool DocumentManager::closeDocument(Document *document)
96 return d->docMan->closeDocument (document);
99 bool DocumentManager::closeDocument(uint n)
101 return d->docMan->closeDocument (n);
104 bool DocumentManager::closeDocumentWithID(uint
id)
106 return d->docMan->closeDocument (
id);
109 bool DocumentManager::closeAllDocuments()
111 return d->docMan->closeAllDocuments ();
Kate::DocumentManager * documentManager()
Returns a pointer to the document manager.
This interface provides access to the Kate Document Manager.
Namespace collecting as much of the internal Kate classes as we can manage.
Application * application()
Returns the application object.
DocumentManager * documentManager()
Returns the document manager object.