19 #include "kateappIface.h"
22 #include "katesession.h"
23 #include "katedocmanager.h"
24 #include "katemainwindow.h"
28 KateAppDCOPIface::KateAppDCOPIface (
KateApp *app) : DCOPObject (
"KateApplication")
33 DCOPRef KateAppDCOPIface::documentManager ()
35 return DCOPRef (m_app->documentManager()->dcopObject ());
38 DCOPRef KateAppDCOPIface::activeMainWindow ()
40 KateMainWindow *win = m_app->activeMainWindow();
43 return DCOPRef (win->dcopObject ());
48 uint KateAppDCOPIface::activeMainWindowNumber ()
50 KateMainWindow *win = m_app->activeMainWindow();
53 return win->mainWindowNumber ();
59 uint KateAppDCOPIface::mainWindows ()
61 return m_app->mainWindows ();
64 DCOPRef KateAppDCOPIface::mainWindow (uint n)
66 KateMainWindow *win = m_app->mainWindow(n);
69 return DCOPRef (win->dcopObject ());
74 bool KateAppDCOPIface::openURL (KURL url, TQString encoding)
76 return m_app->openURL (url, encoding,
false);
79 bool KateAppDCOPIface::openURL (KURL url, TQString encoding,
bool isTempFile)
81 return m_app->openURL (url, encoding, isTempFile);
84 bool KateAppDCOPIface::setCursor (
int line,
int column)
86 return m_app->setCursor (line, column);
89 bool KateAppDCOPIface::openInput (TQString text)
91 return m_app->openInput (text);
94 bool KateAppDCOPIface::activateSession(TQString session)
96 m_app->sessionManager()->activateSession(m_app->sessionManager()->getSessionIdFromName(session));
100 const TQString& KateAppDCOPIface::session()
const
102 return m_app->sessionManager()->getActiveSessionName();
Kate Application This class represents the core kate application object.