Scribus
Open source desktop publishing at your fingertips
importemfplugin.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  -------------------
9  begin : Sun Jan 11 2015
10  copyright : (C) 2015 by Franz Schmid
11  email : Franz.Schmid@altmuehlnet.de
12  ***************************************************************************/
13 #ifndef IMPORTEMFPLUGIN_H
14 #define IMPORTEMFPLUGIN_H
15 
16 #include "pluginapi.h"
17 #include "loadsaveplugin.h"
18 
19 class ScrAction;
20 
21 class PLUGIN_API ImportEmfPlugin : public LoadSavePlugin
22 {
23  Q_OBJECT
24 
25  public:
26  // Standard plugin implementation
28  virtual ~ImportEmfPlugin();
35  virtual const QString fullTrName() const;
36  virtual const AboutData* getAboutData() const;
37  virtual void deleteAboutData(const AboutData* about) const;
38  virtual void languageChange();
39  virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
40  virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
41  virtual QImage readThumbnail(const QString& fileName);
43 
44  public slots:
52  virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
53 
54  private:
55  void registerFormats();
56  ScrAction* importAction;
57 };
58 
59 extern "C" PLUGIN_API int importemf_getPluginAPIVersion();
60 extern "C" PLUGIN_API ScPlugin* importemf_getPlugin();
61 extern "C" PLUGIN_API void importemf_freePlugin(ScPlugin* plugin);
62 
63 #endif
Definition: loadsaveplugin.h:190
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: importemfplugin.h:42
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.
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
Definition: scraction.h:33
Definition: importemfplugin.h:21
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.