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.
7
#ifndef IMPORTPSPLUGIN_H
8
#define IMPORTPSPLUGIN_H
10
#include "pluginapi.h"
11
#include "loadsaveplugin.h"
12
#include "../formatidlist.h"
16
class PLUGIN_API ImportPSPlugin : public LoadSavePlugin
21
// Standard plugin implementation
23
virtual ~ImportPSPlugin();
27
\brief Returns name of plugin
28
\retval QString containing name of plugin: Import EPS/PDF/PS...
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 void addToMainWindowMenu(ScribusMainWindow *) {};
42
\brief Run the EPS import
43
\param fileName input filename, or QString::null to prompt.
44
\retval bool always true
46
virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
49
void registerFormats();
50
ScrAction* importAction;
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);