// Purpose: Rich text printing classes
// Author: Julian Smart
// Created: 2006-10-23
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
virtual ~wxRichTextPrinting();
/// Preview the file or buffer
+#if wxUSE_FFILE && wxUSE_STREAMS
bool PreviewFile(const wxString& richTextFile);
+#endif
bool PreviewBuffer(const wxRichTextBuffer& buffer);
/// Print the file or buffer
- bool PrintFile(const wxString& richTextFile);
- bool PrintBuffer(const wxRichTextBuffer& buffer);
+#if wxUSE_FFILE && wxUSE_STREAMS
+ bool PrintFile(const wxString& richTextFile, bool showPrintDialog = true);
+#endif
+ bool PrintBuffer(const wxRichTextBuffer& buffer, bool showPrintDialog = true);
/// Shows page setup dialog
void PageSetup();
protected:
virtual wxRichTextPrintout *CreatePrintout();
virtual bool DoPreview(wxRichTextPrintout *printout1, wxRichTextPrintout *printout2);
- virtual bool DoPrint(wxRichTextPrintout *printout);
+ virtual bool DoPrint(wxRichTextPrintout *printout, bool showPrintDialog);
private:
wxPrintData* m_printData;