2004-10-21 17:32:57 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: print.h
|
|
|
|
// 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 11:41:50 -04:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
2004-10-21 17:32:57 -04:00
|
|
|
/*
|
|
|
|
* Represents the printer: manages printing a wxPrintout object
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxOS2Printer: public wxPrinterBase
|
|
|
|
{
|
2005-08-23 11:41:50 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxOS2Printer)
|
2004-10-21 17:32:57 -04:00
|
|
|
|
2005-08-23 11:41:50 -04:00
|
|
|
public:
|
|
|
|
wxOS2Printer(wxPrintDialogData *data = NULL);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxOS2Printer();
|
2004-10-21 17:32:57 -04:00
|
|
|
|
2005-08-23 11:41:50 -04:00
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
2004-10-21 17:32:57 -04:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxOS2PrintPreview
|
|
|
|
* Programmer creates an object of this class to preview a wxPrintout.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxOS2PrintPreview: public wxPrintPreviewBase
|
|
|
|
{
|
2005-08-23 11:41:50 -04:00
|
|
|
DECLARE_CLASS(wxOS2PrintPreview)
|
2004-10-21 17:32:57 -04:00
|
|
|
|
2005-08-23 11:41:50 -04:00
|
|
|
public:
|
|
|
|
wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintDialogData *data = NULL);
|
|
|
|
wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxOS2PrintPreview();
|
2004-10-21 17:32:57 -04:00
|
|
|
|
2005-08-23 11:41:50 -04:00
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
2004-10-21 17:32:57 -04:00
|
|
|
};
|
|
|
|
|
2005-08-23 11:41:50 -04:00
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
2004-10-21 17:32:57 -04:00
|
|
|
#endif
|
|
|
|
// _WX_PRINT_H_
|