]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/print.h
remove warnings of intentionally unreachable code
[wxWidgets.git] / include / wx / motif / print.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/print.h
9b6dbb09
JS
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
925f7740 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINT_H_
13#define _WX_PRINT_H_
14
9b6dbb09
JS
15#include "wx/prntbase.h"
16
17/*
83df96d6
JS
18* Represents the printer: manages printing a wxPrintout object
19*/
20
9b6dbb09
JS
21class WXDLLEXPORT wxPrinter: public wxPrinterBase
22{
83df96d6 23 DECLARE_DYNAMIC_CLASS(wxPrinter)
925f7740 24
83df96d6
JS
25public:
26 wxPrinter(wxPrintData *data = NULL);
d3c7fc99 27 virtual ~wxPrinter();
925f7740 28
96be256b 29 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
83df96d6
JS
30 virtual bool PrintDialog(wxWindow *parent);
31 virtual bool Setup(wxWindow *parent);
9b6dbb09
JS
32};
33
34/*
83df96d6
JS
35* wxPrintPreview
36* Programmer creates an object of this class to preview a wxPrintout.
37*/
38
9b6dbb09
JS
39class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
40{
83df96d6 41 DECLARE_CLASS(wxPrintPreview)
925f7740 42
83df96d6
JS
43public:
44 wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
d3c7fc99 45 virtual ~wxPrintPreview();
925f7740 46
83df96d6
JS
47 virtual bool Print(bool interactive);
48 virtual void DetermineScaling();
9b6dbb09
JS
49};
50
51#endif
83df96d6 52// _WX_PRINT_H_