2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-10-17 10:44:52 -04:00
|
|
|
// Name: wx/x11/print.h
|
2002-02-05 11:34:33 -05:00
|
|
|
// Purpose: wxPrinter, wxPrintPreview classes
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2006-10-17 10:44:52 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINT_H_
|
|
|
|
#define _WX_PRINT_H_
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Represents the printer: manages printing a wxPrintout object
|
|
|
|
*/
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPrinter: public wxPrinterBase
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrinter)
|
2006-10-17 10:44:52 -04:00
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
public:
|
|
|
|
wxPrinter(wxPrintData *data = NULL);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxPrinter();
|
2006-10-17 10:44:52 -04:00
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
|
|
|
virtual bool PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxPrintPreview
|
|
|
|
* Programmer creates an object of this class to preview a wxPrintout.
|
|
|
|
*/
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPrintPreview: public wxPrintPreviewBase
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxPrintPreview)
|
2006-10-17 10:44:52 -04:00
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
public:
|
|
|
|
wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxPrintPreview();
|
2006-10-17 10:44:52 -04:00
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2006-10-17 10:44:52 -04:00
|
|
|
// _WX_PRINT_H_
|