]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/printpalm.h
wxFileName size patch
[wxWidgets.git] / include / wx / palmos / printpalm.h
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e1d63b79 2// Name: wx/palmos/printpalm.h
ffecfa5a 3// Purpose: wxPalmPrinter, wxPalmPrintPreview classes
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINTPALM_H_
13#define _WX_PRINTPALM_H_
14
ffecfa5a
JS
15#include "wx/prntbase.h"
16
17// ---------------------------------------------------------------------------
18// Represents the printer: manages printing a wxPrintout object
19// ---------------------------------------------------------------------------
20
21class WXDLLEXPORT wxPalmPrinter : public wxPrinterBase
22{
23 DECLARE_DYNAMIC_CLASS(wxPalmPrinter)
24
25public:
26 wxPalmPrinter(wxPrintDialogData *data = NULL);
27 virtual ~wxPalmPrinter();
28
29 virtual bool Print(wxWindow *parent,
30 wxPrintout *printout,
31 bool prompt = TRUE);
32 virtual wxDC* PrintDialog(wxWindow *parent);
33 virtual bool Setup(wxWindow *parent);
34
35private:
36 WXFARPROC m_lpAbortProc;
37
38 DECLARE_NO_COPY_CLASS(wxPalmPrinter)
39};
40
41// ---------------------------------------------------------------------------
42// wxPrintPreview: programmer creates an object of this class to preview a
43// wxPrintout.
44// ---------------------------------------------------------------------------
45
46class WXDLLEXPORT wxPalmPrintPreview : public wxPrintPreviewBase
47{
48public:
49 wxPalmPrintPreview(wxPrintout *printout,
50 wxPrintout *printoutForPrinting = NULL,
51 wxPrintDialogData *data = NULL);
52 wxPalmPrintPreview(wxPrintout *printout,
53 wxPrintout *printoutForPrinting,
54 wxPrintData *data);
55 virtual ~wxPalmPrintPreview();
56
57 virtual bool Print(bool interactive);
58 virtual void DetermineScaling();
59
60private:
61 DECLARE_DYNAMIC_CLASS_NO_COPY(wxPalmPrintPreview)
62};
63
64#endif
65// _WX_PRINTPALM_H_