Scribus
Open source desktop publishing at your fingertips
scpageoutput_ps2.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 SCPAGEOUTPUTPS2_H
8 #define SCPAGEOUTPUTPS2_H
9 
10 #include <QDataStream>
11 #include <QRect>
12 
13 #include "scconfig.h"
14 #include "scribusapi.h"
15 #include "scpageoutput.h"
16 #include "scpainterex_ps2.h"
17 
18 class ScribusDoc;
19 class ScPage;
20 class QIODevice;
21 
22 class SCRIBUS_API ScPageOutput_Ps2 : public ScPageOutput
23 {
24 protected:
25 
26  QRect m_clip;
27  QIODevice* m_device;
28  QTextStream m_stream;
29  ScPs2OutputParams m_options;
30 
31  int m_pageIndex;
32 
33  virtual void initStream(QIODevice* dev);
34 
35 public:
36 
37  ScPageOutput_Ps2(QIODevice* dev, ScribusDoc* doc, int pageIndex, ScPs2OutputParams& options);
38  virtual ~ScPageOutput_Ps2();
39 
40  virtual void begin(void);
41  virtual void drawPage(ScPage* page);
42  virtual void end(void);
43 
44  const QRect clip(void);
45  void setClip(const QRect& rect) { m_clip = rect; }
46 };
47 
48 #endif
Definition: scpage.h:46
Definition: scpainterex_ps2.h:52
the Document Class
Definition: scribusdoc.h:90
Definition: scpageoutput.h:53
Definition: scpageoutput_ps2.h:22