]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/printos2.h
fixed all the other ports broken by controls labels in wxToolBar patch commit
[wxWidgets.git] / include / wx / os2 / printos2.h
CommitLineData
21708c73
SN
1/////////////////////////////////////////////////////////////////////////////
2// Name: print.h
3// Purpose: wxOS2Printer, wxOS2PrintPreview classes
4// Author: David Webster
5// Modified by:
6// Created: 10/14/99
7// RCS-ID: $Id$
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINT_H_
13#define _WX_PRINT_H_
14
15#include "wx/prntbase.h"
16
49fe4610
WS
17#if wxUSE_PRINTING_ARCHITECTURE
18
21708c73
SN
19/*
20 * Represents the printer: manages printing a wxPrintout object
21 */
22
23class WXDLLEXPORT wxOS2Printer: public wxPrinterBase
24{
49fe4610 25 DECLARE_DYNAMIC_CLASS(wxOS2Printer)
21708c73 26
49fe4610
WS
27public:
28 wxOS2Printer(wxPrintDialogData *data = NULL);
d3c7fc99 29 virtual ~wxOS2Printer();
21708c73 30
49fe4610
WS
31 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
32 virtual wxDC* PrintDialog(wxWindow *parent);
33 virtual bool Setup(wxWindow *parent);
21708c73
SN
34private:
35};
36
37/*
38 * wxOS2PrintPreview
39 * Programmer creates an object of this class to preview a wxPrintout.
40 */
41
42class WXDLLEXPORT wxOS2PrintPreview: public wxPrintPreviewBase
43{
49fe4610 44 DECLARE_CLASS(wxOS2PrintPreview)
21708c73 45
49fe4610
WS
46public:
47 wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintDialogData *data = NULL);
48 wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data);
d3c7fc99 49 virtual ~wxOS2PrintPreview();
21708c73 50
49fe4610
WS
51 virtual bool Print(bool interactive);
52 virtual void DetermineScaling();
21708c73
SN
53};
54
49fe4610
WS
55#endif // wxUSE_PRINTING_ARCHITECTURE
56
21708c73
SN
57#endif
58 // _WX_PRINT_H_