1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: print.h
|
|
|
|
// Purpose: wxPrinter, wxPrintPreview classes
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINT_H_
|
|
|
|
#define _WX_PRINT_H_
|
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-09-18 10:19:10 +00:00
|
|
|
#pragma interface "print.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
|
|
|
/*
|
2002-02-05 16:34:33 +00:00
|
|
|
* Represents the printer: manages printing a wxPrintout object
|
|
|
|
*/
|
|
|
|
|
1998-09-18 10:19:10 +00:00
|
|
|
class WXDLLEXPORT wxPrinter: public wxPrinterBase
|
|
|
|
{
|
2002-02-05 16:34:33 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrinter)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxPrinter(wxPrintData *data = NULL);
|
|
|
|
~wxPrinter();
|
|
|
|
|
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
|
|
|
virtual bool PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
1998-09-18 10:19:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
2002-02-05 16:34:33 +00:00
|
|
|
* wxPrintPreview
|
|
|
|
* Programmer creates an object of this class to preview a wxPrintout.
|
|
|
|
*/
|
|
|
|
|
1998-09-18 10:19:10 +00:00
|
|
|
class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
|
|
|
|
{
|
2002-02-05 16:34:33 +00:00
|
|
|
DECLARE_CLASS(wxPrintPreview)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
|
|
|
|
~wxPrintPreview();
|
|
|
|
|
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
1998-09-18 10:19:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 16:34:33 +00:00
|
|
|
// _WX_PRINT_H_
|