20 #include "kmlpdfactory.h"
21 #include "kmlpdmanager.h"
22 #include "kmlpduimanager.h"
23 #include "klpdprinterimpl.h"
27 void* init_tdeprint_lpd()
29 return new KLpdFactory;
33 KLpdFactory::KLpdFactory(TQObject *parent,
const char *name)
34 : KLibFactory(parent,name)
38 KLpdFactory::~KLpdFactory()
42 TQObject* KLpdFactory::createObject(TQObject *parent,
const char *name,
const char *classname,
const TQStringList&)
44 if (strcmp(classname,
"KMManager") == 0)
45 return new KMLpdManager(parent,name);
46 else if (strcmp(classname,
"KMUiManager") == 0)
47 return new KMLpdUiManager(parent,name);
48 else if (strcmp(classname,
"KPrinterImpl") == 0)
49 return new KLpdPrinterImpl(parent,name);