~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/plugins/psimport/importpsplugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2010-07-15 12:43:00 UTC
  • mfrom: (0.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100715124300-2u304r2rvy55vpkv
Tags: 1.3.7.dfsg~svn20100715-1
* Upstream svn. update.
* debian/scribus-ng.lintian: Updated overrides.
* debian/control: Updated standards version to 3.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
#ifndef IMPORTPSPLUGIN_H
8
 
#define IMPORTPSPLUGIN_H
9
 
 
10
 
#include "pluginapi.h"
11
 
#include "loadsaveplugin.h"
12
 
#include "../formatidlist.h"
13
 
 
14
 
class ScrAction;
15
 
 
16
 
class PLUGIN_API ImportPSPlugin : public LoadSavePlugin
17
 
{
18
 
        Q_OBJECT
19
 
 
20
 
        public:
21
 
                // Standard plugin implementation
22
 
                ImportPSPlugin();
23
 
                virtual ~ImportPSPlugin();
24
 
                /*!
25
 
                \author Franz Schmid
26
 
                \date
27
 
                \brief Returns name of plugin
28
 
                \retval QString containing name of plugin: Import EPS/PDF/PS...
29
 
                */
30
 
                virtual const QString fullTrName() const;
31
 
                virtual const AboutData* getAboutData() const;
32
 
                virtual void deleteAboutData(const AboutData* about) const;
33
 
                virtual void languageChange();
34
 
                virtual bool fileSupported(QIODevice* file, const QString & fileName=QString::null) const;
35
 
                virtual bool loadFile(const QString & fileName, const FileFormat & fmt, int flags, int index = 0);
36
 
                virtual void addToMainWindowMenu(ScribusMainWindow *) {};
37
 
 
38
 
        public slots:
39
 
                /*!
40
 
                \author Franz Schmid
41
 
                \date
42
 
                \brief Run the EPS import
43
 
                \param fileName input filename, or QString::null to prompt.
44
 
                \retval bool always true
45
 
                 */
46
 
                virtual bool import(QString fileName = QString::null, int flags = lfUseCurrentPage|lfInteractive);
47
 
 
48
 
        private:
49
 
                void registerFormats();
50
 
                ScrAction* importAction;
51
 
};
52
 
 
53
 
extern "C" PLUGIN_API int importps_getPluginAPIVersion();
54
 
extern "C" PLUGIN_API ScPlugin* importps_getPlugin();
55
 
extern "C" PLUGIN_API void importps_freePlugin(ScPlugin* plugin);
56
 
 
57
 
#endif