X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c70da1a2431f5391739514d3eeffd4b3b96c4508..0995b9dc18a7ce898c1c1be0e2790b258cab0fee:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index 8a400b74c6..90538ad638 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -184,8 +184,8 @@ protected: bool m_savedYet; // Called by OnSaveDocument and OnOpenDocument to implement standard - // Save/Load behavior. Re-implement in derived class for custom - // behavior. + // Save/Load behaviour. Re-implement in derived class for custom + // behaviour. virtual bool DoSaveDocument(const wxString& file); virtual bool DoOpenDocument(const wxString& file); @@ -414,6 +414,9 @@ public: void AssociateTemplate(wxDocTemplate *temp); void DisassociateTemplate(wxDocTemplate *temp); + // Find template from document class info, may return NULL. + wxDocTemplate* FindTemplate(const wxClassInfo* documentClassInfo); + wxDocument *GetCurrentDocument() const; void SetMaxDocsOpen(int n) { m_maxDocsOpen = n; } @@ -919,7 +922,7 @@ private: class WXDLLIMPEXP_CORE wxDocPrintout : public wxPrintout { public: - wxDocPrintout(wxView *view = NULL, const wxString& title = _("Printout")); + wxDocPrintout(wxView *view = NULL, const wxString& title = wxString()); // implement wxPrintout methods virtual bool OnPrintPage(int page);