X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7193abfbc8e8e66555b38dad56dce5fcfaee3204..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/richtext/richtextprint.h diff --git a/include/wx/richtext/richtextprint.h b/include/wx/richtext/richtextprint.h index cba26f9091..8ca2e80bb3 100644 --- a/include/wx/richtext/richtextprint.h +++ b/include/wx/richtext/richtextprint.h @@ -169,8 +169,8 @@ public: bool PreviewBuffer(const wxRichTextBuffer& buffer); /// Print the file or buffer - bool PrintFile(const wxString& richTextFile); - bool PrintBuffer(const wxRichTextBuffer& buffer); + bool PrintFile(const wxString& richTextFile, bool showPrintDialog = true); + bool PrintBuffer(const wxRichTextBuffer& buffer, bool showPrintDialog = true); /// Shows page setup dialog void PageSetup(); @@ -226,7 +226,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;