]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/print.h
made GetAlpha(x, y) const (the docs are already correct)
[wxWidgets.git] / include / wx / motif / print.h
CommitLineData
9b6dbb09
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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINT_H_
13#define _WX_PRINT_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
9b6dbb09
JS
16#pragma interface "print.h"
17#endif
18
19#include "wx/prntbase.h"
20
21/*
83df96d6
JS
22* Represents the printer: manages printing a wxPrintout object
23*/
24
9b6dbb09
JS
25class WXDLLEXPORT wxPrinter: public wxPrinterBase
26{
83df96d6
JS
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);
9b6dbb09
JS
36};
37
38/*
83df96d6
JS
39* wxPrintPreview
40* Programmer creates an object of this class to preview a wxPrintout.
41*/
42
9b6dbb09
JS
43class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
44{
83df96d6
JS
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();
9b6dbb09
JS
53};
54
55#endif
83df96d6 56// _WX_PRINT_H_