X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7b3a73d0717f12c9045916f903bc13833a6183e..9f5b54d1ef6a9d87758a21653bd3d19a49d0b75e:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index cbac9175ea..0eaf23b8ba 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -78,6 +78,11 @@ public: bool GetDocumentSaved() const { return m_savedYet; } void SetDocumentSaved(bool saved = true) { m_savedYet = saved; } + // return true if the document hasn't been modified since the last time it + // was saved (implying that it returns false if it was never saved, even if + // the document is not modified) + bool AlreadySaved() const { return !IsModified() && GetDocumentSaved(); } + virtual bool Close(); virtual bool Save(); virtual bool SaveAs(); @@ -485,7 +490,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long type = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxT("frame")); + const wxString& name = wxFrameNameStr); virtual ~wxDocChildFrame(){} void OnActivate(wxActivateEvent& event);