Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

scprintengine.h

Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef SCPRINTENGINE_H
00008 #define SCPRINTENGINE_H
00009 
00010 #include <QObject>
00011 
00012 class  ScribusDoc;
00013 struct PrintOptions;
00014 
00015 class ScPrintEngine : public QObject
00016 {
00017     Q_OBJECT
00018 
00019 protected:
00020 
00021     bool    m_abort;
00022     QString m_errorMessage;
00023 
00024     ScPrintEngine() { m_abort = false; }
00025 
00026 public:
00027     virtual ~ScPrintEngine() {}
00028     virtual bool print(ScribusDoc& doc, PrintOptions& options) = 0;
00029     virtual const QString& errorMessage(void) { return m_errorMessage; }
00030 
00031 public slots:
00032     void cancelRequested(void) { m_abort = true; }
00033 };
00034 #endif
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.