]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/printwin.h
added AccessMode parameter to wxRegKey
[wxWidgets.git] / include / wx / msw / printwin.h
CommitLineData
2bda0e17
KB
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$
bbcdf8bc 8// Copyright: (c) Julian Smart
103aec29 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_PRINTWIN_H_
13#define _WX_PRINTWIN_H_
2bda0e17 14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
103aec29 16 #pragma interface "printwin.h"
2bda0e17
KB
17#endif
18
19#include "wx/prntbase.h"
20
103aec29
VZ
21// ---------------------------------------------------------------------------
22// Represents the printer: manages printing a wxPrintout object
23// ---------------------------------------------------------------------------
24
25class WXDLLEXPORT wxWindowsPrinter : public wxPrinterBase
2bda0e17 26{
103aec29 27 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter)
2bda0e17 28
103aec29
VZ
29public:
30 wxWindowsPrinter(wxPrintDialogData *data = NULL);
31 virtual ~wxWindowsPrinter();
2bda0e17 32
103aec29
VZ
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);
34da0970 38
103aec29
VZ
39private:
40 WXFARPROC m_lpAbortProc;
22f3361e
VZ
41
42 DECLARE_NO_COPY_CLASS(wxWindowsPrinter)
2bda0e17
KB
43};
44
103aec29
VZ
45// ---------------------------------------------------------------------------
46// wxPrintPreview: programmer creates an object of this class to preview a
47// wxPrintout.
48// ---------------------------------------------------------------------------
49
50class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
2bda0e17 51{
103aec29
VZ
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();
2bda0e17 60
103aec29
VZ
61 virtual bool Print(bool interactive);
62 virtual void DetermineScaling();
fc7a2a60
VZ
63
64private:
65 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview)
2bda0e17
KB
66};
67
68#endif
103aec29 69// _WX_PRINTWIN_H_