~ubuntu-branches/ubuntu/raring/koffice/raring

« back to all changes in this revision

Viewing changes to plugins/variables/VariablesPlugin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-12-06 15:30:09 UTC
  • mfrom: (0.13.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101206153009-yf0dqbp9l7fzwxi8
Tags: 1:2.2.91-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "DateVariableFactory.h"
22
22
#include "PageVariableFactory.h"
23
23
#include "InfoVariableFactory.h"
24
 
#include <kgenericfactory.h>
 
24
#include <kpluginfactory.h>
25
25
 
26
26
#include <KoInlineObjectRegistry.h>
27
27
 
28
 
K_EXPORT_COMPONENT_FACTORY(textvariables,
29
 
                           KGenericFactory<VariablesPlugin>("VariablesPlugin"))
 
28
K_PLUGIN_FACTORY(VariablesPluginFactory, registerPlugin<VariablesPlugin>();)
 
29
K_EXPORT_PLUGIN(VariablesPluginFactory("VariablesPlugin"))
30
30
 
31
 
VariablesPlugin::VariablesPlugin(QObject *parent, const QStringList&)
 
31
VariablesPlugin::VariablesPlugin(QObject *parent, const QVariantList&)
32
32
        : QObject(parent)
33
33
{
34
34
    KoInlineObjectRegistry::instance()->add(new PageVariableFactory(parent));