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();
/// Set print and page setup data
void SetPrintData(const wxPrintData& printData);
- void SetPageSetupData(const wxPageSetupData& pageSetupData);
+ void SetPageSetupData(const wxPageSetupDialogData& pageSetupData);
/// Set the rich text buffer pointer, deleting the existing object if present
void SetRichTextBufferPreview(wxRichTextBuffer* buf);
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;