Scribus
Open source desktop publishing at your fingertips
wmfimportplugin.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef WMFIMPORTPLUGIN_H
8 #define WMFIMPORTPLUGIN_H
9 
10 #include "pluginapi.h"
11 #include "loadsaveplugin.h"
12 #include "../../formatidlist.h"
13 
14 class ScrAction;
15 class ScribusMainWindow;
16 
20 class PLUGIN_API WMFImportPlugin : public LoadSavePlugin
21 {
22  Q_OBJECT
23 
24  public:
25  // Standard plugin implementation
27  virtual ~WMFImportPlugin();
28  virtual const QString fullTrName() const;
29  virtual const AboutData* getAboutData() const;
30  virtual void deleteAboutData(const AboutData* about) const;
31  virtual void languageChange();
32  virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
33  virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
34  virtual QImage readThumbnail(const QString& fileName);
36 
37  public slots:
44  virtual bool import(QString filename = QString::null, int flags = lfUseCurrentPage|lfInteractive);
45 
46  private:
47  void registerFormats();
48  ScrAction* importAction;
49 
50 };
51 
52 extern "C" PLUGIN_API int wmfimplugin_getPluginAPIVersion();
53 extern "C" PLUGIN_API ScPlugin* wmfimplugin_getPlugin();
54 extern "C" PLUGIN_API void wmfimplugin_freePlugin(ScPlugin* plugin);
55 
56 #endif
Definition: loadsaveplugin.h:190
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
Abstract super class for all Scribus plug-ins.
Definition: scplugin.h:90
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
A class providing the plugin interface implementation for this plugin.
Definition: wmfimportplugin.h:20
Definition: scraction.h:33
Superclass for all file import/export/load/save plugins.
Definition: loadsaveplugin.h:33
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: wmfimportplugin.h:35