Added a parameter to PrintBuffer and PrintFile to allow silent or prompted printing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2012-03-18 23:25:39 +00:00
parent 27abbc9dd2
commit 148d83b59f
3 changed files with 14 additions and 12 deletions

View File

@@ -341,14 +341,16 @@ public:
/**
Prints the given buffer. The function takes its own copy of @a buffer.
@showPrintDialog can be @true to show the print dialog, or @false to print quietly.
*/
bool PrintBuffer(const wxRichTextBuffer& buffer);
bool PrintBuffer(const wxRichTextBuffer& buffer, bool showPrintDialog = true);
/**
Prints the given file. @a richTextFile can be a text file or XML file,
or other file depending on the available file handlers.
or other file depending on the available file handlers. @showPrintDialog
can be @true to show the print dialog, or @false to print quietly.
*/
bool PrintFile(const wxString& richTextFile);
bool PrintFile(const wxString& richTextFile, bool showPrintDialog = true);
/**
A convenience function to set the footer text.