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