kspell_ispellclient.cpp
00001 00021 #include "kspell_ispellclient.h" 00022 00023 #include "kspell_ispelldict.h" 00024 #include "ispell_checker.h" 00025 00026 #include <kgenericfactory.h> 00027 #include <kdebug.h> 00028 00029 typedef KGenericFactory<ISpellClient> ISpellClientFactory; 00030 K_EXPORT_COMPONENT_FACTORY( kspell_ispell, ISpellClientFactory( "kspell_ispell" ) ) 00031 00032 using namespace KSpell2; 00033 00034 ISpellClient::ISpellClient( QObject *parent, const char *name, const QStringList& /* args */ ) 00035 : Client( parent, name ) 00036 { 00037 } 00038 00039 ISpellClient::~ISpellClient() 00040 { 00041 } 00042 00043 Dictionary* ISpellClient::dictionary( const QString& language ) 00044 { 00045 ISpellDict *ad = new ISpellDict( language ); 00046 return ad; 00047 } 00048 00049 QStringList ISpellClient::languages() const 00050 { 00051 return ISpellChecker::allDics(); 00052 } 00053 00054 #include "kspell_ispellclient.moc"