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