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