1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: print.h
|
|
|
|
// Purpose: wxPrinter, wxPrintPreview classes
|
1999-10-15 04:07:54 +00:00
|
|
|
// Author: David Webster
|
1999-07-29 05:11:30 +00:00
|
|
|
// Modified by:
|
1999-10-15 04:07:54 +00:00
|
|
|
// Created: 10/14/99
|
1999-07-29 05:11:30 +00:00
|
|
|
// RCS-ID: $Id$
|
1999-10-15 04:07:54 +00:00
|
|
|
// Copyright: (c) David Webster
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINT_H_
|
|
|
|
#define _WX_PRINT_H_
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Represents the printer: manages printing a wxPrintout object
|
|
|
|
*/
|
1999-10-15 04:07:54 +00:00
|
|
|
|
2004-10-21 17:36:01 +00:00
|
|
|
class WXDLLEXPORT wxOS2Printer: public wxPrinterBase
|
1999-07-29 05:11:30 +00:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrinter)
|
|
|
|
|
|
|
|
public:
|
2004-10-21 17:36:01 +00:00
|
|
|
wxOS2Printer(wxPrintData *data = NULL);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxOS2Printer();
|
1999-07-29 05:11:30 +00:00
|
|
|
|
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
1999-10-15 04:07:54 +00:00
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
1999-07-29 05:11:30 +00:00
|
|
|
virtual bool Setup(wxWindow *parent);
|
1999-10-15 04:07:54 +00:00
|
|
|
private:
|
1999-07-29 05:11:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxPrintPreview
|
|
|
|
* Programmer creates an object of this class to preview a wxPrintout.
|
|
|
|
*/
|
1999-10-15 04:07:54 +00:00
|
|
|
|
2004-10-21 17:36:01 +00:00
|
|
|
class WXDLLEXPORT wxOS2PrintPreview: public wxPrintPreviewBase
|
1999-07-29 05:11:30 +00:00
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxPrintPreview)
|
|
|
|
|
|
|
|
public:
|
2004-10-21 17:36:01 +00:00
|
|
|
wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxOS2PrintPreview();
|
1999-07-29 05:11:30 +00:00
|
|
|
|
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_PRINT_H_
|