Scribus
Open source desktop publishing at your fingertips
uniconvplugin.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 UNICONVPLUGIN_H
8 #define UNICONVPLUGIN_H
9 
10 #include "pluginapi.h"
11 #include "loadsaveplugin.h"
12 #include "../../formatidlist.h"
13 #include <QObject>
14 
15 class ScrAction;
16 class ScribusMainWindow;
17 
21 class PLUGIN_API UniconvImportPlugin : public LoadSavePlugin
22 {
23  Q_OBJECT
24 
25  public:
26  // Standard plugin implementation
28  virtual ~UniconvImportPlugin();
29  virtual const QString fullTrName() const;
30  virtual const AboutData* getAboutData() const;
31  virtual void deleteAboutData(const AboutData* about) const;
32  virtual void languageChange();
33  virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
34  virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
36 
37  public slots:
43  virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
44 
45  private:
46  void registerFormats();
47 
48 };
49 
50 extern "C" PLUGIN_API int uniconvertorplugin_getPluginAPIVersion();
51 extern "C" PLUGIN_API ScPlugin* uniconvertorplugin_getPlugin();
52 extern "C" PLUGIN_API void uniconvertorplugin_freePlugin(ScPlugin* plugin);
53 
54 #endif
Definition: loadsaveplugin.h:190
A class providing the plugin interface implementation for the uniconvertor plugin.
Definition: uniconvplugin.h:21
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.
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: uniconvplugin.h:35