19 #ifndef __KATE_FACTORY_H__
20 #define __KATE_FACTORY_H__
22 #include "katejscript.h"
23 #include <tdeparts/factory.h>
26 #include <kinstance.h>
27 #include <tdeaboutdata.h>
30 #define KATEPART_VERSION "2.5"
33 class KateFileTypeManager;
34 class KateSchemaManager;
35 class KateDocumentConfig;
37 class KateRendererConfig;
42 class KateJScriptManager;
43 class KateIndentScriptManagerAbstract;
70 static KateFactory *
self ();
82 KParts::Part *createPartObject ( TQWidget *parentWidget,
const char *widgetName,
83 TQObject *parent,
const char *name,
const char *classname,
84 const TQStringList &args );
97 void registerDocument ( KateDocument *doc );
103 void deregisterDocument ( KateDocument *doc );
110 void registerView ( KateView *view );
116 void deregisterView ( KateView *view );
135 inline TQPtrList<KateDocument> *documents () {
return &m_documents; };
141 inline TQPtrList<KateView> *views () {
return &m_views; };
147 inline TQPtrList<KateRenderer> *renderers () {
return &m_renderers; };
153 inline const TDETrader::OfferList &plugins () {
return m_plugins; };
159 inline KDirWatch *dirWatch () {
return m_dirWatch; };
166 inline KateFileTypeManager *fileTypeManager () {
return m_fileTypeManager; };
172 inline KateSchemaManager *schemaManager () {
return m_schemaManager; };
178 inline KateDocumentConfig *documentConfig () {
return m_documentConfig; }
184 inline KateViewConfig *viewConfig () {
return m_viewConfig; }
190 inline KateRendererConfig *rendererConfig () {
return m_rendererConfig; }
206 KateJScriptManager *jscriptManager () {
return m_jscriptManager; }
213 KateIndentScript indentScript (
const TQString &scriptname);
219 static KateFactory *s_self;
234 TQPtrList<KateDocument> m_documents;
239 TQPtrList<KateView> m_views;
244 TQPtrList<KateRenderer> m_renderers;
249 KDirWatch *m_dirWatch;
254 KateFileTypeManager *m_fileTypeManager;
259 KateSchemaManager *m_schemaManager;
264 TDETrader::OfferList m_plugins;
269 KateDocumentConfig *m_documentConfig;
274 KateViewConfig *m_viewConfig;
279 KateRendererConfig *m_rendererConfig;
289 TQValueList<Kate::Command *> m_cmds;
300 KateJScriptManager *m_jscriptManager;
306 TQPtrList<KateIndentScriptManagerAbstract> m_indentScriptManagers;
Whole Kate Part scripting in one classs Allow subclassing to allow specialized scripting engine for i...
Handles all of the work of rendering the text (used for the views and printing)
Kate namespace All classes in this namespace must stay BC during one major release series (e....