]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/printpalm.cpp
fix for non precomp
[wxWidgets.git] / src / palmos / printpalm.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/printpalm.cpp
ffecfa5a 3// Purpose: wxPalmPrinter framework
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#include "wx/defs.h"
28
29// Don't use the Windows printer if we're in wxUniv mode and using
30// the PostScript architecture
31#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
32
33#ifndef WX_PRECOMP
34 #include "wx/window.h"
35 #include "wx/palmos/private.h"
36 #include "wx/utils.h"
37 #include "wx/dc.h"
38 #include "wx/app.h"
39 #include "wx/msgdlg.h"
40 #include "wx/intl.h"
41#endif
42
43#include "wx/palmos/printpalm.h"
44#include "wx/dcprint.h"
45#include "wx/printdlg.h"
46#include "wx/log.h"
47#include "wx/palmos/private.h"
48
49// ---------------------------------------------------------------------------
50// private functions
51// ---------------------------------------------------------------------------
52
53// ---------------------------------------------------------------------------
54// wxWin macros
55// ---------------------------------------------------------------------------
56
57 IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter, wxPrinterBase)
58 IMPLEMENT_CLASS(wxPalmPrintPreview, wxPrintPreviewBase)
59
60// ===========================================================================
61// implementation
62// ===========================================================================
63
64// ---------------------------------------------------------------------------
65// Printer
66// ---------------------------------------------------------------------------
67
68wxPalmPrinter::wxPalmPrinter(wxPrintDialogData *data)
69 : wxPrinterBase(data)
70{
71}
72
73wxPalmPrinter::~wxPalmPrinter()
74{
75}
76
77bool wxPalmPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
78{
79 return false;
80}
81
82wxDC* wxPalmPrinter::PrintDialog(wxWindow *parent)
83{
84 wxDC* dc = (wxDC*) NULL;
85
86 return dc;
87}
88
89bool wxPalmPrinter::Setup(wxWindow *parent)
90{
91 return false;
92}
93
94/*
95* Print preview
96*/
97
98wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
99 wxPrintout *printoutForPrinting,
100 wxPrintDialogData *data)
101 : wxPrintPreviewBase(printout, printoutForPrinting, data)
102{
103}
104
105wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
106 wxPrintout *printoutForPrinting,
107 wxPrintData *data)
108 : wxPrintPreviewBase(printout, printoutForPrinting, data)
109{
110}
111
112wxPalmPrintPreview::~wxPalmPrintPreview()
113{
114}
115
116bool wxPalmPrintPreview::Print(bool interactive)
117{
118 return false;
119}
120
121void wxPalmPrintPreview::DetermineScaling()
122{
123}
124
125#endif
126 // wxUSE_PRINTING_ARCHITECTURE