]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/printos2.h
Typo correction patch [ 1208110 ] Lots of typo corrections
[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
17/*
18 * Represents the printer: manages printing a wxPrintout object
19 */
20
21class WXDLLEXPORT wxOS2Printer: public wxPrinterBase
22{
23 DECLARE_DYNAMIC_CLASS(wxOS2Printer)
24
25 public:
26 wxOS2Printer(wxPrintDialogData *data = NULL);
27 ~wxOS2Printer();
28
29 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
30 virtual wxDC* PrintDialog(wxWindow *parent);
31 virtual bool Setup(wxWindow *parent);
32private:
33};
34
35/*
36 * wxOS2PrintPreview
37 * Programmer creates an object of this class to preview a wxPrintout.
38 */
39
40class WXDLLEXPORT wxOS2PrintPreview: public wxPrintPreviewBase
41{
42 DECLARE_CLASS(wxOS2PrintPreview)
43
44 public:
45 wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintDialogData *data = NULL);
46 wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data);
47 ~wxOS2PrintPreview();
48
49 virtual bool Print(bool interactive);
50 virtual void DetermineScaling();
51};
52
53#endif
54 // _WX_PRINT_H_