Scribus
Open source desktop publishing at your fingertips
scprintengine.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 SCPRINTENGINE_H
8 #define SCPRINTENGINE_H
9 
10 #include <QObject>
11 
12 class ScribusDoc;
13 struct PrintOptions;
14 
15 class ScPrintEngine : public QObject
16 {
17  Q_OBJECT
18 
19 protected:
20 
21  bool m_abort;
22  QString m_errorMessage;
23 
24  ScPrintEngine() { m_abort = false; }
25 
26 public:
27  virtual ~ScPrintEngine() {}
28  virtual bool print(ScribusDoc& doc, PrintOptions& options) = 0;
29  virtual const QString& errorMessage(void) { return m_errorMessage; }
30 
31 public slots:
32  void cancelRequested(void) { m_abort = true; }
33 };
34 #endif
Definition: scprintengine.h:15
the Document Class
Definition: scribusdoc.h:90
Definition: scribusstructs.h:213