Back to index

scribus-ng  1.3.4.dfsg+svn20071115
oldscribusformat.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 OLDSCRIBUSFORMAT_H
00008 #define OLDSCRIBUSFORMAT_H
00009 
00010 #include "pluginapi.h"
00011 #include "loadsaveplugin.h"
00012 
00013 class PLUGIN_API OldScribusFormat : public LoadSavePlugin
00014 {
00015        Q_OBJECT
00016 
00017        public:
00018               // Standard plugin implementation
00019               OldScribusFormat();
00020               virtual ~OldScribusFormat();
00021               virtual const QString fullTrName() const;
00022               virtual const AboutData* getAboutData() const;
00023               virtual void deleteAboutData(const AboutData* about) const;
00024               virtual void languageChange();
00025               virtual bool fileSupported(QIODevice* file) const;
00026 
00027               virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
00028               virtual bool saveFile(const QString & fileName, const FileFormat & fmt);
00029               virtual void addToMainWindowMenu(ScribusMainWindow *) {};
00030 
00031               // Special features - .sla page extraction support
00032               bool loadPage(int pageNumber, bool Mpage);
00033 
00034        private:
00035               void registerFormats();
00036 };
00037 
00038 extern "C" PLUGIN_API int oldscribusformat_getPluginAPIVersion();
00039 extern "C" PLUGIN_API ScPlugin* oldscribusformat_getPlugin();
00040 extern "C" PLUGIN_API void oldscribusformat_freePlugin(ScPlugin* plugin);
00041 
00042 #endif