]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/printmac.h
Patch #826420, and also adapted to new SWIG
[wxWidgets.git] / include / wx / mac / printmac.h
CommitLineData
c3f805b4
UJ
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
e40298d5 9// Licence: wxWindows licence
c3f805b4
UJ
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINTWIN_H_
13#define _WX_PRINTWIN_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
c3f805b4
UJ
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 wxMacPrinter: public wxPrinterBase
26{
27 DECLARE_DYNAMIC_CLASS(wxMacPrinter)
28
29 public:
6418cb93
SC
30 wxMacPrinter(wxPrintDialogData *data = NULL);
31 virtual ~wxMacPrinter();
c3f805b4 32
6418cb93
SC
33 virtual bool Print(wxWindow *parent,
34 wxPrintout *printout,
35 bool prompt = TRUE);
36 virtual wxDC* PrintDialog(wxWindow *parent);
c3f805b4
UJ
37 virtual bool Setup(wxWindow *parent);
38
c3f805b4
UJ
39};
40
41/*
42 * wxPrintPreview
43 * Programmer creates an object of this class to preview a wxPrintout.
44 */
45
46class WXDLLEXPORT wxMacPrintPreview: public wxPrintPreviewBase
47{
48 DECLARE_CLASS(wxMacPrintPreview)
49
50 public:
6418cb93
SC
51 wxMacPrintPreview(wxPrintout *printout,
52 wxPrintout *printoutForPrinting = NULL,
53 wxPrintDialogData *data = NULL);
54 wxMacPrintPreview(wxPrintout *printout,
55 wxPrintout *printoutForPrinting,
56 wxPrintData *data);
57 virtual ~wxMacPrintPreview();
c3f805b4
UJ
58
59 virtual bool Print(bool interactive);
6418cb93 60 virtual void DetermineScaling();
c3f805b4
UJ
61};
62
63#endif
64 // _WX_PRINTWIN_H_