X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7193abfbc8e8e66555b38dad56dce5fcfaee3204..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/richtext/richtextprint.h diff --git a/include/wx/richtext/richtextprint.h b/include/wx/richtext/richtextprint.h index cba26f9091..4fe242e672 100644 --- a/include/wx/richtext/richtextprint.h +++ b/include/wx/richtext/richtextprint.h @@ -3,7 +3,6 @@ // Purpose: Rich text printing classes // Author: Julian Smart // Created: 2006-10-23 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -165,12 +164,16 @@ public: 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(); @@ -226,7 +229,7 @@ public: 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;