Scribus
Open source desktop publishing at your fingertips
importpsplugin.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 IMPORTPSPLUGIN_H
8 #define IMPORTPSPLUGIN_H
9 
10 #include "pluginapi.h"
11 #include "loadsaveplugin.h"
12 #include "../../formatidlist.h"
13 
14 class ScrAction;
15 
16 class PLUGIN_API ImportPSPlugin : public LoadSavePlugin
17 {
18  Q_OBJECT
19 
20  public:
21  // Standard plugin implementation
23  virtual ~ImportPSPlugin();
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);
37 
38  public slots:
46  virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
47 
48  private:
49  void registerFormats();
50  ScrAction* importAction;
51 };
52 
53 extern "C" PLUGIN_API int importps_getPluginAPIVersion();
54 extern "C" PLUGIN_API ScPlugin* importps_getPlugin();
55 extern "C" PLUGIN_API void importps_freePlugin(ScPlugin* plugin);
56 
57 #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.
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: importpsplugin.h:36
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.
Definition: importpsplugin.h:16