]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stubs/print.h
Rewrote wxNotebook, incl. PAGE_CHANGING event
[wxWidgets.git] / include / wx / stubs / print.h
CommitLineData
7c23a0b0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: print.h
3// Purpose: wxPrinter, wxPrintPreview classes
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINT_H_
13#define _WX_PRINT_H_
14
15#ifdef __GNUG__
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
29 public:
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
47 public:
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_