Source Code (Use browser search to find items of interest.)
Class Index
kchart'KChartFactory (./koffice/kchart/kchart_factory.h:15)
class KChartFactory : public KLibFactory
{
Q_OBJECT
public:
KChartFactory( QObject* parent = 0, const char* name = 0 );
virtual ~KChartFactory();
virtual QObject* create( QObject* parent = 0, const char* name = 0, const char* classname = "QObject", const QStringList &args = QStringList() );
static KInstance* global();
// _Creates_ a KAboutData but doesn't keep ownership
static KAboutData* aboutData();
private:
static KInstance* s_global;
};
kchart'KChartFactory::KChartFactory() (./koffice/kchart/kchart_factory.cc:26)
KChartFactory::KChartFactory( QObject* parent, const char* name )
: KLibFactory( parent, name )
{
}
kchart'KChartFactory::~KChartFactory() (./koffice/kchart/kchart_factory.cc:31)
KChartFactory::~KChartFactory()
{
if ( s_global )
delete s_global;
}
kchart'KChartFactory::create() (./koffice/kchart/kchart_factory.cc:37)
QObject* KChartFactory::create( QObject* parent, const char* name, const char *classname, const QStringList & )
{
/*
if ( parent && !parent->inherits("KoDocument") ) {
qDebug("KChartFactory: parent does not inherit KoDocument");
return 0;
}
*/
bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 );
KChartPart *part = new KChartPart( (KoDocument*)parent, name, !bWantKoDocument );
if ( !bWantKoDocument )
part->setReadWrite( false );
emit objectCreated(part);
return part;
}
kchart'KChartFactory::aboutData() (./koffice/kchart/kchart_factory.cc:57)
KAboutData* KChartFactory::aboutData()
{
KAboutData *aboutData = new KAboutData("kchart", I18N_NOOP("KChart"),
version, description, KAboutData::License_GPL,
"(c) 1998-2000, Kalle Dalheimer");
aboutData->addAuthor("Kalle Dalheimer",0, "kalle@kde.org");
return aboutData;
}
kchart'KChartFactory::global() (./koffice/kchart/kchart_factory.cc:66)
KInstance* KChartFactory::global()
{
if ( !s_global )
{
s_global = new KInstance(aboutData());
}
return s_global;
}