1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-01-21 21:38:51 +00:00
|
|
|
// Name: wx/msw/dcprint.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxPrinterDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2000-01-21 21:38:51 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_DCPRINT_H_
|
|
|
|
#define _WX_DCPRINT_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
2000-01-21 21:38:51 +00:00
|
|
|
#pragma interface "dcprint.h"
|
1998-05-20 14:12:05 +00:00
|
|
|
#endif
|
|
|
|
|
1999-06-13 22:54:04 +00:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
#include "wx/dc.h"
|
1999-03-25 23:06:01 +00:00
|
|
|
#include "wx/cmndata.h"
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxPrinterDC: public wxDC
|
|
|
|
{
|
1999-03-25 23:06:01 +00:00
|
|
|
public:
|
|
|
|
DECLARE_CLASS(wxPrinterDC)
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-03-25 23:06:01 +00:00
|
|
|
// Create a printer DC (obsolete function: use wxPrintData version now)
|
|
|
|
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-03-25 23:06:01 +00:00
|
|
|
// Create from print data
|
|
|
|
wxPrinterDC(const wxPrintData& data);
|
|
|
|
|
|
|
|
wxPrinterDC(WXHDC theDC);
|
|
|
|
|
|
|
|
~wxPrinterDC(void);
|
|
|
|
|
2000-01-21 21:38:51 +00:00
|
|
|
// override some base class virtuals
|
|
|
|
virtual bool StartDoc(const wxString& message);
|
|
|
|
virtual void EndDoc();
|
|
|
|
virtual void StartPage();
|
|
|
|
virtual void EndPage();
|
1999-03-25 23:06:01 +00:00
|
|
|
|
|
|
|
protected:
|
2000-01-21 21:38:51 +00:00
|
|
|
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
|
|
|
|
bool useMask = FALSE);
|
|
|
|
virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
|
|
|
|
wxCoord width, wxCoord height,
|
|
|
|
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
|
|
|
int rop = wxCOPY, bool useMask = FALSE);
|
|
|
|
|
1999-03-25 23:06:01 +00:00
|
|
|
wxPrintData m_printData;
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Gets an HDC for the default printer configuration
|
1999-03-25 23:06:01 +00:00
|
|
|
// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
|
|
|
|
|
|
|
|
// Gets an HDC for the specified printer configuration
|
|
|
|
WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-06-13 22:54:04 +00:00
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_DCPRINT_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|