You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
/* This template is based off of the KOffice example written by Torben Weis <weis@kde.org
|
|
|
|
It was converted to a KDevelop template by Ian Reinhart Geiser <geiseri@yahoo.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef %{APPNAME}_FACTORY_H
|
|
|
|
#define %{APPNAME}_FACTORY_H
|
|
|
|
|
|
|
|
#include <koFactory.h>
|
|
|
|
|
|
|
|
class KInstance;
|
|
|
|
class KAboutData;
|
|
|
|
|
|
|
|
class %{APPNAME}Factory : public KoFactory
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
%{APPNAME}Factory( TQObject* parent = 0, const char* name = 0 );
|
|
|
|
~%{APPNAME}Factory();
|
|
|
|
|
|
|
|
virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
|
|
|
|
|
|
|
|
static KInstance* global();
|
|
|
|
|
|
|
|
// _Creates_ a KAboutData but doesn't keep ownership
|
|
|
|
static KAboutData* aboutData();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static KInstance* s_global;
|
|
|
|
static KAboutData* s_aboutData;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|