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

kate

  • kate
  • part
katespell.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2004-2005 Anders Lund <anders@alweb.dk>
3  Copyright (C) 2002 John Firebaugh <jfirebaugh@kde.org>
4  Copyright (C) 2001-2004 Christoph Cullmann <cullmann@kde.org>
5  Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
6  Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License version 2 as published by the Free Software Foundation.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef __KATE_SPELL_H__
24 #define __KATE_SPELL_H__
25 
26 #include "katecursor.h"
27 
28 class KateView;
29 
30 class KAction;
31 class KSpell;
32 
33 class KateSpell : public TQObject
34 {
35  Q_OBJECT
36 
37  public:
38  KateSpell( KateView* );
39  ~KateSpell();
40 
41  void createActions( KActionCollection* );
42 
43  void updateActions ();
44 
45  // spellcheck from cursor, selection
46  private slots:
47  void spellcheckFromCursor();
48 
49  // defined here in anticipation of pr view selections ;)
50  void spellcheckSelection();
51 
52  void spellcheck();
53 
60  void spellcheck( const KateTextCursor &from, const KateTextCursor &to=KateTextCursor() );
61 
62  void ready(KSpell *);
63  void misspelling( const TQString&, const TQStringList&, unsigned int );
64  void corrected ( const TQString&, const TQString&, unsigned int);
65  void spellResult( const TQString& );
66  void spellCleanDone();
67 
68  void locatePosition( uint pos, uint& line, uint& col );
69 
70  private:
71  KateView *m_view;
72  KAction *m_spellcheckSelection;
73 
74  KSpell *m_kspell;
75 
76  // define the part of the text to check
77  KateTextCursor m_spellStart, m_spellEnd;
78 
79  // keep track of where we are.
80  KateTextCursor m_spellPosCursor;
81  uint m_spellLastPos;
82 };
83 
84 #endif
85 
86 // kate: space-indent on; indent-width 2; replace-tabs on;
KateTextCursor
Simple cursor class with no document pointer.
Definition: katecursor.h:33
KActionCollection
KAction
KSpell

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.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |