// Name: richtext/richtextprint.h
// Purpose: interface of wxRichTextHeaderFooterData
// Author: wxWidgets team
-// RCS-ID: $Id$
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
Prints the given buffer. The function takes its own copy of @a buffer.
+ @a 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. @a 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.