Scribus
Open source desktop publishing at your fingertips
importfhplugin.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 IMPORTFHPLUGIN_H
8 #define IMPORTFHPLUGIN_H
9 
10 #include "pluginapi.h"
11 #include "loadsaveplugin.h"
12 #include "../../formatidlist.h"
13 
14 class ScrAction;
15 
16 class PLUGIN_API ImportFhPlugin : public LoadSavePlugin
17 {
18  Q_OBJECT
19 
20  public:
21  // Standard plugin implementation
23  virtual ~ImportFhPlugin();
30  virtual const QString fullTrName() const;
31  virtual const AboutData* getAboutData() const;
32  virtual void deleteAboutData(const AboutData* about) const;
33  virtual void languageChange();
34  virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
35  virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
36  virtual QImage readThumbnail(const QString& fileName);
38 
39  public slots:
47  virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
48 
49  private:
50  void registerFormats();
51  ScrAction* importAction;
52 };
53 
54 extern "C" PLUGIN_API int importfh_getPluginAPIVersion();
55 extern "C" PLUGIN_API ScPlugin* importfh_getPlugin();
56 extern "C" PLUGIN_API void importfh_freePlugin(ScPlugin* plugin);
57 
58 #endif
Definition: importfhplugin.h:16
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: importfhplugin.h:37
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
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.