X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80842e163237b63f91e9a933832a049d543beb23..38723be1d50facc0176455b69b409dcd457ac07a:/interface/wx/docview.h diff --git a/interface/wx/docview.h b/interface/wx/docview.h index b396918076..d7f4448754 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -516,6 +516,24 @@ public: */ wxList& GetTemplates(); + /** + Create the frame used for print preview. + + This method can be overridden if you need to change the behaviour or + appearance of the preview window. By default, a standard wxPreviewFrame + is created. + + @since 2.9.1 + + @param preview The associated preview object. + @param parent The parent window for the frame. + @param title The suggested title for the print preview frame. + @return A new print preview frame, must not return @NULL. + */ + virtual wxPreviewFrame* CreatePreviewFrame(wxPrintPreviewBase* preview, + wxWindow* parent, + const wxString& title); + /** Initializes data; currently just calls OnCreateFileHistory(). @@ -1332,6 +1350,14 @@ public: */ virtual bool SaveAs(); + /** + Discard changes and load last saved version. + + Prompts the user first, and then calls DoOpenDocument() to reload the + current file. + */ + virtual bool Revert(); + //@{ /** Override this function and call it from your own SaveObject() before