Scribus
Open source desktop publishing at your fingertips
importpub.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 #ifndef IMPORTPUB_H
8 #define IMPORTPUB_H
9 
10 #include <QObject>
11 #include <QString>
12 
13 #include "pluginapi.h"
14 #include "pageitem.h"
15 #include "sccolor.h"
16 #include "fpointarray.h"
17 #include "vgradient.h"
18 #include <QList>
19 #include <QTransform>
20 #include <QMultiMap>
21 #include <QVector>
22 
23 class MultiProgressDialog;
24 class ScribusDoc;
25 class Selection;
27 
29 class PubPlug : public QObject
30 {
31  Q_OBJECT
32 
33 public:
43  PubPlug( ScribusDoc* doc, int flags );
44  ~PubPlug();
45 
56  bool import(QString fn, const TransactionSettings& trSettings, int flags, bool showProgress = true);
57  QImage readThumbnail(QString fn);
58 
59 private:
60  bool convert(QString fn);
61 
62  QList<PageItem*> Elements;
63  double baseX, baseY;
64  double docWidth;
65  double docHeight;
66 
67  QStringList importedColors;
68  QStringList importedPatterns;
69 
70  bool interactive;
71  MultiProgressDialog * progressDialog;
72  bool cancel;
73  ScribusDoc* m_Doc;
74  Selection* tmpSel;
75  int importerFlags;
76 
77 public slots:
78  void cancelRequested() { cancel = true; }
79 };
80 
81 #endif
PubPlug(ScribusDoc *doc, int flags)
Create the Pub importer window.
Definition: importpub.cpp:60
the Document Class
Definition: scribusdoc.h:90
PUB importer plugin.
Definition: importpub.h:29
Definition: undomanager.h:52
Definition: selection.h:34