]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/printwin.h
Added possibility of 2-step initialisation, and wxWIZARD_EX_HELPBUTTON style.
[wxWidgets.git] / include / wx / msw / printwin.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: printwin.h
3// Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINTWIN_H_
13#define _WX_PRINTWIN_H_
14
15#ifdef __GNUG__
16 #pragma interface "printwin.h"
17#endif
18
19#include "wx/prntbase.h"
20
21// ---------------------------------------------------------------------------
22// Represents the printer: manages printing a wxPrintout object
23// ---------------------------------------------------------------------------
24
25class WXDLLEXPORT wxWindowsPrinter : public wxPrinterBase
26{
27 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter)
28
29public:
30 wxWindowsPrinter(wxPrintDialogData *data = NULL);
31 virtual ~wxWindowsPrinter();
32
33 virtual bool Print(wxWindow *parent,
34 wxPrintout *printout,
35 bool prompt = TRUE);
36 virtual wxDC* PrintDialog(wxWindow *parent);
37 virtual bool Setup(wxWindow *parent);
38
39private:
40 WXFARPROC m_lpAbortProc;
41};
42
43// ---------------------------------------------------------------------------
44// wxPrintPreview: programmer creates an object of this class to preview a
45// wxPrintout.
46// ---------------------------------------------------------------------------
47
48class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
49{
50 DECLARE_CLASS(wxWindowsPrintPreview)
51
52public:
53 wxWindowsPrintPreview(wxPrintout *printout,
54 wxPrintout *printoutForPrinting = NULL,
55 wxPrintDialogData *data = NULL);
56 wxWindowsPrintPreview(wxPrintout *printout,
57 wxPrintout *printoutForPrinting,
58 wxPrintData *data);
59 virtual ~wxWindowsPrintPreview();
60
61 virtual bool Print(bool interactive);
62 virtual void DetermineScaling();
63};
64
65#endif
66// _WX_PRINTWIN_H_