KDE3Support
Go to the documentation of this file.
24 #include <QtCore/QObject>
25 #include <QtCore/QStringList>
26 #include <QtCore/QString>
65 enum spellStatus { Starting = 0, Running, Cleaning, Finished,
Error, Crashed, FinishedNoMisspellingsEncountered };
101 bool progressbar =
true,
bool modal =
false);
123 bool progressbar,
bool modal, SpellerType type);
130 spellStatus status()
const;
139 virtual void cleanUp ();
145 void setAutoDelete(
bool _autoDelete);
160 virtual bool check (
const QString &_buffer,
bool usedialog =
true);
167 int lastPosition()
const;
179 virtual bool checkList (QStringList *_wordlist,
bool usedialog =
true);
203 virtual bool checkWord (
const QString &_buffer,
bool usedialog =
false);
204 bool checkWord(
const QString & buffer,
bool _usedialog,
bool suggest );
221 QStringList suggestions ()
const;
239 int dlgResult ()
const;
249 void moveDlg (
int x,
int y);
254 int heightDlg ()
const;
258 int widthDlg ()
const;
265 QString intermediateBuffer ()
const;
273 virtual bool ignore (
const QString & word);
281 virtual bool addPersonal (
const QString & word);
295 void setProgressResolution (
unsigned int res);
311 static KDE_DEPRECATED
int modalCheck( QString& text );
327 void setIgnoreUpperWords(
bool b);
334 void setIgnoreTitleCase(
bool b);
355 void misspelling (
const QString & originalword,
const QStringList & suggestions,
373 void corrected (
const QString & originalword,
const QString & newword,
unsigned int pos);
401 void replaceall(
const QString & origword ,
const QString &replacement );
423 void done (
const QString &buffer);
455 void checkListReplaceCurrent ();
457 void dialog2 (
int dlgresult);
461 void slotStopCancel (
int);
464 void ispellErrors ();
471 void slotModalReady();
476 void slotModalDone(
const QString & );
481 void slotSpellCheckerCorrected(
const QString & oldText,
const QString & newText,
unsigned int );
486 void slotModalSpellCheckerFinished( );
543 int parseOneResponse (
const QString &_buffer, QString &word, QStringList &sugg);
544 QString funnyWord (
const QString & word);
545 void dialog (
const QString & word, QStringList & sugg,
const char* _slot);
546 QString replacement ()
const;
548 void setUpDialog (
bool reallyusedialogbox =
true);
550 void emitProgress ();
551 bool cleanFputs (
const QString & s );
552 bool cleanFputsWord (
const QString & s );
554 bool writePersonalDictionary();
555 void initialize(
QWidget *_parent,
const QString &_caption,
557 bool _progressbar,
bool _modal,
SpellerType type );
560 class K3SpellPrivate;
void addword(const QString &originalword)
Emitted when the user pressed "Add" in the dialog.
void progress(unsigned int i)
Emitted during a check().
SpellerType
These are possible types of documents which the spell checker can check.
A configuration class/dialog for K3Spell.
void ignoreall(const QString &originalword)
Emitted when the user pressed "Ignore All" in the dialog.
void replaceall(const QString &origword, const QString &replacement)
Emitted when the user pressed "ReplaceAll" in the dialog.
spellStatus
Possible states of the spell checker.
void done(bool)
Emitted when checkList() is done.
bool modaldlg
Used for modalCheck.
void ignoreword(const QString &originalword)
Emitted when the user pressed "Ignore" in the dialog.
void corrected(const QString &originalword, const QString &newword, unsigned int pos)
Emitted after the "Replace" or "Replace All" buttons of the dialog was pressed, or if the word was co...
static QWidget * modalWidgetHack
unsigned int lastlastline
void misspelling(const QString &originalword, const QStringList &suggestions, unsigned int pos)
Emitted whenever a misspelled word is found by check() or by checkWord().
QStringList::Iterator wlIt
void ready(K3Spell *)
Emitted after K3Spell has verified that ISpell/ASpell is running and working properly.
void death()
Emitted on terminal errors and after clean up.
void done(const QString &buffer)
Emitted when check() is done.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.