00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _katedocmanager_Iface_h_
00020 #define _katedocmanager_Iface_h_
00021
00022 #include <dcopobject.h>
00023 #include <dcopref.h>
00024
00025 #include <kurl.h>
00026
00027 class KateDocManager;
00028
00029 class KateDocManagerDCOPIface : public DCOPObject
00030 {
00031 K_DCOP
00032
00033 public:
00034 KateDocManagerDCOPIface (KateDocManager *dm);
00035
00036 k_dcop:
00037 DCOPRef document (uint n);
00038
00039 DCOPRef activeDocument ();
00040
00041 uint activeDocumentNumber ();
00042
00043 DCOPRef documentWithID (uint id);
00044
00045 int findDocument (KURL url);
00046
00047 bool isOpen (KURL url);
00048
00049 uint documents ();
00050
00051 DCOPRef openURL (KURL url, TQString encoding);
00052
00053 bool closeDocument (uint n);
00054
00055 bool closeDocumentWithID (uint id);
00056
00057 bool closeAllDocuments ();
00058
00059 private:
00060 KateDocManager *m_dm;
00061 };
00062 #endif