.TH "KSpell" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSpell \- KDE Spellchecker  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kspell.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBspellStatus\fP { \fBStarting\fP =  0, \fBRunning\fP, \fBCleaning\fP, \fBFinished\fP, \fBError\fP, \fBCrashed\fP, \fBFinishedNoMisspellingsEncountered\fP }"
.br
.ti -1c
.RI "enum \fBSpellerType\fP { \fBText\fP =  0, \fBHTML\fP, \fBTeX\fP, \fBNroff\fP }"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBmisspelling\fP (const \fBQString\fP &originalword, const \fBQStringList\fP &suggestions, unsigned int pos)"
.br
.ti -1c
.RI "void \fBcorrected\fP (const \fBQString\fP &originalword, const \fBQString\fP &newword, unsigned int pos)"
.br
.ti -1c
.RI "void \fBignoreall\fP (const \fBQString\fP &originalword)"
.br
.ti -1c
.RI "void \fBignoreword\fP (const \fBQString\fP &originalword)"
.br
.ti -1c
.RI "void \fBaddword\fP (const \fBQString\fP &originalword)"
.br
.ti -1c
.RI "void \fBreplaceall\fP (const \fBQString\fP &origword, const \fBQString\fP &replacement)"
.br
.ti -1c
.RI "void \fBready\fP (\fBKSpell\fP *)"
.br
.ti -1c
.RI "void \fBprogress\fP (unsigned int i)"
.br
.ti -1c
.RI "void \fBdone\fP (const \fBQString\fP &buffer)"
.br
.ti -1c
.RI "void \fBdone\fP (bool)"
.br
.ti -1c
.RI "void \fBdeath\fP ()"
.br
.ti -1c
.RI "void \fBdialog3\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKSpell\fP (\fBQWidget\fP *\fBparent\fP, const \fBQString\fP &caption, \fBQObject\fP *receiver, const char *slot, \fBKSpellConfig\fP *kcs=0, bool progressbar=true, bool modal=false)"
.br
.ti -1c
.RI "\fBKSpell\fP (\fBQWidget\fP *\fBparent\fP, const \fBQString\fP &caption, \fBQObject\fP *receiver, const char *slot, \fBKSpellConfig\fP *kcs, bool progressbar, bool modal, \fBSpellerType\fP type)"
.br
.ti -1c
.RI "\fBspellStatus\fP \fBstatus\fP () const "
.br
.ti -1c
.RI "virtual void \fBcleanUp\fP ()"
.br
.ti -1c
.RI "void \fBsetAutoDelete\fP (bool _autoDelete)"
.br
.ti -1c
.RI "virtual bool \fBcheck\fP (const \fBQString\fP &_buffer, bool usedialog=true)"
.br
.ti -1c
.RI "int \fBlastPosition\fP () const "
.br
.ti -1c
.RI "virtual bool \fBcheckList\fP (\fBQStringList\fP *_wordlist, bool usedialog=true)"
.br
.ti -1c
.RI "virtual bool \fBcheckWord\fP (const \fBQString\fP &_buffer, bool usedialog=false)"
.br
.ti -1c
.RI "bool \fBcheckWord\fP (const \fBQString\fP &buffer, bool _usedialog, bool suggest)"
.br
.ti -1c
.RI "void \fBhide\fP ()"
.br
.ti -1c
.RI "\fBQStringList\fP \fBsuggestions\fP () const "
.br
.ti -1c
.RI "int \fBdlgResult\fP () const "
.br
.ti -1c
.RI "void \fBmoveDlg\fP (int x, int y)"
.br
.ti -1c
.RI "int \fBheightDlg\fP () const "
.br
.ti -1c
.RI "int \fBwidthDlg\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBintermediateBuffer\fP () const "
.br
.ti -1c
.RI "virtual bool \fBignore\fP (const \fBQString\fP &word)"
.br
.ti -1c
.RI "virtual bool \fBaddPersonal\fP (const \fBQString\fP &word)"
.br
.ti -1c
.RI "\fBKSpellConfig\fP \fBksConfig\fP () const "
.br
.ti -1c
.RI "void \fBsetProgressResolution\fP (unsigned int res)"
.br
.ti -1c
.RI "virtual \fB~KSpell\fP ()"
.br
.ti -1c
.RI "void \fBsetIgnoreUpperWords\fP (bool b)"
.br
.ti -1c
.RI "void \fBsetIgnoreTitleCase\fP (bool b)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static int \fBmodalCheck\fP (\fBQString\fP &text) KDE_DEPRECATED"
.br
.ti -1c
.RI "static int \fBmodalCheck\fP (\fBQString\fP &text, \fBKSpellConfig\fP *kcs)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBKSpell2\fP (\fBKProcIO\fP *)"
.br
.ti -1c
.RI "void \fBcheckWord2\fP (\fBKProcIO\fP *)"
.br
.ti -1c
.RI "void \fBcheckWord3\fP ()"
.br
.ti -1c
.RI "void \fBcheck2\fP (\fBKProcIO\fP *)"
.br
.ti -1c
.RI "void \fBcheckList2\fP ()"
.br
.ti -1c
.RI "void \fBcheckList3a\fP (\fBKProcIO\fP *)"
.br
.ti -1c
.RI "void \fBcheckListReplaceCurrent\fP ()"
.br
.ti -1c
.RI "void \fBcheckList4\fP ()"
.br
.ti -1c
.RI "void \fBdialog2\fP (int dlgresult)"
.br
.ti -1c
.RI "void \fBcheck3\fP ()"
.br
.ti -1c
.RI "void \fBsuggestWord\fP (\fBKProcIO\fP *)"
.br
.ti -1c
.RI "void \fBslotStopCancel\fP (int)"
.br
.ti -1c
.RI "void \fBispellExit\fP (\fBKProcess\fP *)"
.br
.ti -1c
.RI "void \fBemitDeath\fP ()"
.br
.ti -1c
.RI "void \fBispellErrors\fP (\fBKProcess\fP *, char *, int)"
.br
.ti -1c
.RI "void \fBcheckNext\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "int \fBparseOneResponse\fP (const \fBQString\fP &_buffer, \fBQString\fP &word, \fBQStringList\fP &sugg)"
.br
.ti -1c
.RI "\fBQString\fP \fBfunnyWord\fP (const \fBQString\fP &word)"
.br
.ti -1c
.RI "void \fBdialog\fP (const \fBQString\fP &word, \fBQStringList\fP &sugg, const char *_slot)"
.br
.ti -1c
.RI "\fBQString\fP \fBreplacement\fP () const "
.br
.ti -1c
.RI "void \fBsetUpDialog\fP (bool reallyusedialogbox=true)"
.br
.ti -1c
.RI "void \fBemitProgress\fP ()"
.br
.ti -1c
.RI "bool \fBcleanFputs\fP (const \fBQString\fP &s, bool appendCR=true)"
.br
.ti -1c
.RI "bool \fBcleanFputsWord\fP (const \fBQString\fP &s, bool appendCR=true)"
.br
.ti -1c
.RI "void \fBstartIspell\fP ()"
.br
.ti -1c
.RI "bool \fBwritePersonalDictionary\fP ()"
.br
.ti -1c
.RI "void \fBinitialize\fP (\fBQWidget\fP *_parent, const \fBQString\fP &_caption, \fBQObject\fP *obj, const char *slot, \fBKSpellConfig\fP *_ksc, bool _progressbar, bool _modal, \fBSpellerType\fP type)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKProcIO\fP * \fBproc\fP"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBparent\fP"
.br
.ti -1c
.RI "\fBKSpellConfig\fP * \fBksconfig\fP"
.br
.ti -1c
.RI "KSpellDlg * \fBksdlg\fP"
.br
.ti -1c
.RI "\fBQStringList\fP * \fBwordlist\fP"
.br
.ti -1c
.RI "QStringList::Iterator \fBwlIt\fP"
.br
.ti -1c
.RI "\fBQStringList\fP \fBignorelist\fP"
.br
.ti -1c
.RI "\fBQStringList\fP \fBreplacelist\fP"
.br
.ti -1c
.RI "\fBQStringList\fP \fBsugg\fP"
.br
.ti -1c
.RI "\fBQTextCodec\fP * \fBcodec\fP"
.br
.ti -1c
.RI "\fBspellStatus\fP \fBm_status\fP"
.br
.ti -1c
.RI "bool \fBusedialog\fP"
.br
.ti -1c
.RI "bool \fBtexmode\fP"
.br
.ti -1c
.RI "bool \fBdlgon\fP"
.br
.ti -1c
.RI "bool \fBpersonaldict\fP"
.br
.ti -1c
.RI "bool \fBdialogwillprocess\fP"
.br
.ti -1c
.RI "bool \fBprogressbar\fP"
.br
.ti -1c
.RI "bool \fBdialogsetup\fP"
.br
.ti -1c
.RI "bool \fBautoDelete\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBcaption\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBorig\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBorigbuffer\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBnewbuffer\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBcwword\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBdlgorigword\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBdlgreplacement\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBdialog3slot\fP"
.br
.ti -1c
.RI "int \fBdlgresult\fP"
.br
.ti -1c
.RI "int \fBtrystart\fP"
.br
.ti -1c
.RI "int \fBmaxtrystart\fP"
.br
.ti -1c
.RI "int \fBlastpos\fP"
.br
.ti -1c
.RI "unsigned int \fBtotalpos\fP"
.br
.ti -1c
.RI "unsigned int \fBlastline\fP"
.br
.ti -1c
.RI "unsigned int \fBposinline\fP"
.br
.ti -1c
.RI "unsigned int \fBlastlastline\fP"
.br
.ti -1c
.RI "unsigned int \fBoffset\fP"
.br
.ti -1c
.RI "unsigned int \fBprogres\fP"
.br
.ti -1c
.RI "unsigned int \fBcurprog\fP"
.br
.ti -1c
.RI "bool \fBmodaldlg\fP"
.br
.in -1c
.SS "Static Protected Attributes"

