kspell_ispellclient.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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& )
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"
|