.PP
.TH "KSpell" 3 "28 Jan 2004" "kspell Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSpell \- \fBKDE\fP 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 }"
.br
.RI "\fIPossible states of the spell checker. \fP"
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBmisspelling\fP (const  \fBQString\fP &originalword, const  \fBQStringList\fP &suggestions, unsigned int pos)"
.br
.RI "\fIEmitted whenever a misspelled word is found by \fBcheck\fP() or by \fBcheckWord\fP(). \fP"
.ti -1c
.RI "void \fBcorrected\fP (const  \fBQString\fP &originalword, const  \fBQString\fP &newword, unsigned int pos)"
.br
.RI "\fIEmitted 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). \fP"
.ti -1c
.RI "void \fBignoreall\fP (const  \fBQString\fP &originalword)"
.br
.RI "\fIEmitted when the user pressed 'Ignore All' in the dialog. \fP"
.ti -1c
.RI "void \fBignoreword\fP (const  \fBQString\fP &originalword)"
.br
.RI "\fIEmitted when the user pressed 'Ignore' in the dialog. \fP"
.ti -1c
.RI "void \fBaddword\fP (const  \fBQString\fP &originalword)"
.br
.RI "\fIEmitted when the user pressed 'Add' in the dialog. \fP"
.ti -1c
.RI "void \fBreplaceall\fP (const  \fBQString\fP &origword, const  \fBQString\fP &replacement)"
.br
.RI "\fIEmitted when the user pressed 'ReplaceAll' in the dialog. \fP"
.ti -1c
.RI "void \fBready\fP (\fBKSpell\fP *)"
.br
.RI "\fIEmitted after KSpell has verified that ISpell/ASpell is running and working properly. \fP"
.ti -1c
.RI "void \fBprogress\fP (unsigned int i)"
.br
.RI "\fIEmitted during a \fBcheck\fP(). \fP"
.ti -1c
.RI "void \fBdone\fP (const  \fBQString\fP &buffer)"
.br
.RI "\fIEmitted when \fBcheck\fP() is done. \fP"
.ti -1c
.RI "void \fBdone\fP (bool)"
.br
.RI "\fIEmitted when \fBcheckList\fP() is done. \fP"
.ti -1c
.RI "void \fBdeath\fP ()"
.br
.RI "\fIEmitted on terminal errors and after clean up. \fP"
.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
.RI "\fIStarts the spellchecker. \fP"
.ti -1c
.RI "\fBspellStatus\fP \fBstatus\fP () const "
.br
.RI "\fIReturns the status of KSpell. \fP"
.ti -1c
.RI "virtual void \fBcleanUp\fP ()"
.br
.RI "\fICleans up ISpell. \fP"
.ti -1c
.RI "void \fBsetAutoDelete\fP (bool _autoDelete)"
.br
.RI "\fISets the auto-delete flag. \fP"
.ti -1c
.RI "virtual bool \fBcheck\fP (const  \fBQString\fP &_buffer, bool usedialog=TRUE)"
.br
.RI "\fISpellchecks a buffer of many words in plain text format. \fP"
.ti -1c
.RI "int \fBlastPosition\fP () const "
.br
.RI "\fIReturns the position (when using \fBcheck\fP()) or word number (when using \fBcheckList\fP()) of the last word checked. \fP"
.ti -1c
.RI "virtual bool \fBcheckList\fP (\fBQStringList\fP *_wordlist, bool usedialog=TRUE)"
.br
.RI "\fISpellchecks a list of words. \fP"
.ti -1c
.RI "virtual bool \fBcheckWord\fP (const  \fBQString\fP &_buffer, bool usedialog=FALSE)"
.br
.RI "\fISpellchecks a single word. \fP"
.ti -1c
.RI "void \fBhide\fP ()"
.br
.RI "\fIHides the dialog box. \fP"
.ti -1c
.RI "\fBQStringList\fP \fBsuggestions\fP () const "
.br
.RI "\fIReturns list of suggested word replacements. \fP"
.ti -1c
.RI "int \fBdlgResult\fP () const "
.br
.RI "\fIGets the result code of the dialog box. \fP"
.ti -1c
.RI "void \fBmoveDlg\fP (int x, int y)"
.br
.RI "\fIMoves the dialog. \fP"
.ti -1c
.RI "int \fBheightDlg\fP () const "
.br
.RI "\fIReturns the height of the dialog box. \fP"
.ti -1c
.RI "int \fBwidthDlg\fP () const "
.br
.RI "\fIReturns the width of the dialog box. \fP"
.ti -1c
.RI "\fBQString\fP \fBintermediateBuffer\fP () const "
.br
.RI "\fIReturns the partially spellchecked buffer. \fP"
.ti -1c
.RI "virtual bool \fBignore\fP (const  \fBQString\fP &word)"
.br
.RI "\fITells ISpell/ASpell to ignore this word for the life of this KSpell instance. \fP"
.ti -1c
.RI "virtual bool \fBaddPersonal\fP (const  \fBQString\fP &word)"
.br
.RI "\fIAdds a word to the user's personal dictionary. \fP"
.ti -1c
.RI "\fBKSpellConfig\fP \fBksConfig\fP () const "
.br
.ti -1c
.RI "void \fBsetProgressResolution\fP (unsigned res)"
.br
.RI "\fISets the resolution (in percent) of the \fBprogress\fP() signals. \fP"
.ti -1c
.RI "virtual \fB~KSpell\fP ()"
.br
.RI "\fIThe destructor instructs ISpell/ASpell to write out the personal dictionary and then terminates ISpell/ASpell. \fP"
.ti -1c
.RI "void \fBsetIgnoreUpperWords\fP (bool b)"
.br
.RI "\fICall \fBsetIgnoreUpperWords\fP(true) to tell the spell-checker to ignore words that are completely uppercase. \fP"
.ti -1c
.RI "void \fBsetIgnoreTitleCase\fP (bool b)"
.br
.RI "\fICall \fBsetIgnoreTitleCase\fP(true) to tell the spell-checker to ignore words with a 'title' case, i.e. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "int \fBmodalCheck\fP (\fBQString\fP &text)"
.br
.RI "\fIPerforms a synchronous spellcheck. \fP"
.ti -1c
.RI "int \fBmodalCheck\fP (\fBQString\fP &text, \fBKSpellConfig\fP *kcs)"
.br
.RI "\fIPerforms a synchronous spellcheck. \fP"
.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 \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
.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
.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
.RI "\fIUsed for \fBmodalCheck\fP. \fP"
.in -1c
.SS "Static Protected Attributes"

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

