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