--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: print.cpp
+// Purpose: Print framework
+// Author: AUTHOR
+// Modified by:
+// Created: ??/??/98
+// RCS-ID: $Id$
+// Copyright: (c) AUTHOR
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifdef __GNUG__
+#pragma implementation "print.h"
+#endif
+
+#include "wx/print.h"
+
+#if !USE_SHARED_LIBRARY
+IMPLEMENT_DYNAMIC_CLASS(wxPrinter, wxPrinterBase)
+IMPLEMENT_CLASS(wxWindowsPrintPreview, wxPrintPreviewBase)
+#endif
+
+/*
+ * Printer
+ */
+
+wxPrinter::wxPrinter(wxPrintData *data):
+ wxPrinterBase(data)
+{
+}
+
+wxPrinter::~wxPrinter()
+{
+}
+
+bool wxPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
+{
+ // TODO. See wxPostScriptPrinter::Print for hints.
+ return FALSE;
+}
+
+bool wxPrinter::PrintDialog(wxWindow *parent)
+{
+ wxPrintDialog dialog(parent, & printData);
+ return (dialog.ShowModal() == wxID_OK);
+}
+
+bool wxPrinter::Setup(wxWindow *parent)
+{
+ wxPrintDialog dialog(parent, & printData);
+ dialog.GetPrintData().SetSetupDialog(TRUE);
+ return (dialog.ShowModal() == wxID_OK);
+}
+
+/*
+ * Print preview
+ */
+
+wxWindowsPrintPreview::wxWindowsPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
+ wxPrintPreviewBase(printout, printoutForPrinting, data)
+{
+ DetermineScaling();
+}
+
+wxWindowsPrintPreview::~wxWindowsPrintPreview()
+{
+}
+
+bool wxWindowsPrintPreview::Print(bool interactive)
+{
+ if (!printPrintout)
+ return FALSE;
+ wxPrinter printer(&printData);
+ return printer.Print(previewFrame, printPrintout, interactive);
+}
+
+void wxWindowsPrintPreview::DetermineScaling()
+{
+ // TODO
+}
+