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