Back to index

scribus-ng  1.3.4.dfsg+svn20071115
importpsplugin.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef IMPORTPSPLUGIN_H
00008 #define IMPORTPSPLUGIN_H
00009 
00010 #include "pluginapi.h"
00011 #include "loadsaveplugin.h"
00012 #include "../formatidlist.h"
00013 
00014 class ScrAction;
00015 
00016 class PLUGIN_API ImportPSPlugin : public LoadSavePlugin
00017 {
00018        Q_OBJECT
00019 
00020        public:
00021               // Standard plugin implementation
00022               ImportPSPlugin();
00023               virtual ~ImportPSPlugin();
00030               virtual const QString fullTrName() const;
00031               virtual const AboutData* getAboutData() const;
00032               virtual void deleteAboutData(const AboutData* about) const;
00033               virtual void languageChange();
00034               virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
00035               virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
00036               virtual void addToMainWindowMenu(ScribusMainWindow *);
00037 
00038        public slots:
00046               virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
00047 
00048        private:
00049               void registerFormats();
00050               ScrAction* importAction;
00051 };
00052 
00053 extern "C" PLUGIN_API int importps_getPluginAPIVersion();
00054 extern "C" PLUGIN_API ScPlugin* importps_getPlugin();
00055 extern "C" PLUGIN_API void importps_freePlugin(ScPlugin* plugin);
00056 
00057 #endif