]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/dcprint.h
compilation fix: wxGenericCollapsiblePane needs wxButton and wxStaticLine
[wxWidgets.git] / include / wx / mac / carbon / dcprint.h
CommitLineData
8cf73271 1/////////////////////////////////////////////////////////////////////////////
f415cab9 2// Name: wx/mac/carbon/dcprint.h
8cf73271
SC
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
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
8cf73271
SC
15#include "wx/dc.h"
16#include "wx/cmndata.h"
17
18class wxNativePrinterDC ;
19
20class WXDLLEXPORT wxPrinterDC: public wxDC
21{
22 public:
179e085f 23#if wxUSE_PRINTING_ARCHITECTURE
8cf73271
SC
24 DECLARE_CLASS(wxPrinterDC)
25
8cf73271
SC
26 // Create a printer DC
27 wxPrinterDC(const wxPrintData& printdata );
d3c7fc99 28 virtual ~wxPrinterDC();
8cf73271
SC
29
30 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
31 virtual void EndDoc(void) ;
32 virtual void StartPage(void) ;
33 virtual void EndPage(void) ;
f415cab9
JS
34
35 wxRect GetPaperRect();
36
8cf73271 37 wxPrintData& GetPrintData() { return m_printData; }
db49000e 38 virtual wxSize GetPPI() const;
20b69855
SC
39#if wxMAC_USE_CORE_GRAPHICS
40 void MacSetCGContext( void * cg ) ;
41#endif
8cf73271 42 protected:
6f02a879 43 virtual void DoGetSize( int *width, int *height ) const;
8cf73271
SC
44 wxPrintData m_printData ;
45 wxNativePrinterDC* m_nativePrinterDC ;
46#endif // wxUSE_PRINTING_ARCHITECTURE
47};
48
49#endif
50 // _WX_DCPRINT_H_
51