kword
KWBgSpellCheck.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "KWBgSpellCheck.h"
00023
00024 #include "KWDocument.h"
00025 #include "KWTextFrameSet.h"
00026
00027 #include "KoTextIterator.h"
00028 #include "KoTextObject.h"
00029
00030 #include <kspell2/broker.h>
00031 using namespace KSpell2;
00032
00033 #include <kdebug.h>
00034 #include <kconfig.h>
00035 #include <klocale.h>
00036
00037
00038 KWBgSpellCheck::KWBgSpellCheck(KWDocument *_doc)
00039 : KoBgSpellCheck( Broker::openBroker( KSharedConfig::openConfig( "kwordrc" ) ),
00040 _doc )
00041 {
00042 m_doc=_doc;
00043 m_currentFrame=0L;
00044 }
00045
00046 KWBgSpellCheck::~KWBgSpellCheck()
00047 {
00048 }
00049
00050 KoTextIterator *KWBgSpellCheck::createWholeDocIterator() const
00051 {
00052 QValueList<KoTextObject *> objects = m_doc->visibleTextObjects( 0 );
00053
00054 kdDebug()<<"Number of visible text objects = "<< objects.count() << endl;
00055
00056 if ( objects.isEmpty() )
00057 return 0;
00058
00059 return new KoTextIterator( objects, 0, 0 );
00060 }
|