]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/generic/printps.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / generic / printps.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/generic/printps.h
3// Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4// wxGenericPageSetupDialog
5// Author: Julian Smart
6// Modified by:
7// Created: 01/02/97
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __PRINTPSH__
13#define __PRINTPSH__
14
15#include "wx/prntbase.h"
16
17#if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
18
19// ----------------------------------------------------------------------------
20// Represents the printer: manages printing a wxPrintout object
21// ----------------------------------------------------------------------------
22
23class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase
24{
25public:
26 wxPostScriptPrinter(wxPrintDialogData *data = NULL);
27 virtual ~wxPostScriptPrinter();
28
29 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
30 virtual wxDC* PrintDialog(wxWindow *parent);
31 virtual bool Setup(wxWindow *parent);
32
33private:
34 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
35};
36
37// ----------------------------------------------------------------------------
38// wxPrintPreview: programmer creates an object of this class to preview a
39// wxPrintout.
40// ----------------------------------------------------------------------------
41
42class WXDLLIMPEXP_CORE wxPostScriptPrintPreview : public wxPrintPreviewBase
43{
44public:
45 wxPostScriptPrintPreview(wxPrintout *printout,
46 wxPrintout *printoutForPrinting = NULL,
47 wxPrintDialogData *data = NULL);
48 wxPostScriptPrintPreview(wxPrintout *printout,
49 wxPrintout *printoutForPrinting,
50 wxPrintData *data);
51
52 virtual ~wxPostScriptPrintPreview();
53
54 virtual bool Print(bool interactive);
55 virtual void DetermineScaling();
56
57private:
58 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
59
60private:
61 DECLARE_CLASS(wxPostScriptPrintPreview)
62};
63
64#endif
65
66#endif
67// __PRINTPSH__