]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcprint.cpp
avoid hidden GetImageList
[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
27#ifndef WX_PRECOMP
28 #include "wx/string.h"
29 #include "wx/log.h"
30 #include "wx/window.h"
31 #include "wx/dcmemory.h"
463c4d71 32 #include "wx/math.h"
ffecfa5a
JS
33#endif
34
35#if wxUSE_PRINTING_ARCHITECTURE
36
37#include "wx/palmos/private.h"
38
39#if wxUSE_WXDIB
40#include "wx/palmos/dib.h"
41#endif
42
43#include "wx/dcprint.h"
ffecfa5a
JS
44
45// ----------------------------------------------------------------------------
46// wxWin macros
47// ----------------------------------------------------------------------------
48
49IMPLEMENT_CLASS(wxPrinterDC, wxDC)
50
51// ============================================================================
52// implementation
53// ============================================================================
54
55// ----------------------------------------------------------------------------
56// wxPrinterDC construction
57// ----------------------------------------------------------------------------
58
59// This form is deprecated
60wxPrinterDC::wxPrinterDC(const wxString& driver_name,
61 const wxString& device_name,
62 const wxString& file,
63 bool interactive,
64 int orientation)
65{
66}
67
68wxPrinterDC::wxPrinterDC(const wxPrintData& printData)
69{
70}
71
72
73wxPrinterDC::wxPrinterDC(WXHDC dc)
74{
75}
76
77void wxPrinterDC::Init()
78{
79}
80
81// ----------------------------------------------------------------------------
82// wxPrinterDC {Start/End}{Page/Doc} methods
83// ----------------------------------------------------------------------------
84
85bool wxPrinterDC::StartDoc(const wxString& message)
86{
87 return false;
88}
89
90void wxPrinterDC::EndDoc()
91{
92}
93
94void wxPrinterDC::StartPage()
95{
96}
97
98void wxPrinterDC::EndPage()
99{
100}
101
102// Returns default device and port names
103static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
104{
105 return false;
106}
107
108// Gets an HDC for the specified printer configuration
109WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
110{
111 return (WXHDC) 0;
112}
113
114// ----------------------------------------------------------------------------
115// wxPrinterDC bit blitting/bitmap drawing
116// ----------------------------------------------------------------------------
117
118// helper of DoDrawBitmap() and DoBlit()
119static
120bool DrawBitmapUsingStretchDIBits(HDC hdc,
121 const wxBitmap& bmp,
122 wxCoord x, wxCoord y)
123{
124 return false;
125}
126
127void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
128 wxCoord x, wxCoord y,
129 bool useMask)
130{
131}
132
133bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
134 wxCoord width, wxCoord height,
135 wxDC *source,
136 wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
137 int WXUNUSED(rop), bool useMask,
138 wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
139{
140 return false;
141}
142
143#endif
144 // wxUSE_PRINTING_ARCHITECTURE