Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scriptplugin.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 SCRIPTPLUG_H
00008 #define SCRIPTPLUG_H
00009 
00010 #include "cmdvar.h"
00011 #include "scplugin.h"
00012 #include "pluginapi.h"
00013 
00014 class QString;
00015 class QPixmap;
00016 class QWidget;
00017 class PrefsPanel;
00018 
00019 class PLUGIN_API ScriptPlugin : public ScPersistentPlugin
00020 {
00021        Q_OBJECT
00022 
00023        public:
00024               // Standard plugin implementation
00025               ScriptPlugin();
00026               virtual ~ScriptPlugin();
00027               virtual bool initPlugin();
00028               virtual bool cleanupPlugin();
00029               virtual const QString fullTrName() const;
00030               virtual const AboutData* getAboutData() const;
00031               virtual void deleteAboutData(const AboutData* about) const;
00032               virtual void languageChange();
00033               virtual bool newPrefsPanelWidget(QWidget* parent, PrefsPanel*& panel,
00034                                                                        QString& caption, QPixmap& icon);
00035               virtual void addToMainWindowMenu(ScribusMainWindow *);
00036 
00037               // Special features (none)
00038 };
00039 
00040 extern "C" PLUGIN_API int scriptplugin_getPluginAPIVersion();
00041 extern "C" PLUGIN_API ScPlugin* scriptplugin_getPlugin();
00042 extern "C" PLUGIN_API void scriptplugin_freePlugin(ScPlugin* plugin);
00043 
00045 static PyObject *scribus_retval(PyObject *self, PyObject* args);
00046 static PyObject *scribus_getval(PyObject *self);
00047 
00048 #endif // CMSPLUG_H