Back to index

scribus-ng  1.3.4.dfsg+svn20071115
fontpreviewplugin.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 FONTPREVIEW_H
00008 #define FONTPREVIEW_H
00009 
00010 #include "pluginapi.h"
00011 #include "scplugin.h"
00012 
00013 class ScribusDoc;
00014 
00015 class PLUGIN_API FontPreviewPlugin : public ScActionPlugin
00016 {
00017        Q_OBJECT
00018 
00019        public:
00020               // Standard plugin implementation
00021               FontPreviewPlugin();
00022               virtual ~FontPreviewPlugin();
00023               virtual bool run(ScribusDoc* doc, QString target = QString::null);
00024               virtual bool run(QWidget *parent, ScribusDoc* doc, QString target = QString::null);
00025               virtual const QString fullTrName() const;
00026               virtual const AboutData* getAboutData() const;
00027               virtual void deleteAboutData(const AboutData* about) const;
00028               virtual void languageChange();
00029               virtual void addToMainWindowMenu(ScribusMainWindow *) {};
00030 
00031               // Special features (none)
00032 };
00033 
00034 extern "C" PLUGIN_API int fontpreview_getPluginAPIVersion();
00035 extern "C" PLUGIN_API ScPlugin* fontpreview_getPlugin();
00036 extern "C" PLUGIN_API void fontpreview_freePlugin(ScPlugin* plugin);
00037 
00038 #endif