A \fBKDE\fP programmer's interface to International ISpell 3.1. (GPL 1997) 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
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkspell.h\fP,v 1.42 2002/05/22 22:09:08 coolo Exp 
.RE
.PP
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSpellConfig\fP 
.RE
.PP

.PP
Definition at line 44 of file kspell.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBKSpell::spellStatus\fP"
.PP
Possible states of the spell checker. .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
.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
Definition at line 63 of file kspell.h.
.PP
Referenced by status().
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KSpell::KSpell (\fBQWidget\fP * parent, const \fBQString\fP & caption, \fBQObject\fP * receiver, const char * slot, \fBKSpellConfig\fP * kcs = 0, bool progressbar = TRUE, bool modal = FALSE)"
.PP
Starts the spellchecker. 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
Definition at line 88 of file kspell.cpp.
.PP
References QTextCodec::codecForName(), QObject::connect(), KSpellConfig::encoding(), KSpellConfig::ignoreList(), modaldlg, QTextCodec::name(), ready(), and KSpellConfig::replaceAllList().
.PP
Referenced by modalCheck().
.SS "KSpell::~\fBKSpell\fP ()\fC [virtual]\fP"
.PP
The destructor instructs ISpell/ASpell to write out the personal dictionary and then terminates ISpell/ASpell. Definition at line 1135 of file kspell.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBspellStatus\fP KSpell::status () const\fC [inline]\fP"
.PP
Returns the status of KSpell. \fBSee also:\fP
.RS 4
\fBspellStatus()\fP 
.RE
.PP
Definition at line 91 of file kspell.h.
.PP
References spellStatus.
.PP
Referenced by modalCheck().
.SS "void KSpell::cleanUp ()\fC [virtual]\fP"
.PP
Cleans up ISpell. 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. Definition at line 1157 of file kspell.cpp.
.PP
References KProcess::closeStdin().
.SS "void KSpell::setAutoDelete (bool _autoDelete)\fC [inline]\fP"
.PP
Sets the auto-delete flag. If this is set, the KSpell object is automatically deleted after emitting \fBdeath\fP(). Definition at line 106 of file kspell.h.
.SS "bool KSpell::check (const \fBQString\fP & _buffer, bool usedialog = TRUE)\fC [virtual]\fP"
.PP
Spellchecks a buffer of many words in plain text format. 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. Definition at line 868 of file kspell.cpp.
.PP
References QString::at(), done(), KProcIO::fputs(), QString::length(), QString::mid(), and QString::right().
.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. Definition at line 128 of file kspell.h.
.SS "bool KSpell::checkList (\fBQStringList\fP * _wordlist, bool usedialog = TRUE)\fC [virtual]\fP"
.PP
Spellchecks a list of words. \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. Definition at line 689 of file kspell.cpp.
.PP
References KProcIO::fputs().
.SS "bool KSpell::checkWord (const \fBQString\fP & _buffer, bool usedialog = FALSE)\fC [virtual]\fP"
.PP
Spellchecks a single word. \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 \fBreplacement\fP().
.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. Definition at line 487 of file kspell.cpp.
.PP
References QString::find(), KProcIO::fputs(), QString::isEmpty(), and QString::simplifyWhiteSpace().
.SS "void KSpell::hide ()"
.PP
Hides the dialog box. You'll need to do this when you are done with \fBcheckWord\fP(); Definition at line 198 of file kspell.cpp.
.SS "\fBQStringList\fP KSpell::suggestions () const\fC [inline]\fP"
.PP
Returns list of suggested word replacements. After calling \fBcheckWord\fP() (an in response to a \fBmisspelled\fP() signal you can use this to get the list of suggestions (if any were available). Definition at line 182 of file kspell.h.
.SS "int KSpell::dlgResult () const\fC [inline]\fP"
.PP
Gets the result code of the dialog box. After calling checkWord, you can use this to get the dialog box's result code. The possible values are (from \fBkspelldlg.h\fP): 
.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
Definition at line 200 of file kspell.h.
.SS "void KSpell::moveDlg (int x, int y)"
.PP
Moves the dialog. 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. Definition at line 1220 of file kspell.cpp.
.PP
References QWidget::mapToGlobal(), QPoint::x(), and QPoint::y().
.SS "int KSpell::heightDlg () const"
.PP
Returns the height of the dialog box. Definition at line 200 of file kspell.cpp.
.SS "int KSpell::widthDlg () const"
.PP
Returns the width of the dialog box. Definition at line 201 of file kspell.cpp.
.SS "\fBQString\fP KSpell::intermediateBuffer () const\fC [inline]\fP"
.PP
Returns the partially spellchecked buffer. You might want the full buffer in its partially-checked state. Definition at line 227 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. \fBReturns:\fP
.RS 4
false if \fCword\fP is not a word or there was an error communicating with ISpell/ASpell. 
.RE
.PP
Definition at line 424 of file kspell.cpp.
.PP
References QString::find(), KProcIO::fputs(), QString::isEmpty(), QString::prepend(), and QString::simplifyWhiteSpace().
.SS "bool KSpell::addPersonal (const \fBQString\fP & word)\fC [virtual]\fP"
.PP
Adds a word to the user's personal dictionary. \fBReturns:\fP
.RS 4
false if \fCword\fP is not a word or there was an error communicating with ISpell/ASpell. 
.RE
.PP
Definition at line 405 of file kspell.cpp.
.PP
References QString::find(), KProcIO::fputs(), QString::isEmpty(), QString::prepend(), and QString::simplifyWhiteSpace().
.SS "\fBKSpellConfig\fP KSpell::ksConfig () const"
.PP
\fBReturns:\fP
.RS 4
the \fBKSpellConfig\fP object being used by this KSpell instance. 
.RE
.PP
Definition at line 1150 of file kspell.cpp.
.PP
References KSpellConfig::setIgnoreList(), and KSpellConfig::setReplaceAllList().
.SS "void KSpell::setProgressResolution (unsigned res)"
.PP
Sets the resolution (in percent) of the \fBprogress\fP() signals. E.g. \fBsetProgressResolution\fP (10) instructs KSpell to send progress signals (at most) every 10% (10%, 20%, 30%...). The default is 10%. 
.SS "int KSpell::modalCheck (\fBQString\fP & text)\fC [static]\fP"
.PP
Performs a synchronous spellcheck. This method does not return until spellchecking is done or canceled. Your application's GUI will still be updated, however. Definition at line 1244 of file kspell.cpp.
.SS "int KSpell::modalCheck (\fBQString\fP & text, \fBKSpellConfig\fP * kcs)\fC [static]\fP"
.PP
Performs a synchronous spellcheck. 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. Definition at line 1250 of file kspell.cpp.
.PP
References KSpell(), and status().
.SS "void KSpell::setIgnoreUpperWords (bool b)"
.PP
Call \fBsetIgnoreUpperWords\fP(true) to tell the spell-checker to ignore words that are completely uppercase. They are spell-checked by default. Definition at line 1227 of file kspell.cpp.
.SS "void KSpell::setIgnoreTitleCase (bool b)"
.PP
Call \fBsetIgnoreTitleCase\fP(true) to tell the spell-checker to ignore words with a 'title' case, i.e. starting with an uppercase letter. They are spell-checked by default. Definition at line 1232 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(). 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). Results from the dialog may be checked with \fBdlgResult\fP() and \fBreplacement\fP().
.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. 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. 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. 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. 
.SS "void KSpell::ready (\fBKSpell\fP *)\fC [signal]\fP"
.PP
Emitted after KSpell has verified that ISpell/ASpell is running and working properly. Referenced by KSpell().
.SS "void KSpell::progress (unsigned int i)\fC [signal]\fP"
.PP
Emitted during a \fBcheck\fP(). \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. 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(). Referenced by check().
.SS "void KSpell::done (bool)\fC [signal]\fP"
.PP
Emitted when \fBcheckList\fP() is done. 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. You can delete the KSpell object in this signal.
.PP
You can check \fBstatus\fP() to see what caused the death: 
.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 \fBmodalCheck\fP. Definition at line 497 of file kspell.h.
.PP
Referenced by KSpell().

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