22#include "KWBgSpellCheck.h"
24#include "KWDocument.h"
25#include "KWTextFrameSet.h"
27#include "KoTextIterator.h"
28#include "KoTextObject.h"
30#include <tdespell2/broker.h>
31using namespace KSpell2;
38KWBgSpellCheck::KWBgSpellCheck(KWDocument *_doc)
39 : KoBgSpellCheck( Broker::openBroker( TDESharedConfig::openConfig( "kwordrc" ) ),
46KWBgSpellCheck::~KWBgSpellCheck()
50KoTextIterator *KWBgSpellCheck::createWholeDocIterator() const
52 TQValueList<KoTextObject *> objects = m_doc->visibleTextObjects( 0 );
54 kdDebug()<< "Number of visible text objects = "<< objects.count() << endl;
56 if ( objects.isEmpty() )
59 return new KoTextIterator( objects, 0, 0 );
|