]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mac/dcprint.h
Add GetDrawable convenience function that returns m_bitmap
[wxWidgets.git] / include / wx / mac / dcprint.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcprint.h
3// Purpose: wxPrinterDC class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
15#if defined(__GNUG__) && !defined(__APPLE__)
16#pragma interface "dcprint.h"
17#endif
18
19#include "wx/dc.h"
20#include "wx/cmndata.h"
21
22class WXDLLEXPORT wxPrinterDC: public wxDC
23{
24 public:
25 DECLARE_CLASS(wxPrinterDC)
26
27#if wxUSE_PRINTING_ARCHITECTURE
28 // Create a printer DC
29 wxPrinterDC(const wxPrintData& printdata );
30 ~wxPrinterDC();
31
32 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
33 virtual void EndDoc(void) ;
34 virtual void StartPage(void) ;
35 virtual void EndPage(void) ;
36 protected:
37 void* m_macPrintSessionPort ;
38 wxPrintData m_printData ;
39#endif // wxUSE_PRINTING_ARCHITECTURE
40};
41
42#endif
43 // _WX_DCPRINT_H_
44