~ubuntu-branches/ubuntu/lucid/kdesdk/lucid

« back to all changes in this revision

Viewing changes to kapptemplate/templates/C++/kofficetext/%{APPNAME}Factory.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-18 23:46:24 UTC
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: james.westby@ubuntu.com-20091218234624-lvwm5t7ib5t5o8v4
Tags: upstream-4.3.85
ImportĀ upstreamĀ versionĀ 4.3.85

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "%{APPNAME}Factory.h"
 
2
#include "%{APPNAME}.h"
 
3
 
 
4
#include <KLocale>
 
5
 
 
6
%{APPNAME}Factory::%{APPNAME}Factory(QObject *parent)
 
7
    : KoTextEditingFactory(parent, "kotext%{APPNAMELC}")
 
8
{
 
9
    setShowInMenu(true);
 
10
    setTitle(i18n ("%{APPNAME}...") );
 
11
}
 
12
 
 
13
KoTextEditingPlugin *%{APPNAME}Factory::create() const
 
14
{
 
15
    return new %{APPNAME}();
 
16
}