22#include "KPrBgSpellCheck.h"
23#include "KPrDocument.h"
24#include "KPrTextObject.h"
26#include "KoTextIterator.h"
27#include "KoTextObject.h"
29#include <tdespell2/broker.h>
30using namespace KSpell2;
36KPrBgSpellCheck::KPrBgSpellCheck(KPrDocument *_doc)
37 : KoBgSpellCheck(Broker::openBroker( TDESharedConfig::openConfig( "kpresenterrc" ) ), _doc )
43KPrBgSpellCheck::~KPrBgSpellCheck()
48KoTextIterator *KPrBgSpellCheck::createWholeDocIterator() const
50 TQValueList<KoTextObject *> objects = m_doc->visibleTextObjects( );
52 kdDebug()<< "Number of visible text objects = "<< objects.count() << endl;
54 if ( objects.isEmpty() )
57 return new KoTextIterator( objects, 0, 0 );
|