Scribus
Open source desktop publishing at your fingertips
importdrwplugin.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 /***************************************************************************
8  importdrwplugin.h - description
9  -------------------
10  begin : Mon Jan 11 2010
11  copyright : (C) 2010 by Franz Schmid
12  email : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 #ifndef IMPORTDRWPLUGIN_H
15 #define IMPORTDRWPLUGIN_H
16 
17 #include "pluginapi.h"
18 #include "loadsaveplugin.h"
19 #include "../../formatidlist.h"
20 
21 class ScrAction;
22 
23 class PLUGIN_API ImportDrwPlugin : public LoadSavePlugin
24 {
25  Q_OBJECT
26 
27  public:
28  // Standard plugin implementation
30  virtual ~ImportDrwPlugin();
37  virtual const QString fullTrName() const;
38  virtual const AboutData* getAboutData() const;
39  virtual void deleteAboutData(const AboutData* about) const;
40  virtual void languageChange();
41  virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
42  virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
43  virtual QImage readThumbnail(const QString& fileName);
45 
46  public slots:
54  virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
55 
56  private:
57  void registerFormats();
58  ScrAction* importAction;
59 };
60 
61 extern "C" PLUGIN_API int importdrw_getPluginAPIVersion();
62 extern "C" PLUGIN_API ScPlugin* importdrw_getPlugin();
63 extern "C" PLUGIN_API void importdrw_freePlugin(ScPlugin* plugin);
64 
65 #endif
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: importdrwplugin.h:44
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.
Definition: importdrwplugin.h:23
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.