kospell.h
00001
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
00023 #include <config.h>
00024
00025 #ifdef HAVE_LIBKSPELL2
00026
00027 #include <qobject.h>
00028 #include <qstringlist.h>
00029 #include <qstring.h>
00030
00031 #include <kspell2/backgroundchecker.h>
00032 #include <koffice_export.h>
00033 class KoTextIterator;
00034 class KoTextParag;
00035 class KoTextObject;
00036 class KoTextDocument;
00037 namespace KSpell2
00038 {
00039 class Settings;
00040 }
00041
00050 class KOTEXT_EXPORT KoSpell : public KSpell2::BackgroundChecker
00051 {
00052 Q_OBJECT
00053
00054 public:
00055 KoSpell( const KSpell2::Broker::Ptr& broker, QObject *parent =0,
00056 const char *name =0 );
00061 virtual ~KoSpell();
00062
00066 bool checking() const;
00067
00075 virtual bool check( KoTextIterator *itr, bool dialog = false );
00076 virtual bool check( KoTextParag *parag );
00077 virtual bool checkWordInParagraph( KoTextParag *parag, int pos,
00078 QString& word, int& start );
00079
00080 KoTextParag *currentParag() const;
00081 KoTextObject *currentTextObject() const;
00082 int currentStartIndex() const;
00083
00084 KoTextDocument *textDocument() const;
00085
00089 KSpell2::Settings *settings() const;
00090
00091 public slots:
00092 void slotCurrentParagraphDeleted();
00093
00094 signals:
00098 void paragraphChecked( KoTextParag* );
00099
00100 void aboutToFeedText();
00101
00102 protected:
00103 virtual QString getMoreText();
00104 virtual void finishedCurrentFeed();
00105
00106 private:
00107 class Private;
00108 Private *d;
00109 };
00110 #endif
00111 #endif
This file is part of the documentation for lib Library Version 1.4.2.