F:/KPlato/koffice/libs/kotext/KoBgSpellCheck.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Zack Rusin <zack@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KOBGSPELLCHECK_H
00021 #define KOBGSPELLCHECK_H
00022 
00023 #include <sonnet/loader.h>
00024 #include <QObject>
00025 #include <QStringList>
00026 #include <koffice_export.h>
00027 class KoTextObject;
00028 class KoDocument;
00029 class KoTextParag;
00030 class KoTextIterator;
00031 
00032 class KOTEXT_EXPORT KoBgSpellCheck : public QObject
00033 {
00034     Q_OBJECT
00035 public:
00036     KoBgSpellCheck( const KSpell2::Loader::Ptr& loader, QObject *parent =0,
00037                     const char *name =0 );
00038     virtual ~KoBgSpellCheck();
00039 
00040     void registerNewTextObject( KoTextObject *object );
00041 
00042     virtual KoTextIterator *createWholeDocIterator() const=0;
00043 
00044     bool enabled() const;
00045 
00049     KSpell2::Settings *settings() const;
00050 
00055     void setIntraWordEditing( KoTextParag* parag, int index );
00056 
00057 public slots:
00058     void start();
00059     void stop();
00060     void setEnabled( bool b );
00061 
00062 protected slots:
00063     void spellCheckerMisspelling(const QString &, int );
00064     void spellCheckerDone();
00065     void checkerContinue();
00066 
00067     void slotParagraphCreated( KoTextParag* parag );
00068     void slotParagraphModified( KoTextParag* parag, int /*ParagModifyType*/, int pos, int length );
00069     void slotParagraphDeleted( KoTextParag* parag );
00070 
00071     void slotClearPara();
00072 
00073 protected:
00074     void markWord( KoTextParag* parag, int pos, int length, bool misspelled );
00075 private:
00076     class Private;
00077     Private *d;
00078 };
00079 #endif

Généré le Wed Nov 22 23:41:07 2006 pour KPlato par  doxygen 1.5.1-p1