Scribus
Open source desktop publishing at your fingertips
api_imageexport.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 API_IMAGEEXPORT_H_
8 #define API_IMAGEEXPORT_H_
9 
10 #include <QObject>
11 #include <QtDebug>
12 #include <QApplication>
13 
14 #include "scripterimpl.h"
15 
16 class ImageExport : public QObject
17 {
18  Q_OBJECT
19 
20 public:
21  ImageExport();
22  ImageExport(QString dirName, QString type, double scale, double quality, double dpi, bool overwrite);
23  virtual ~ImageExport();
24 
25 public slots:
26 
27  QString getType();
28  void setType(QString name);
29 
30  double getScale();
31  void setScale(double scale);
32 
33  double getQuality();
34  void setQuality(double quality);
35 
36  double getDPI();
37  void setDPI(double dpi);
38 
39  QString getDir();
40  void setDir(QString name);
41 
42  bool isOverWrite();
43  void setOverWrite(bool value);
44  bool exportInterval(ScribusDoc* doc, std::vector< int >& pageNs);
45 
46 private:
47  QString _name; //exportDir
48  QString _type; //bitmapType
49  double _scale; //enlargement 0 - 100
50  double _quality; //quality 0 - 100
51  double _dpi; //dpi
52  bool _overwrite;
53  bool exportPage(ScribusDoc* doc, uint pageNr, bool single);
54  QString getFileName(ScribusDoc* doc, uint pageNr);
55 };
56 
57 #endif /*API_IMAGEEXPORT_H_*/
Definition: api_imageexport.h:16
the Document Class
Definition: scribusdoc.h:90