lib
KoSpell.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KOSPELL_H
00020 #define KOSPELL_H
00021
00022 #include <qobject.h>
00023 #include <qstringlist.h>
00024 #include <qstring.h>
00025
00026 #include <kspell2/backgroundchecker.h>
00027 #include <koffice_export.h>
00028 class KoTextIterator;
00029 class KoTextParag;
00030 class KoTextObject;
00031 class KoTextDocument;
00032 namespace KSpell2
00033 {
00034 class Settings;
00035 }
00036
00045 class KOTEXT_EXPORT KoSpell : public KSpell2::BackgroundChecker
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 KoSpell( const KSpell2::Broker::Ptr& broker, QObject *parent =0,
00051 const char *name =0 );
00056 virtual ~KoSpell();
00057
00061 bool checking() const;
00062
00070 virtual bool check( KoTextIterator *itr, bool dialog = false );
00071 virtual bool check( KoTextParag *parag );
00072 virtual bool checkWordInParagraph( KoTextParag *parag, int pos,
00073 QString& word, int& start );
00074
00075 KoTextParag *currentParag() const;
00076 KoTextObject *currentTextObject() const;
00077 int currentStartIndex() const;
00078
00079 KoTextDocument *textDocument() const;
00080
00084 KSpell2::Settings *settings() const;
00085
00086 public slots:
00087 void slotCurrentParagraphDeleted();
00088
00089 signals:
00093 void paragraphChecked( KoTextParag* );
00094
00095 void aboutToFeedText();
00096
00097 protected:
00098 virtual QString getMoreText();
00099 virtual void finishedCurrentFeed();
00100
00101 private:
00102 class Private;
00103 Private *d;
00104 };
00105 #endif
|