.in +1c
.ti -1c
.RI "static \fBQString\fP \fBmodaltext\fP"
.br
.ti -1c
.RI "static int \fBmodalreturn\fP = 0"
.br
.ti -1c
.RI "static \fBQWidget\fP * \fBmodalWidgetHack\fP = 0"
.br
.in -1c
.SH "Detailed Description"
.PP 
KDE Spellchecker 

A KDE programmer's interface to International ISpell 3.1, ASpell and HSpell. A static method, \fBmodalCheck()\fP is provided for convenient access to the spellchecker.
.PP
\fBAuthor:\fP
.RS 4
David Sweet <dsweet@kde.org> 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSpellConfig\fP, \fBKSyntaxHighlighter\fP 
.RE
.PP

.PP
Definition at line 46 of file kspell.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBKSpell::spellStatus\fP"
.PP
Possible states of the spell checker. 
.PP
.PD 0
.IP "\(bu" 2
\fCStarting\fP - After creation of KSpell. 
.IP "\(bu" 2
\fCRunning\fP - After the ready signal has been emitted. 
.IP "\(bu" 2
\fCCleaning\fP - After \fBcleanUp()\fP has been called. 
.IP "\(bu" 2
\fCFinished\fP - After \fBcleanUp()\fP has been completed.
.PP
The following error states exist:
.PP
.PD 0
.IP "\(bu" 2
\fCError\fP - An error occurred in the \fCStarting\fP state. 
.IP "\(bu" 2
\fCCrashed\fP - An error occurred in the \fCRunning\fP state. 
.PP

.PP
Definition at line 65 of file kspell.h.
.SS "enum \fBKSpell::SpellerType\fP"
.PP
These are possible types of documents which the spell checker can check. 
.PP
.PD 0
.IP "\(bu" 2
\fCText\fP - The default type, checks every word 
.IP "\(bu" 2
\fCHTML\fP - For HTML/SGML/XML documents, will skip the tags, 
.IP "\(bu" 2
\fCTeX\fP - For TeX/LaTeX documents, will skip commands, 
.IP "\(bu" 2
\fCNroff\fP - For nroff/troff documents.
.PP
Please note that not every option is supported on every type of checker (e.g. ASpell doesn't support Nroff). In case a type of a document is not supported the default Text option will be used. 
.PP
Definition at line 80 of file kspell.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KSpell::KSpell (\fBQWidget\fP * parent, const \fBQString\fP & caption, \fBQObject\fP * receiver, const char * slot, \fBKSpellConfig\fP * kcs = \fC0\fP, bool progressbar = \fCtrue\fP, bool modal = \fCfalse\fP)"
.PP
Starts the spellchecker. 
.PP
KSpell emits \fBready()\fP when it has verified that ISpell/ASpell is working properly. Pass the name of a slot -- do not pass zero! Be sure to call \fBcleanUp()\fP when you are done with KSpell.
.PP
If KSpell could not be started correctly, \fBdeath()\fP is emitted.
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent of \fBKSpellConfig\fP dialog.. 
.br
\fIcaption\fP Caption of \fBKSpellConfig\fP dialog. 
.br
\fIreceiver\fP Receiver object for the \fBready(KSpell *)\fP signal. 
.br
\fIslot\fP Receiver's slot, will be connected to the \fBready(KSpell *)\fP signal. 
.br
\fIkcs\fP Configuration for KSpell. 
.br
\fIprogressbar\fP Indicates if progress bar should be shown. 
.br
\fImodal\fP Indicates modal or non-modal dialog. 
.RE
.PP

.PP
Definition at line 107 of file kspell.cpp.
.PP
Referenced by modalCheck().
.SS "KSpell::KSpell (\fBQWidget\fP * parent, const \fBQString\fP & caption, \fBQObject\fP * receiver, const char * slot, \fBKSpellConfig\fP * kcs, bool progressbar, bool modal, \fBSpellerType\fP type)"
.PP
Starts the spellchecker. 
.PP
KSpell emits \fBready()\fP when it has verified that ISpell/ASpell is working properly. Pass the name of a slot -- do not pass zero! Be sure to call \fBcleanUp()\fP when you are done with KSpell.
.PP
If KSpell could not be started correctly, \fBdeath()\fP is emitted.
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent of \fBKSpellConfig\fP dialog.. 
.br
\fIcaption\fP Caption of \fBKSpellConfig\fP dialog. 
.br
\fIreceiver\fP Receiver object for the \fBready(KSpell *)\fP signal. 
.br
\fIslot\fP Receiver's slot, will be connected to the \fBready(KSpell *)\fP signal. 
.br
\fIkcs\fP Configuration for KSpell. 
.br
\fIprogressbar\fP Indicates if progress bar should be shown. 
.br
\fImodal\fP Indicates modal or non-modal dialog. 
.br
\fItype\fP Type of the document to check 
.RE
.PP

.PP
Definition at line 115 of file kspell.cpp.
.SS "KSpell::~\fBKSpell\fP ()\fC [virtual]\fP"
.PP
The destructor instructs ISpell/ASpell to write out the personal dictionary and then terminates ISpell/ASpell. 
.PP
Definition at line 1270 of file kspell.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBspellStatus\fP KSpell::status () const\fC [inline]\fP"
.PP
Returns the status of KSpell. 
.PP
\fBSee also:\fP
.RS 4
\fBspellStatus()\fP 
.RE
.PP

.PP
Definition at line 130 of file kspell.h.
.PP
Referenced by modalCheck().
.SS "void KSpell::cleanUp ()\fC [virtual]\fP"
.PP
Cleans up ISpell. 
.PP
Write out the personal dictionary and close ISpell's stdin. A \fBdeath()\fP signal will be emitted when the cleanup is complete, but this method will return immediately. 
.PP
Definition at line 1287 of file kspell.cpp.
.PP
References KProcess::closeStdin().
.SS "void KSpell::setAutoDelete (bool _autoDelete)\fC [inline]\fP"
.PP
Sets the auto-delete flag. 
.PP
If this is set, the KSpell object is automatically deleted after emitting \fBdeath()\fP. 
.PP
Definition at line 145 of file kspell.h.
.SS "bool KSpell::check (const \fBQString\fP & _buffer, bool usedialog = \fCtrue\fP)\fC [virtual]\fP"
.PP
Spellchecks a buffer of many words in plain text format. 
.PP
The \fC_buffer\fP is not modified. The signal \fBdone()\fP will be sent when \fBcheck()\fP is finished and the argument will be a spell-corrected version of \fC_buffer\fP.
.PP
The spell check may be stopped by the user before the entire buffer has been checked. You can check \fBlastPosition()\fP to see how far in \fC_buffer\fP \fBcheck()\fP reached before stopping. 
.PP
Definition at line 961 of file kspell.cpp.
.PP
References QString::at(), done(), endl(), QString::endsWith(), QString::find(), kdDebug(), QString::length(), QString::mid(), and KProcIO::writeStdin().
.SS "int KSpell::lastPosition () const\fC [inline]\fP"
.PP
Returns the position (when using \fBcheck()\fP) or word number (when using \fBcheckList()\fP) of the last word checked. 
.PP
Definition at line 167 of file kspell.h.
.SS "bool KSpell::checkList (\fBQStringList\fP * _wordlist, bool usedialog = \fCtrue\fP)\fC [virtual]\fP"
.PP
Spellchecks a list of words. 
.PP
\fBcheckList()\fP is more flexible than \fBcheck()\fP. You could parse any type of document (HTML, TeX, etc.) into a list of spell-checkable words and send the list to \fBcheckList()\fP. Sending a marked-up document to \fBcheck()\fP would result in the mark-up tags being spell checked. 
.PP
Definition at line 767 of file kspell.cpp.
.PP
References KProcIO::writeStdin().
.SS "bool KSpell::checkWord (const \fBQString\fP & _buffer, bool usedialog = \fCfalse\fP)\fC [virtual]\fP"
.PP
Spellchecks a single word. 
.PP
\fBcheckWord()\fP is the most flexible function. Some applications might need this flexibility but will sacrifice speed when checking large numbers of words. Consider \fBcheckList()\fP for checking many words.
.PP
Use this method for implementing 'online' spellchecking (i.e., spellcheck as-you-type).
.PP
\fBcheckWord()\fP returns \fCfalse\fP if \fCbuffer\fP is not a single word (e.g. if it contains white space), otherwise it returns \fCtrue\fP;
.PP
If \fCusedialog\fP is set to \fCtrue\fP, KSpell will open the standard dialog if the word is not found. The dialog results can be queried by using \fBdlgResult()\fP and replacement().
.PP
The signal \fBcorrected()\fP is emitted when the check is complete. You can look at \fBsuggestions()\fP to see what the suggested replacements were. 
.PP
Definition at line 458 of file kspell.cpp.
.PP
References QString::find(), QString::isEmpty(), KProcIO::readln(), and KProcIO::writeStdin().
.SS "bool KSpell::checkWord (const \fBQString\fP & buffer, bool _usedialog, bool suggest)"
.PP
set the dialog signal handler 
.PP
Definition at line 499 of file kspell.cpp.
.PP
References QString::find(), QString::isEmpty(), KProcIO::readln(), and KProcIO::writeStdin().
.SS "void KSpell::hide ()"
.PP
Hides the dialog box. 
.PP
You'll need to do this when you are done with \fBcheckWord()\fP; 
.PP
Definition at line 123 of file kspell.cpp.
.SS "\fBQStringList\fP KSpell::suggestions () const\fC [inline]\fP"
.PP
Returns list of suggested word replacements. 
.PP
After calling \fBcheckWord()\fP (an in response to a misspelled() signal you can use this to get the list of suggestions (if any were available). 
.PP
Definition at line 222 of file kspell.h.
.SS "int KSpell::dlgResult () const\fC [inline]\fP"
.PP
Gets the result code of the dialog box. 
.PP
After calling checkWord, you can use this to get the dialog box's result code. The possible values are (from \fBkspelldlg.h\fP): 
.PD 0

.IP "\(bu" 2
KS_CANCEL 
.IP "\(bu" 2
KS_REPLACE 
.IP "\(bu" 2
KS_REPLACEALL 
.IP "\(bu" 2
KS_IGNORE 
.IP "\(bu" 2
KS_IGNOREALL 
.IP "\(bu" 2
KS_ADD 
.IP "\(bu" 2
KS_STOP 
.PP

.PP
Definition at line 240 of file kspell.h.
.SS "void KSpell::moveDlg (int x, int y)"
.PP
Moves the dialog. 
.PP
If the dialog is not currently visible, it will be placed at this position when it becomes visible. Use this to get the dialog out of the way of a highlighted misspelled word in a document. 
.PP
Definition at line 1352 of file kspell.cpp.
.PP
References QWidget::mapToGlobal(), QWidget::move(), QPoint::x(), and QPoint::y().
.SS "int KSpell::heightDlg () const"
.PP
Returns the height of the dialog box. 
.PP
Definition at line 125 of file kspell.cpp.
.SS "int KSpell::widthDlg () const"
.PP
Returns the width of the dialog box. 
.PP
Definition at line 126 of file kspell.cpp.
.SS "\fBQString\fP KSpell::intermediateBuffer () const\fC [inline]\fP"
.PP
Returns the partially spellchecked buffer. 
.PP
You might want the full buffer in its partially-checked state. 
.PP
Definition at line 267 of file kspell.h.
.SS "bool KSpell::ignore (const \fBQString\fP & word)\fC [virtual]\fP"
.PP
Tells ISpell/ASpell to ignore this word for the life of this KSpell instance. 
.PP
\fBReturns:\fP
.RS 4
false if \fCword\fP is not a word or there was an error communicating with ISpell/ASpell. 
.RE
.PP

.PP
Definition at line 395 of file kspell.cpp.
.PP
References QString::find(), QString::isEmpty(), QString::prepend(), and KProcIO::writeStdin().
.SS "bool KSpell::addPersonal (const \fBQString\fP & word)\fC [virtual]\fP"
.PP
Adds a word to the user's personal dictionary. 
.PP
\fBReturns:\fP
.RS 4
false if \fCword\fP is not a word or there was an error communicating with ISpell/ASpell. 
.RE
.PP

.PP
Definition at line 376 of file kspell.cpp.
.PP
References QString::find(), QString::isEmpty(), QString::prepend(), and KProcIO::writeStdin().
.SS "\fBKSpellConfig\fP KSpell::ksConfig () const"
.PP
\fBReturns:\fP
.RS 4
the \fBKSpellConfig\fP object being used by this KSpell instance. 
.RE
.PP

.PP
Definition at line 1280 of file kspell.cpp.
.PP
References KSpellConfig::setIgnoreList(), and KSpellConfig::setReplaceAllList().
.SS "void KSpell::setProgressResolution (unsigned int res)"
.PP
Sets the resolution (in percent) of the \fBprogress()\fP signals. 
.PP
E.g. setProgressResolution (10) instructs KSpell to send progress signals (at most) every 10% (10%, 20%, 30%...). The default is 10%. 
.PP
Definition at line 1336 of file kspell.cpp.
.SS "int KSpell::modalCheck (\fBQString\fP & text)\fC [static]\fP"
.PP
\fBDeprecated\fP
.RS 4
Performs a synchronous spellcheck. 
.RE
.PP
This method does not return until spellchecking is done or canceled. Your application's GUI will still be updated, however. 
.PP
Definition at line 1376 of file kspell.cpp.
.SS "int KSpell::modalCheck (\fBQString\fP & text, \fBKSpellConfig\fP * kcs)\fC [static]\fP"
.PP
Performs a synchronous spellcheck. 
.PP
This method does not return until spellchecking is done or canceled. Your application's GUI will still be updated, however.
.PP
This overloaded method uses the spell-check configuration passed as parameter. 
.PP
Definition at line 1382 of file kspell.cpp.
.PP
References KSpell(), and status().
.SS "void KSpell::setIgnoreUpperWords (bool b)"
.PP
Call setIgnoreUpperWords(true) to tell the spell-checker to ignore words that are completely uppercase. 
.PP
They are spell-checked by default. 
.PP
Definition at line 1359 of file kspell.cpp.
.SS "void KSpell::setIgnoreTitleCase (bool b)"
.PP
Call setIgnoreTitleCase(true) to tell the spell-checker to ignore words with a 'title' case, i.e. 
.PP
starting with an uppercase letter. They are spell-checked by default. 
.PP
Definition at line 1364 of file kspell.cpp.
.SS "void KSpell::misspelling (const \fBQString\fP & originalword, const \fBQStringList\fP & suggestions, unsigned int pos)\fC [signal]\fP"
.PP
Emitted whenever a misspelled word is found by \fBcheck()\fP or by \fBcheckWord()\fP. 
.PP
If it is emitted by \fBcheckWord()\fP, \fCpos=0\fP. If it is emitted by \fBcheck()\fP, then \fCpos\fP indicates the position of the misspelled word in the (original) \fC_buffer\fP. (The first position is zero.) If it is emitted by \fBcheckList()\fP, \fCpos\fP is the index to the misspelled word in the \fBQStringList\fP passed to \fBcheckList()\fP. Note, that \fCoriginalword\fP can be only a word part, if it's word with hyphens.
.PP
These are called _before_ the dialog is opened, so that the calling program's GUI may be updated. (e.g. the misspelled word may be highlighted). 
.SS "void KSpell::corrected (const \fBQString\fP & originalword, const \fBQString\fP & newword, unsigned int pos)\fC [signal]\fP"
.PP
Emitted after the 'Replace' or 'Replace All' buttons of the dialog was pressed, or if the word was corrected without calling the dialog (i.e., the user previously chose 'Replace All' for this word). 
.PP
Results from the dialog may be checked with \fBdlgResult()\fP and replacement().
.PP
Note, that when using \fBcheckList()\fP this signal can occur more then once with same list position, when checking a word with hyphens. In this case \fCoriginalword\fP is the last replacement.
.PP
\fBSee also:\fP
.RS 4
\fBcheck()\fP 
.RE
.PP

.SS "void KSpell::ignoreall (const \fBQString\fP & originalword)\fC [signal]\fP"
.PP
Emitted when the user pressed 'Ignore All' in the dialog. 
.PP
This could be used to make an application or file specific user dictionary. 
.SS "void KSpell::ignoreword (const \fBQString\fP & originalword)\fC [signal]\fP"
.PP
Emitted when the user pressed 'Ignore' in the dialog. 
.PP
Don't know if this could be useful. 
.SS "void KSpell::addword (const \fBQString\fP & originalword)\fC [signal]\fP"
.PP
Emitted when the user pressed 'Add' in the dialog. 
.PP
This could be used to make an external user dictionary independent of the ISpell personal dictionary. 
.SS "void KSpell::replaceall (const \fBQString\fP & origword, const \fBQString\fP & replacement)\fC [signal]\fP"
.PP
Emitted when the user pressed 'ReplaceAll' in the dialog. 
.PP
.SS "void KSpell::ready (\fBKSpell\fP *)\fC [signal]\fP"
.PP
Emitted after KSpell has verified that ISpell/ASpell is running and working properly. 
.PP
.SS "void KSpell::progress (unsigned int i)\fC [signal]\fP"
.PP
Emitted during a \fBcheck()\fP. 
.PP
\fCi\fP is between 1 and 100. 
.SS "void KSpell::done (const \fBQString\fP & buffer)\fC [signal]\fP"
.PP
Emitted when \fBcheck()\fP is done. 
.PP
Be sure to copy the results of \fCbuffer\fP if you need them. You can only rely on the contents of buffer for the life of the slot which was signaled by \fBdone()\fP. 
.PP
Referenced by check().
.SS "void KSpell::done (bool)\fC [signal]\fP"
.PP
Emitted when \fBcheckList()\fP is done. 
.PP
If the argument is \fCtrue\fP, then you should update your text from the wordlist, otherwise not. 
.SS "void KSpell::death ()\fC [signal]\fP"
.PP
Emitted on terminal errors and after clean up. 
.PP
You can delete the KSpell object in this signal.
.PP
You can check \fBstatus()\fP to see what caused the death: 
.PD 0

.IP "\(bu" 2
\fCError\fP - KSpell could not start. 
.IP "\(bu" 2
\fCCrashed\fP - KSpell encountered an unexpected error during execution. 
.IP "\(bu" 2
\fCFinished\fP - Clean up finished. 
.PP

.SH "Member Data Documentation"
.PP 
.SS "bool \fBKSpell::modaldlg\fP\fC [protected]\fP"
.PP
Used for modalCheck. 
.PP
Definition at line 541 of file kspell.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
