Scribus
Open source desktop publishing at your fingertips
importidmlplugin.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 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15 /***************************************************************************
16  -------------------
17  begin : Sat Jan 14 2012
18  copyright : (C) 2012 by Franz Schmid
19  email : Franz.Schmid@altmuehlnet.de
20  ***************************************************************************/
21 #ifndef IMPORTIDMLPLUGIN_H
22 #define IMPORTIDMLPLUGIN_H
23 
24 #include "pluginapi.h"
25 #include "loadsaveplugin.h"
26 
27 class ScrAction;
28 
29 class PLUGIN_API ImportIdmlPlugin : public LoadSavePlugin
30 {
31  Q_OBJECT
32 
33  public:
34  // Standard plugin implementation
36  virtual ~ImportIdmlPlugin();
43  virtual const QString fullTrName() const;
44  virtual const AboutData* getAboutData() const;
45  virtual void deleteAboutData(const AboutData* about) const;
46  virtual void languageChange();
47  virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
48  virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
49  virtual QImage readThumbnail(const QString& fileName);
50  virtual bool readColors(const QString& fileName, ColorList & colors);
52 
53  public slots:
61  virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
62 
63  private:
64  void registerFormats();
65  ScrAction* importAction;
66 };
67 
68 extern "C" PLUGIN_API int importidml_getPluginAPIVersion();
69 extern "C" PLUGIN_API ScPlugin* importidml_getPlugin();
70 extern "C" PLUGIN_API void importidml_freePlugin(ScPlugin* plugin);
71 
72 #endif
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 addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: importidmlplugin.h:51
Definition: importidmlplugin.h:29
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
Definition: sccolor.h:155
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.