]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/print.h
A fix for attribrute sorting, but it's still broken if there are
[wxWidgets.git] / include / wx / os2 / print.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: print.h
3// Purpose: wxPrinter, wxPrintPreview classes
11e59d47 4// Author: David Webster
0e320a79 5// Modified by:
11e59d47 6// Created: 10/14/99
0e320a79 7// RCS-ID: $Id$
11e59d47
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINT_H_
13#define _WX_PRINT_H_
14
0e320a79
DW
15#include "wx/prntbase.h"
16
17/*
18 * Represents the printer: manages printing a wxPrintout object
19 */
11e59d47 20
0e320a79
DW
21class WXDLLEXPORT wxPrinter: public wxPrinterBase
22{
23 DECLARE_DYNAMIC_CLASS(wxPrinter)
24
25 public:
26 wxPrinter(wxPrintData *data = NULL);
27 ~wxPrinter();
28
29 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
11e59d47 30 virtual wxDC* PrintDialog(wxWindow *parent);
0e320a79 31 virtual bool Setup(wxWindow *parent);
11e59d47 32private:
0e320a79
DW
33};
34
35/*
36 * wxPrintPreview
37 * Programmer creates an object of this class to preview a wxPrintout.
38 */
11e59d47 39
0e320a79
DW
40class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
41{
42 DECLARE_CLASS(wxPrintPreview)
43
44 public:
45 wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
46 ~wxPrintPreview();
47
48 virtual bool Print(bool interactive);
49 virtual void DetermineScaling();
50};
51
52#endif
53 // _WX_PRINT_H_