]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/printmac.h
Add wxPanel::SetBackgroundBitmap().
[wxWidgets.git] / include / wx / osx / printmac.h
CommitLineData
6762286d
SC
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#include "wx/prntbase.h"
16
17/*
18 * Represents the printer: manages printing a wxPrintout object
19 */
03647350 20
6762286d
SC
21class WXDLLIMPEXP_CORE wxMacPrinter: public wxPrinterBase
22{
23 DECLARE_DYNAMIC_CLASS(wxMacPrinter)
24
25 public:
26 wxMacPrinter(wxPrintDialogData *data = NULL);
27 virtual ~wxMacPrinter();
28
29 virtual bool Print(wxWindow *parent,
30 wxPrintout *printout,
8e6efd1f 31 bool prompt = true);
6762286d
SC
32 virtual wxDC* PrintDialog(wxWindow *parent);
33 virtual bool Setup(wxWindow *parent);
34
35};
36
37/*
38 * wxPrintPreview
39 * Programmer creates an object of this class to preview a wxPrintout.
40 */
03647350 41
6762286d
SC
42class WXDLLIMPEXP_CORE wxMacPrintPreview: public wxPrintPreviewBase
43{
44 DECLARE_CLASS(wxMacPrintPreview)
45
46 public:
47 wxMacPrintPreview(wxPrintout *printout,
48 wxPrintout *printoutForPrinting = NULL,
49 wxPrintDialogData *data = NULL);
50 wxMacPrintPreview(wxPrintout *printout,
51 wxPrintout *printoutForPrinting,
52 wxPrintData *data);
53 virtual ~wxMacPrintPreview();
54
55 virtual bool Print(bool interactive);
56 virtual void DetermineScaling();
57};
58
5c6eb3a8 59#endif
6762286d 60 // _WX_PRINTWIN_H_