Back to index

scribus-ng  1.3.4.dfsg+svn20071115
nftemplate.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef MYPLUGIN_H
00008 #define MYPLUGIN_H
00009 
00010 #include "pluginapi.h"
00011 #include "scplugin.h"
00012 
00013 class ScrAction;
00014 class ScribusDoc;
00015 
00016 class PLUGIN_API NewFromTemplatePlugin : public ScActionPlugin
00017 {
00018        Q_OBJECT
00019 
00020        public:
00021               // Standard plugin implementation
00022               NewFromTemplatePlugin();
00023               virtual ~NewFromTemplatePlugin();
00025               virtual bool run(ScribusDoc* doc, QString target = QString::null);
00026               virtual const QString fullTrName() const;
00027               virtual const AboutData* getAboutData() const;
00028               virtual void deleteAboutData(const AboutData* about) const;
00029               virtual void languageChange();
00030               virtual void addToMainWindowMenu(ScribusMainWindow *) {};
00031 
00032               // Special features (none)
00033 };
00034 
00035 extern "C" PLUGIN_API int newfromtemplateplugin_getPluginAPIVersion();
00036 extern "C" PLUGIN_API ScPlugin* newfromtemplateplugin_getPlugin();
00037 extern "C" PLUGIN_API void newfromtemplateplugin_freePlugin(ScPlugin* plugin);
00038 
00039 class MenuNFT : public QObject
00040 {
00041        Q_OBJECT
00042 
00043 public:
00044        MenuNFT() {};
00045     ~MenuNFT() {};
00046 
00047 public slots:
00048        void RunNFTPlug(ScribusDoc*);
00049 };
00050 
00051 static MenuNFT* Nft;
00052 
00053 #endif