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
TDEAction
;
31
class
KSpell
;
32
33
class
KateSpell :
public
TQObject
34
{
35
TQ_OBJECT
36
37
public
:
38
KateSpell( KateView* );
39
~KateSpell();
40
41
void
createActions(
TDEActionCollection
* );
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
TDEAction
*m_spellcheckSelection;
73
74
KSpell
*m_tdespell;
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
KSpell
KateTextCursor
Simple cursor class with no document pointer.
Definition:
katecursor.h:34
TDEActionCollection
TDEAction
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
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet