]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcprint.cpp
fixed wxRadioBox positioning to take the client area origin into account; also simpli...
[wxWidgets.git] / src / palmos / dcprint.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/dcprint.cpp
3// Purpose: wxPrinterDC class
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
ffecfa5a
JS
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
6d50343d
WS
27#if wxUSE_PRINTING_ARCHITECTURE
28
29#include "wx/dcprint.h"
30
ffecfa5a
JS
31#ifndef WX_PRECOMP
32 #include "wx/string.h"
33 #include "wx/log.h"
34 #include "wx/window.h"
35 #include "wx/dcmemory.h"
463c4d71 36 #include "wx/math.h"
ffecfa5a
JS
37#endif
38
ffecfa5a
JS
39#include "wx/palmos/private.h"
40
41#if wxUSE_WXDIB
42#include "wx/palmos/dib.h"
43#endif
44
ffecfa5a
JS
45
46// ----------------------------------------------------------------------------
47// wxWin macros
48// ----------------------------------------------------------------------------
49
50IMPLEMENT_CLASS(wxPrinterDC, wxDC)
51
52// ============================================================================
53// implementation
54// ============================================================================
55
56// ----------------------------------------------------------------------------
57// wxPrinterDC construction
58// ----------------------------------------------------------------------------
59
60// This form is deprecated
61wxPrinterDC::wxPrinterDC(const wxString& driver_name,
62 const wxString& device_name,
63 const wxString& file,
64 bool interactive,
65 int orientation)
66{
67}
68
69wxPrinterDC::wxPrinterDC(const wxPrintData& printData)
70{
71}
72
73
74wxPrinterDC::wxPrinterDC(WXHDC dc)
75{
76}
77
78void wxPrinterDC::Init()
79{
80}
81
82// ----------------------------------------------------------------------------
83// wxPrinterDC {Start/End}{Page/Doc} methods
84// ----------------------------------------------------------------------------
85
86bool wxPrinterDC::StartDoc(const wxString& message)
87{
88 return false;
89}
90
91void wxPrinterDC::EndDoc()
92{
93}
94
95void wxPrinterDC::StartPage()
96{
97}
98
99void wxPrinterDC::EndPage()
100{
101}
102
6d52ca53 103wxRect wxPrinterDC::GetPaperRect() const
f415cab9
JS
104{
105 // Use page rect if we can't get paper rect.
106 wxCoord w, h;
107 GetSize(&w, &h);
108 return wxRect(0, 0, w, h);
109}
110
ffecfa5a
JS
111// Returns default device and port names
112static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
113{
114 return false;
115}
116
117// Gets an HDC for the specified printer configuration
118WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
119{
120 return (WXHDC) 0;
121}
122
123// ----------------------------------------------------------------------------
124// wxPrinterDC bit blitting/bitmap drawing
125// ----------------------------------------------------------------------------
126
127// helper of DoDrawBitmap() and DoBlit()
128static
129bool DrawBitmapUsingStretchDIBits(HDC hdc,
130 const wxBitmap& bmp,
131 wxCoord x, wxCoord y)
132{
133 return false;
134}
135
136void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
137 wxCoord x, wxCoord y,
138 bool useMask)
139{
140}
141
142bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
143 wxCoord width, wxCoord height,
144 wxDC *source,
145 wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
89efaf2b 146 wxRasterOperationMode WXUNUSED(rop), bool useMask,
ffecfa5a
JS
147 wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
148{
149 return false;
150}
151
152#endif
153 // wxUSE_PRINTING_ARCHITECTURE