]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/printwin.h
Reuse wxMessageOutputStderr for wxLogStderr implementation.
[wxWidgets.git] / include / wx / msw / printwin.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/msw/printwin.h
2bda0e17
KB
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
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_PRINTWIN_H_
13#define _WX_PRINTWIN_H_
2bda0e17 14
2bda0e17
KB
15#include "wx/prntbase.h"
16
103aec29
VZ
17// ---------------------------------------------------------------------------
18// Represents the printer: manages printing a wxPrintout object
19// ---------------------------------------------------------------------------
20
53a2db12 21class WXDLLIMPEXP_CORE wxWindowsPrinter : public wxPrinterBase
2bda0e17 22{
103aec29 23 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter)
2bda0e17 24
103aec29
VZ
25public:
26 wxWindowsPrinter(wxPrintDialogData *data = NULL);
2bda0e17 27
103aec29
VZ
28 virtual bool Print(wxWindow *parent,
29 wxPrintout *printout,
078cf5cb 30 bool prompt = true);
f415cab9
JS
31
32 virtual wxDC *PrintDialog(wxWindow *parent);
103aec29 33 virtual bool Setup(wxWindow *parent);
34da0970 34
103aec29 35private:
c0c133e1 36 wxDECLARE_NO_COPY_CLASS(wxWindowsPrinter);
2bda0e17
KB
37};
38
103aec29
VZ
39// ---------------------------------------------------------------------------
40// wxPrintPreview: programmer creates an object of this class to preview a
41// wxPrintout.
42// ---------------------------------------------------------------------------
43
53a2db12 44class WXDLLIMPEXP_CORE wxWindowsPrintPreview : public wxPrintPreviewBase
2bda0e17 45{
103aec29
VZ
46public:
47 wxWindowsPrintPreview(wxPrintout *printout,
48 wxPrintout *printoutForPrinting = NULL,
49 wxPrintDialogData *data = NULL);
50 wxWindowsPrintPreview(wxPrintout *printout,
51 wxPrintout *printoutForPrinting,
52 wxPrintData *data);
53 virtual ~wxWindowsPrintPreview();
2bda0e17 54
103aec29
VZ
55 virtual bool Print(bool interactive);
56 virtual void DetermineScaling();
fc7a2a60 57
25a3fca2 58protected:
c929ad91 59#if wxUSE_ENH_METAFILE
25a3fca2 60 virtual bool RenderPageIntoBitmap(wxBitmap& bmp, int pageNum);
c929ad91 61#endif
25a3fca2 62
fc7a2a60 63 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview)
2bda0e17
KB
64};
65
66#endif
103aec29 67// _WX_PRINTWIN_H_