]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/richtext/richtextprint.h
Move code removing "-psn_xxx" command line arguments to common code.
[wxWidgets.git] / interface / wx / richtext / richtextprint.h
index ae7417c1219ee9b6bc28e4bad7ee3ce2df5ee1a0..fde7c7fc100b634e0f9d0db44b331f2f0b605e52 100644 (file)
@@ -2,8 +2,7 @@
 // Name:        richtext/richtextprint.h
 // Purpose:     interface of wxRichTextHeaderFooterData
 // Author:      wxWidgets team
-// RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 
@@ -194,7 +193,7 @@ public:
     /**
         Constructor.
     */
-    wxRichTextPrintout(const wxString& title = wxT("Printout"));
+    wxRichTextPrintout(const wxString& title = "Printout");
 
     /**
         Calculates scaling and text, header and footer rectangles.
@@ -272,7 +271,7 @@ public:
         Optionally pass a title to be used in the preview frame and printing wait
         dialog, and also a parent window for these windows.
     */
-    wxRichTextPrinting(const wxString& name = wxT("Printing"),
+    wxRichTextPrinting(const wxString& name = "Printing",
                        wxWindow* parentWindow = NULL);
 
     /**
@@ -341,14 +340,16 @@ public:
 
     /**
         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.