2004-10-21 21:32:57 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/os2/printos2.h
|
2004-10-21 21:32:57 +00:00
|
|
|
// Purpose: wxOS2Printer, wxOS2PrintPreview classes
|
|
|
|
// Author: David Webster
|
|
|
|
// Modified by:
|
|
|
|
// Created: 10/14/99
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) David Webster
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINT_H_
|
|
|
|
#define _WX_PRINT_H_
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
2005-08-23 15:41:50 +00:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
2004-10-21 21:32:57 +00:00
|
|
|
/*
|
|
|
|
* Represents the printer: manages printing a wxPrintout object
|
|
|
|
*/
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxOS2Printer: public wxPrinterBase
|
2004-10-21 21:32:57 +00:00
|
|
|
{
|
2005-08-23 15:41:50 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxOS2Printer)
|
2004-10-21 21:32:57 +00:00
|
|
|
|
2005-08-23 15:41:50 +00:00
|
|
|
public:
|
|
|
|
wxOS2Printer(wxPrintDialogData *data = NULL);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxOS2Printer();
|
2004-10-21 21:32:57 +00:00
|
|
|
|
2005-08-23 15:41:50 +00:00
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
2004-10-21 21:32:57 +00:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxOS2PrintPreview
|
|
|
|
* Programmer creates an object of this class to preview a wxPrintout.
|
|
|
|
*/
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxOS2PrintPreview: public wxPrintPreviewBase
|
2004-10-21 21:32:57 +00:00
|
|
|
{
|
2005-08-23 15:41:50 +00:00
|
|
|
DECLARE_CLASS(wxOS2PrintPreview)
|
2004-10-21 21:32:57 +00:00
|
|
|
|
2005-08-23 15:41:50 +00:00
|
|
|
public:
|
|
|
|
wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintDialogData *data = NULL);
|
|
|
|
wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxOS2PrintPreview();
|
2004-10-21 21:32:57 +00:00
|
|
|
|
2005-08-23 15:41:50 +00:00
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
2004-10-21 21:32:57 +00:00
|
|
|
};
|
|
|
|
|
2005-08-23 15:41:50 +00:00
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
2004-10-21 21:32:57 +00:00
|
|
|
#endif
|
|
|
|
// _WX_PRINT_H_
|