kpresenter
KPrBgSpellCheck.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "KPrBgSpellCheck.h"
00024 #include "KPrDocument.h"
00025 #include "KPrTextObject.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 KPrBgSpellCheck::KPrBgSpellCheck(KPrDocument *_doc)
00038 : KoBgSpellCheck(Broker::openBroker( KSharedConfig::openConfig( "kpresenterrc" ) ), _doc )
00039 {
00040 m_doc=_doc;
00041 m_currentObj=0L;
00042 }
00043
00044 KPrBgSpellCheck::~KPrBgSpellCheck()
00045 {
00046 }
00047
00048
00049 KoTextIterator *KPrBgSpellCheck::createWholeDocIterator() const
00050 {
00051 QValueList<KoTextObject *> objects = m_doc->visibleTextObjects( );
00052
00053 kdDebug()<<"Number of visible text objects = "<< objects.count() << endl;
00054
00055 if ( objects.isEmpty() )
00056 return 0;
00057
00058 return new KoTextIterator( objects, 0, 0 );
00059 }
00060
|