22 #ifndef _KATELUAINDENTSCRIPT_H_
23 #define _KATELUAINDENTSCRIPT_H_
25 #include "kateindentscriptabstracts.h"
30 class KateLUAIndentScriptImpl:
public KateIndentScriptImplAbstract {
32 KateLUAIndentScriptImpl(
const TQString& internalName,
33 const TQString &filePath,
const TQString &niceName,
34 const TQString ©right,
double version);
35 ~KateLUAIndentScriptImpl();
37 virtual bool processChar(
class Kate::View *view, TQChar c, TQString &errorMsg );
39 virtual bool processNewline(
class Kate::View *view,
const KateDocCursor &begin,
bool needcontinue, TQString &errorMsg );
41 virtual void decRef();
43 bool setupInterpreter(TQString &errorMsg);
44 void deleteInterpreter();
45 struct lua_State *m_interpreter;
48 class KateLUAIndentScriptManager:
public KateIndentScriptManagerAbstract
52 KateLUAIndentScriptManager ();
53 virtual ~KateLUAIndentScriptManager ();
54 virtual KateIndentScript script(
const TQString &scriptname);
60 void collectScripts (
bool force =
false);
61 void parseScriptHeader(
const TQString &filePath,
62 TQString *niceName,TQString *copyright,
double *version);
63 TQDict<KateLUAIndentScriptImpl> m_scripts;
Cursor class with a pointer to its document.
The Kate::View text editor interface.