]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/print.h
Added various list commands to demonstrate new list features.
[wxWidgets.git] / include / wx / x11 / print.h
CommitLineData
83df96d6
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: print.h
3// Purpose: wxPrinter, wxPrintPreview classes
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINT_H_
13#define _WX_PRINT_H_
14
83df96d6
JS
15#include "wx/prntbase.h"
16
17/*
18* Represents the printer: manages printing a wxPrintout object
19*/
20
21class WXDLLEXPORT wxPrinter: public wxPrinterBase
22{
23 DECLARE_DYNAMIC_CLASS(wxPrinter)
24
25public:
26 wxPrinter(wxPrintData *data = NULL);
d3c7fc99 27 virtual ~wxPrinter();
83df96d6
JS
28
29 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
30 virtual bool PrintDialog(wxWindow *parent);
31 virtual bool Setup(wxWindow *parent);
32};
33
34/*
35* wxPrintPreview
36* Programmer creates an object of this class to preview a wxPrintout.
37*/
38
39class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
40{
41 DECLARE_CLASS(wxPrintPreview)
42
43public:
44 wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
d3c7fc99 45 virtual ~wxPrintPreview();
83df96d6
JS
46
47 virtual bool Print(bool interactive);
48 virtual void DetermineScaling();
49};
50
51#endif
52// _WX_PRINT_H_