• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • part
kateluaindentscript.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2005 Joseph Wenninger <jowenn@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "config.h"
20 #ifdef HAVE_LUA
21 
22 #ifndef _KATELUAINDENTSCRIPT_H_
23 #define _KATELUAINDENTSCRIPT_H_
24 
25 #include "kateindentscriptabstracts.h"
26 #include <tqdict.h>
27 
28 struct lua_State;
29 
30 class KateLUAIndentScriptImpl: public KateIndentScriptImplAbstract {
31  public:
32  KateLUAIndentScriptImpl(const TQString& internalName,
33  const TQString &filePath, const TQString &niceName,
34  const TQString &copyright, double version);
35  ~KateLUAIndentScriptImpl();
36 
37  virtual bool processChar( class Kate::View *view, TQChar c, TQString &errorMsg );
38  virtual bool processLine( class Kate::View *view, const KateDocCursor &line, TQString &errorMsg );
39  virtual bool processNewline( class Kate::View *view, const KateDocCursor &begin, bool needcontinue, TQString &errorMsg );
40  protected:
41  virtual void decRef();
42  private:
43  bool setupInterpreter(TQString &errorMsg);
44  void deleteInterpreter();
45  struct lua_State *m_interpreter;
46 };
47 
48 class KateLUAIndentScriptManager: public KateIndentScriptManagerAbstract
49 {
50 
51  public:
52  KateLUAIndentScriptManager ();
53  virtual ~KateLUAIndentScriptManager ();
54  virtual KateIndentScript script(const TQString &scriptname);
55  private:
60  void collectScripts (bool force = false);
61  void parseScriptHeader(const TQString &filePath,
62  TQString *niceName,TQString *copyright,double *version);
63  TQDict<KateLUAIndentScriptImpl> m_scripts;
64 };
65 
66 #endif
67 
68 #endif
69 // kate: space-indent on; indent-width 2; replace-tabs on;
KateDocCursor
Cursor class with a pointer to its document.
Definition: katecursor.h:92
Kate::View
The Kate::View text editor interface.
Definition: view.h:42

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kate by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |