]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/print.h
only define wxUSE_NATIVE_STATUSBAR for the ports which have it (MSW and Mac)
[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
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
83df96d6
JS
16#pragma interface "print.h"
17#endif
18
19#include "wx/prntbase.h"
20
21/*
22* Represents the printer: manages printing a wxPrintout object
23*/
24
25class WXDLLEXPORT wxPrinter: public wxPrinterBase
26{
27 DECLARE_DYNAMIC_CLASS(wxPrinter)
28
29public:
30 wxPrinter(wxPrintData *data = NULL);
31 ~wxPrinter();
32
33 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
34 virtual bool PrintDialog(wxWindow *parent);
35 virtual bool Setup(wxWindow *parent);
36};
37
38/*
39* wxPrintPreview
40* Programmer creates an object of this class to preview a wxPrintout.
41*/
42
43class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
44{
45 DECLARE_CLASS(wxPrintPreview)
46
47public:
48 wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
49 ~wxPrintPreview();
50
51 virtual bool Print(bool interactive);
52 virtual void DetermineScaling();
53};
54
55#endif
56// _WX_PRINT_H_