diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-08-17 11:26:51 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-08-19 09:16:12 +0200 |
commit | 9ebdc333a6a6485fd60a50a742a1d6edec211f53 (patch) | |
tree | 29f47352fac722f29bf3e394214b375977cdcea7 /src/gui/painting/qpdf_p.h | |
parent | 64f94fa373900aca357f5f94c5ef16f481dc11b7 (diff) |
Introduce a paged paintdevice and use it
Introduce a QPagedPaintDevice class that has a
newPage() method and page dimensions. QPdfWriter
and QPrinter inherit from it.
Add a bit of API to QPdfWriter.
Change-Id: Ibf23e7fe741f3a5ed854faf5d249a272acc75f35
Reviewed-on: http://codereview.qt.nokia.com/3206
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/painting/qpdf_p.h')
-rw-r--r-- | src/gui/painting/qpdf_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/painting/qpdf_p.h b/src/gui/painting/qpdf_p.h index b373fcec67..5aeb01effe 100644 --- a/src/gui/painting/qpdf_p.h +++ b/src/gui/painting/qpdf_p.h @@ -161,12 +161,13 @@ public: private: }; - +class QPdfWriter; class QPdfEnginePrivate; class QPdfEngine : public QPaintEngine { Q_DECLARE_PRIVATE(QPdfEngine) + friend class QPdfWriter; public: QPdfEngine(); QPdfEngine(QPdfEnginePrivate &d); @@ -266,7 +267,7 @@ public: // the device the output is in the end streamed to. QIODevice *outDevice; - int fd; + bool ownsDevice; // printer options QString outputFileName; |