KDE3Support
k3spell.cpp
Go to the documentation of this file.
229 if ( ksconfig->client() == KS_CLIENT_ISPELL || ksconfig->client() == KS_CLIENT_ASPELL || ksconfig->client() == KS_CLIENT_HUNSPELL )
286 // Note: This sets I/O encoding. Hunspell correctly handles dictionary encoding != I/O encoding.
287 // It will be faster if the I/O encoding matches the dictionary encoding, but using UTF-8 is always safe.
1290 KMessageBox::information( 0, i18n("You have to restart the dialog for changes to take effect") );
1538 void K3Spell::slotSpellCheckerCorrected( const QString & oldText, const QString & newText, unsigned int pos )
1659 kDebug(750) << __FILE__ << ":" << __LINE__ << " Codec = " << (d->m_codec ? d->m_codec->name() : "<default>");
Definition: k3sconfig.h:46
void setNextOpenMode(QIODevice::OpenMode mode)
QString i18n(const char *text)
void ignoreall(const QString &originalword)
Emitted when the user pressed "Ignore All" in the dialog.
TransferJob * put(const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
Definition: k3spell.h:65
int timeout
void dialog3()
Definition: k3sconfig.h:54
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
Definition: k3spelldlg.h:37
int parseOneResponse(const QString &_buffer, QString &word, QStringList &sugg)
Definition: k3spell.cpp:783
virtual bool checkWord(const QString &_buffer, bool usedialog=false)
Spellchecks a single word.
Definition: k3spell.cpp:571
void replaceall(const QString &origword, const QString &replacement)
Emitted when the user pressed "ReplaceAll" in the dialog.
Definition: k3spelldlg.h:43
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: k3spelldlg.h:39
void setOutputChannelMode(OutputChannelMode mode)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: k3sconfig.h:65
Definition: k3spelldlg.h:41
Definition: k3spell.cpp:57
void setIgnoreTitleCase(bool b)
Call setIgnoreTitleCase(true) to tell the spell-checker to ignore words with a 'title' case...
Definition: k3spell.cpp:1503
virtual ~K3Spell()
The destructor instructs ISpell/ASpell to write out the personal dictionary and then terminates ISpel...
Definition: k3spell.cpp:1404
Definition: k3spelldlg.h:36
void setProgressResolution(unsigned int res)
Sets the resolution (in percent) of the progress() signals.
Definition: k3spell.cpp:1475
Definition: k3sconfig.h:62
int lastPosition() const
Returns the position (when using check()) or word number (when using checkList()) of the last word ch...
Definition: k3spell.cpp:1141
Definition: k3sconfig.h:44
Definition: k3sconfig.h:55
Definition: k3sconfig.h:61
virtual bool addPersonal(const QString &word)
Adds a word to the user's personal dictionary.
Definition: k3spell.cpp:489
Definition: k3sconfig.h:63
Definition: k3spell.cpp:60
Definition: k3sconfig.h:57
Definition: k3spell.h:65
Definition: k3spelldlg.h:50
K3Spell(QWidget *parent, const QString &caption, QObject *receiver, const char *slot, K3SpellConfig *kcs=0, bool progressbar=true, bool modal=false)
Starts the spellchecker.
Definition: k3spell.cpp:125
QString intermediateBuffer() const
Returns the partially spellchecked buffer.
Definition: k3spell.cpp:161
Definition: k3spell.cpp:60
Definition: k3spell.h:80
SpellerType
These are possible types of documents which the spell checker can check.
Definition: k3spell.h:80
Definition: k3sconfig.h:53
Definition: k3spell.cpp:56
void ignoreword(const QString &originalword)
Emitted when the user pressed "Ignore" in the dialog.
void dialog(const QString &word, QStringList &sugg, const char *_slot)
Definition: k3spell.cpp:1322
QStringList suggestions() const
Returns list of suggested word replacements.
Definition: k3spell.cpp:148
void setIgnoreUpperWords(bool b)
Call setIgnoreUpperWords(true) to tell the spell-checker to ignore words that are completely uppercas...
Definition: k3spell.cpp:1498
void start()
void misspelling(const QString &originalword, const QStringList &suggestions, unsigned int pos)
Emitted whenever a misspelled word is found by check() or by checkWord().
Definition: k3spell.cpp:55
void ready(K3Spell *)
Emitted after K3Spell has verified that ISpell/ASpell is running and working properly.
Definition: k3spell.h:80
void setIgnoreList(const QStringList &_ignorelist)
Options setting routines.
Definition: k3sconfig.cpp:1163
void setReplaceAllList(const QStringList &_replaceAllList)
The _replaceAllList contains word you like that replace word.
Definition: k3sconfig.cpp:1175
Definition: k3sconfig.h:43
Definition: k3spelldlg.h:42
void addword(const QString &originalword)
Emitted when the user pressed "Add" in the dialog.
unsigned int version()
Definition: k3spell.h:65
Definition: k3sconfig.h:45
Definition: k3spelldlg.h:40
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...
void init(const QString &_word, QStringList *_sugg)
Change the misspelled word and suggested replacements and enable the disabled buttons on the dialog b...
Definition: k3spelldlg.cpp:120
Definition: k3spelldlg.h:38
void initialize(QWidget *_parent, const QString &_caption, QObject *obj, const char *slot, K3SpellConfig *_ksc, bool _progressbar, bool _modal, SpellerType type)
Definition: k3spell.cpp:1577
Definition: k3spelldlg.h:44
Definition: k3sconfig.h:56
virtual bool check(const QString &_buffer, bool usedialog=true)
Spellchecks a buffer of many words in plain text format.
Definition: k3spell.cpp:1082
Definition: k3spell.h:80
Definition: k3spell.cpp:54
Definition: k3spell.h:65
virtual bool checkList(QStringList *_wordlist, bool usedialog=true)
Spellchecks a list of words.
Definition: k3spell.cpp:886
virtual bool ignore(const QString &word)
Tells ISpell/ASpell to ignore this word for the life of this K3Spell instance.
Definition: k3spell.cpp:508
Definition: k3spell.h:80
Definition: k3spell.h:65
Definition: k3spell.h:65
Definition: k3sconfig.h:64
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.