lib

KoSpell Class Reference

#include <KoSpell.h>

List of all members.


Detailed Description

KOffice spell checking object Used for both spell-checking-with-a-dialog (directly) and background spell-checking (via KoBgSpellCheck).

Author:
Zack Rusin <zack@kde.org>, David Sweet <dsweet@kde.org>
See also:
KSpell2::Broker

Definition at line 45 of file KoSpell.h.


Public Slots

void slotCurrentParagraphDeleted ()

Signals

void paragraphChecked (KoTextParag *)
void aboutToFeedText ()

Public Member Functions

 KoSpell (const KSpell2::Broker::Ptr &broker, QObject *parent=0, const char *name=0)
virtual ~KoSpell ()
bool checking () const
virtual bool check (KoTextIterator *itr, bool dialog=false)
virtual bool check (KoTextParag *parag)
virtual bool checkWordInParagraph (KoTextParag *parag, int pos, QString &word, int &start)
KoTextParagcurrentParag () const
KoTextObjectcurrentTextObject () const
int currentStartIndex () const
KoTextDocumenttextDocument () const
KSpell2::Settings * settings () const

Protected Member Functions

virtual QString getMoreText ()
virtual void finishedCurrentFeed ()

Constructor & Destructor Documentation

KoSpell::~KoSpell  )  [virtual]
 

The destructor instructs ISpell/ASpell to write out the personal dictionary and then terminates ISpell/ASpell.

Definition at line 64 of file KoSpell.cpp.


Member Function Documentation

bool KoSpell::check KoTextIterator itr,
bool  dialog = false
[virtual]
 

Spellchecks a buffer of many words in plain text format.

The buffer is not modified. The signal done() will be sent when check() is finished.

Definition at line 69 of file KoSpell.cpp.

bool KoSpell::checking  )  const
 

Returns whether the speller is already checking something.

Definition at line 218 of file KoSpell.cpp.

bool KoSpell::checkWordInParagraph KoTextParag parag,
int  pos,
QString &  foundWord,
int &  start
[virtual]
 

##### do we really need to create a Filter every time?

Definition at line 99 of file KoSpell.cpp.

void KoSpell::paragraphChecked KoTextParag  )  [signal]
 

Emitted after a paragraph has been checked.

KSpell2::Settings * KoSpell::settings  )  const
 

Returns the Settings object used by the broker.

Definition at line 241 of file KoSpell.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys