~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/app_templates/kofficepart/kopart_factory.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/* This template is based off of the KOffice example written by Torben Weis <weis@kde.org
3
 
   It was converted to a KDevelop template by Ian Reinhart Geiser <geiseri@yahoo.com>
4
 
*/
5
 
 
6
 
#ifndef %{APPNAME}_FACTORY_H
7
 
#define %{APPNAME}_FACTORY_H
8
 
 
9
 
#include <koFactory.h>
10
 
 
11
 
class KInstance;
12
 
class KAboutData;
13
 
 
14
 
class %{APPNAME}Factory : public KoFactory
15
 
{
16
 
    Q_OBJECT
17
 
public:
18
 
    %{APPNAME}Factory( QObject* parent = 0, const char* name = 0 );
19
 
    ~%{APPNAME}Factory();
20
 
 
21
 
    virtual KParts::Part *createPartObject( QWidget *parentWidget = 0, const char *widgetName = 0, QObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const QStringList &args = QStringList() );
22
 
 
23
 
    static KInstance* global();
24
 
 
25
 
    // _Creates_ a KAboutData but doesn't keep ownership
26
 
    static KAboutData* aboutData();
27
 
 
28
 
private:
29
 
    static KInstance* s_global;
30
 
    static KAboutData* s_aboutData;
31
 
};
32
 
 
33
 
#endif