class WXDLLIMPEXP_RICHTEXT wxRichTextPrintout : public wxPrintout
{
public:
- wxRichTextPrintout(const wxString& title = wxT("Printout"));
+ wxRichTextPrintout(const wxString& title = _("Printout"));
virtual ~wxRichTextPrintout();
/// The buffer to print
class WXDLLIMPEXP_RICHTEXT wxRichTextPrinting : public wxObject
{
public:
- wxRichTextPrinting(const wxString& name = wxT("Printing"), wxWindow *parentWindow = NULL);
+ wxRichTextPrinting(const wxString& name = _("Printing"), wxWindow *parentWindow = NULL);
virtual ~wxRichTextPrinting();
/// Preview the file or buffer
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;