2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcprint.h
|
|
|
|
// Purpose: wxPrinterDC class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCPRINT_H_
|
|
|
|
#define _WX_DCPRINT_H_
|
|
|
|
|
|
|
|
#include "wx/dc.h"
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
|
|
|
|
class wxNativePrinterDC ;
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPrinterDC: public wxDC
|
|
|
|
{
|
|
|
|
public:
|
2005-02-17 23:43:47 -05:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
2004-03-23 12:35:05 -05:00
|
|
|
DECLARE_CLASS(wxPrinterDC)
|
|
|
|
|
|
|
|
// Create a printer DC
|
|
|
|
wxPrinterDC(const wxPrintData& printdata );
|
|
|
|
~wxPrinterDC();
|
|
|
|
|
|
|
|
virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
|
|
|
|
virtual void EndDoc(void) ;
|
|
|
|
virtual void StartPage(void) ;
|
|
|
|
virtual void EndPage(void) ;
|
|
|
|
wxPrintData& GetPrintData() { return m_printData; }
|
2005-02-12 06:34:05 -05:00
|
|
|
#if wxMAC_USE_CORE_GRAPHICS
|
|
|
|
void MacSetCGContext( void * cg ) ;
|
|
|
|
#endif
|
2004-03-23 12:35:05 -05:00
|
|
|
protected:
|
2006-02-08 16:47:09 -05:00
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
2004-03-23 12:35:05 -05:00
|
|
|
wxPrintData m_printData ;
|
|
|
|
wxNativePrinterDC* m_nativePrinterDC ;
|
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCPRINT_H_
|
|
|
|
|